-
Reset Button for Drag and Drop Jukebox
hi,
i am making a drag and drop jukebox that will play an xml playlist when an icon is dropped onto it's target.
i have one xml playlist working,
but i need to make a button that will reset all the movie clips to their original position when a playlist has been played.
does anybody know the code that i would have to use to make a reset button??
any help would be appreciated
-
Registered User
hi,
All the MovieClips that you can drag should store their initial position (x and y).
For example:
Actionscript Code:
my_mc.x0 = my_mc.x; my_mc.y0 = my_mc.y;
When you click that button, you send the movie clips to the original position:
Actionscript Code:
my_mc.x = my_mc.x0; my_mc.y = my_mc.y0;
Last edited by nunomira; 03-08-2011 at 08:53 PM.
Reason: . was missing
-
thank you, i have been able to get all the movie clips to return to their start position.
however i cannot get the playlist to also stop and reset
what code will i have to use to unload the xml playlist so another one can be played,as well as return movie clips to their original position
any help would be amazing
p.s let me know if you need to see any of my code
Last edited by kidza12; 03-09-2011 at 12:57 PM.
-
Registered User
hi,
What exactly is changing in the playlist? What's changing it's what has to be reset....
For example, if it's the number of the song that's advancing, a variable i, that's the variable you'll have to reset.
You're asking again how to return movie clips to their original position?
The answer is the same as before...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|