Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Help me using the invisible button to drag a movieClip
Index -> Graphics and Design, Web Design -> Flash MX Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
michael1989




PostPosted: Wed Jul 07, 2010 5:04 am   Post subject: Help me using the invisible button to drag a movieClip

Hi all.
i'm a newer with Flash MX.Please tell me how do solve this problem.
I want to use a invisible button to control a movieClip (drag it)
Here is my ActionScript Code for button:
on(press)
{
drag=true;
}
on(release)
{
drag=false;
}

And the code's attached to the movieClip:
onClipEvent(enterFrame)
{
if(drag)
{
this._x=_root._xmouse;
this._y=_root._ymouse;
}
}

And the result:NOTHING HAPPEN

Crying or Very sad
please help me,thanks u alot.[/b]
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Graphics and Design, Web Design -> Flash MX Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: