Thursday, August 6, 2009

Easier way to do scripting

1st of all...sorry for my poor English. Im just wanna share something with you guys about dealing with script. For those who already know about this, just skip this post.

Did you know that Flash have provided us with something that can help us when scripting? Did you ever noticed the 'Script Assist' button at the upper right of the scripting window? I marked the button with the red circle in the picture below. Before you start scripting, press that button first.

After you have clicked the button, choose the script which you want to use. In this example, I will use goto script for a button.

Then you will see the script is automatically written on the screen. When the 'gotoAndPlay(1)' is highlighted, you can see there are 3 textboxes above :

Scene (You can choose which scene to go after clicking)
Type (Whether it is determine by frame number or others, let it be 'frame number)
Frame (At which frame you want it to go in the scene)

If you highlighted the 'on(release)' script, there are some event checkboxes for a mouse which you can select..its up to you.

I hope this will help you a lot. Thank you and sorry for my poor English...

No comments:

Post a Comment