|
In This Tutorial , you watch how to create a Nice dynamic button using swishmax :
|
|
|
STEP 1 :
Create anew project and drawa circle and then fill it with 2 linear gradient colors:
Then Draw a rectangle over the circle and give it a white color with 30% Alpha:
|
STEP 2:
Select 2 shapes and right click on them and then choose grouping >> Group as Sprite To group them into one sprite and then name this sprite father.
Then Select the rectangle and then right click on it and choose Grouping >> group into sprite and name this sprit rect.
Copy the circle and then past the copied on the original perfectly and to do that you can use ""past in place"".
|
STEP 3:
Select the rect sprite and drage it outside the circle as you will see in the following image:
Select the motion path tool and then move the rect sprite over the circle from the left side of the circle to the right side and do that again from the left to the right .
Go to the timeline panel and right click at the first frame in the father sprite and choose movie Control >> Stop( ) And then drag the move effect of the rect sprite to become on the second frame like what you see in the image:
|
STEP 4:
Select circle and then go to
the script editor and then choose the add script button and choose Events >>Button >> on (rollOver)
And again from the add script menu choose
movie control >>Play ( )
you will get the desired result and you can change the speed as you like
|
|
|
|
The End
Dr Smith
|
No comments:
Post a Comment