SourceTec Software

It is currently Sun Apr 20, 2014 7:46 pm

All times are UTC + 8 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Fri Mar 18, 2011 9:51 pm 
Offline
Member

Joined: Mon Mar 14, 2011 2:57 pm
Posts: 10
Could someone please point me in the direction of a tutorial on how to make a start button for an animation? I have looked but just do not seem to find one that I understand.

any help is appreciated.

Mike


Top
 Profile  
 
PostPosted: Fri Mar 18, 2011 10:08 pm 
Offline
Guru
User avatar

Joined: Wed Feb 18, 2009 12:33 am
Posts: 402
Have you tried one of these tutorials?
viewtopic.php?f=12&t=26209
They are in AS2.

For AS3 look for a tutorial in other sites like actionscript.org


Top
 Profile  
 
PostPosted: Fri Mar 18, 2011 10:39 pm 
Offline
Member

Joined: Mon Mar 14, 2011 2:57 pm
Posts: 10
I keep getting this error and am unsure what it means.

ERROR: Scene 1, Layer 1, Frame 1, Instance of 'start button', Line 1: Statement must appear within on handler.


Top
 Profile  
 
PostPosted: Fri Mar 18, 2011 11:28 pm 
Offline
Guru
User avatar

Joined: Wed Feb 18, 2009 12:33 am
Posts: 402
That you have to use commands like:

Code:

on(release){
   
"your code here"

}


Top
 Profile  
 
PostPosted: Fri Mar 18, 2011 11:49 pm 
Offline
Member

Joined: Mon Mar 14, 2011 2:57 pm
Posts: 10
So the code ends up looking like this?

on(release)
{
play();
}

It says no errors now, but when I run it in preview it plays on its own


Top
 Profile  
 
PostPosted: Sat Mar 19, 2011 7:11 pm 
Offline
Guru
User avatar

Joined: Wed Feb 18, 2009 12:33 am
Posts: 402
Insert a stop command in your movie's first frame:

Code:
stop();


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

All times are UTC + 8 hours


Who is online

Users browsing this forum: No registered users and 5 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:  
cron
Powered by phpBB® Forum Software © phpBB Group