LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-08-2001, 04:33 PM
cub4 cub4 is offline
Registered User
 
Join Date: May 2002
Posts: 1
Rep Power: 0
cub4 is on a distinguished road
Question Play and Stop actions

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?
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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




All times are GMT. The time now is 06:49 AM.