all groups > flash actionscript > february 2004 >
You're in the

flash actionscript

group:

Method to be able to drag a dynamic text field


Method to be able to drag a dynamic text field gaGeet
2/12/2004 8:50:47 PM
flash actionscript:
Hi people

Right now I am importing content from a XML file to a dynamic text field on
startup

Afterwards, I would like this text to be draggable

So far I have tried to embed this text inside a button or movie clip. I have
also attempted making this text an instance of a button, where the button is an
instance of a movie clip. So far none of these methods have worked. =
Seems like I have tried everything!!

Please help..

Thanks! =
Re: Method to be able to drag a dynamic text field chrism59
2/12/2004 9:36:25 PM
I have a dynamic text field in a movie clip and placed this script on the clip
and it drags fine. but on in frame 8 of the root movie. The rest of the time
the text will not move

on (rollOver)
if (_parent._currentframe == 8)
_parent.ControlInfo_txt.text = "Press and hold left mouse button to move."


on (rollOut)
_parent.ControlInfo_txt.text = " "

on (press)
if (_parent._currentframe == 8)
startDrag(this)


on (release)
if (_parent._currentframe == 8)
stopDrag()



Re: Method to be able to drag a dynamic text field gaGeet
2/12/2004 10:42:50 PM
Success =)

AddThis Social Bookmark Button