SourceTec Software

It is currently Fri Apr 18, 2014 10:01 pm

All times are UTC + 8 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat Jun 04, 2011 7:33 am 
Offline
Member

Joined: Sat Jun 04, 2011 7:26 am
Posts: 2
Hi

Can anyone help please.

I would like to create actionscript for a button, when pressed, that will stop a movie if it is playing or start the movie if it is not.

Have you any idea how to get this working please.

basically combining these:

on(release){ this.stop();
_root.stop();
}

on(release){ this.play();
_root.play();
}

Thanks
Charles


Top
 Profile  
 
PostPosted: Sat Jun 04, 2011 11:44 am 
Offline
Guru
User avatar

Joined: Wed Feb 18, 2009 12:33 am
Posts: 402
You could use a variable to set the movie:

MOVIE = 0

onRelease{

if (MOVIE = 0)
then PLAY and MOVIE = 1

if (MOVIE = 1)
then STOP and MOVIE = 0

}

Of course find the right syntax for this.


Top
 Profile  
 
PostPosted: Sat Jun 04, 2011 7:46 pm 
Offline
Member

Joined: Sat Jun 04, 2011 7:26 am
Posts: 2
Thanks for the advise PaperMakeiT

Regards
Charles


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 8 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group