
Welcome Guest
|
#1
|
|||
|
|||
|
I was recently given this code to be able to play and stop a button that i had floating around in a movie. one click to stop, and then one to play.
on (press) { if (_root.st == true) { stop (); _root.st = false; } else { play (); _root.st = true; } ; } Now i was wondering how i can change it so that when it is on mouse rollover it stops, and on rolloff it plays once more. If i change the on (press) to on (rollover) i have to rollover it once to stop, roll off, and then roll over again to play. I dont want this second rollover. Hope thats clear, any help is greatly appreciated PS would somthing like this work (even though it doesnt) on (rollOver) { if (_root.st == true) { stop (); _root.st = false; } } else { on (rollOut) { if (_root.st == false) { stop (); _root.st = true; } } ; } It says i have an error with the else? I dont know what to do? |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| set up play / stop music buttons in flash 8 | tammy | Sound and Music |
6 | 11-14-2008 10:32 AM |
| movie clip stop auto play | tiaka | Newbies |
3 | 07-08-2006 12:23 AM |
| stop / play / stop | digitalecartoon | Newbies |
1 | 08-16-2005 04:41 PM |
| How to stop and play movieclips | cayohueso | Newbies |
1 | 01-12-2005 09:37 AM |
| Stop and Play Actions | cub4 | Flash 5 Actionscript |
3 | 11-08-2001 02:12 AM |





