Search tutorials
Adding ActionScript
Now.. this time to wrap it up together... Yap, we need to put a simple actioscript that drives it all.In Channel button, add action as follows:
on(release){
gotoAndStop(subchannel);
}
In subchannel layers, at stage, there are 4 buttons left. Each button have to be added actionscript. I will explain it one by one.
For hill button, the actionscripts is:
on(release){
gotoAndStop(hill);
}
For wfall button, the actionscripts is:
on(release){
gotoAndStop(wfall);
}
For beach button, the actionscripts is:
on(release){
gotoAndStop(beach);
}
For lake button, the actionscripts is:
on(release){
gotoAndStop(lake);
}
In layer action & label at keyframe 1, add the action:
stop()
| » Level Basic |
|
Added: 2002-09-16 Rating: 6 Votes: 94 |
| » Author |
| I'm a beginner and just learnt flash for about 2 month. I really like it. Thanks a lot to Citra and Arifin who have introduced this incredible stuff to me. |
| » Download |
| Download the files used in this tutorial. |
| Download (250 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!