![]() |
||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
Title:
Set Property This tutorial is going to cover how to use the "setProperty" action to change different propeties of an object using action scripts only. We're going to use the "scale property" for this tutorial as an example. In addition to that, you're going to be introduced to using "input" text fields to change the values. |
|
|||||||||||||||||||||||||||
1:
on (release) {
The above action sets the property of flashtext, which is the instance name of our movie clip, to increase its X and Y scales 200% The scale property
is only one of the many properties that can be chosen from a drop-down
menu as shown in Fig1.
2: Going well? Ok, let's make this more dynamic now and allow the user to enter whatever value he desires. We're going to use input fields for this.
on (release) {
Notice, we replaced the values with the variable names. This means whatever value is entered into the text fields will be entered there! Make sure the value is set to expression, meaning without the quotation marks "".
Test your movie!
Conclusion:
What we did:
|
Fig 1
|
|||||||||||||||||||||||||||
Download
*.FLA |
Not
clear enough? Check our forums.
We will be glad to help you out. |
|||||||||||||||||||||||||||
AEvision
Tutorials 2.1 - All rights reserved AEvision
Designs 2002-2007 |
||||||||||||||||||||||||||||
Icons
provided by iconpacks.com |
||||||||||||||||||||||||||||