![]() |
||||||||||||||||||||||||||||
| |
||||||||||||||||||||||||||||
|
Sliding Pages | 1 2 | continued: 3: Ok, very well done.
Now we're going to add the Instance Names to the buttons. These names will be used in the Action script in the following step.
As shown in Fig 3, click on the button and add the name under the Properties panel. Do the same for the buttons of page2, page3 and page4 respectively.
Almost
done! We're going to add the actions in the following step. 4:
Once you have added the action script, go back to the main stage, the root timeline of your scene.
Now you've go the buttons and the sliding window MC on the main stage and you should be able to test your movie (control>test movie).
Action Description:
The first part of the script declares the initial vlaues. The spd value is the scrolling speed, the higher the value, the faster the pages will scroll.
Depending on the dimensions of the pages you've got, the onRelease endX and endY is set. In my case, the width of each page is 220px. Therefore, the second page will appear when i set the endX value to -220, the third to -440 and the forth to -660 (Increment of 220).
page1, page2, page3 and page4 should be the instance names you added to the buttons in the previous steps.
That's it, enjoy your sliding flash content!
Conclusion: What we did:
Hope you enjoyed this tutorial :)
|
Fig 3
Fig 4
|
|||||||||||||||||||||||||||
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 |
||||||||||||||||||||||||||||