Thank you for downloading: Stage Align AS3 a file by Mott
And please dont forget to rate.
Included are:
- Flash CS3 file
- Embedded free font from Orgdot
- Pattern file made by Mott
Font(s) used:
How to modify the file:
- Step 1: First of all you will need to download tweener_1_31_70_as3.zip from here and move caurina folder to the same folder as your project is.
- Step 2: Then open the stagealign_v1.fla file in Flash CS3.
- Step 3: Copy both actions and content layers to the root of your project.
- Step 4: Cut the movieclips you want to be aligned and paste them inside the aligning movieclip you want it to be align with.
Example: you have a movieclip called content_box and you want it to be aligned in the middle,
to do so your have to move the content_box movieclip inside the centerMC which is the one that is aligned in the middle.
- Step 5: After you moved every movieclip you wanted to be aligned delete the unused aligning movieclips, and delete the easing equations that are linked to them.
Example: if you dont need the centerMC and rightMiddleMC just open the actions panel, track each easing equation linked to the centerMC and rightMiddleMC, centerMC equation = Tweener.addTween(centerMC... , rightMiddleMC equation = Tweener.addTween(rightMiddleMC... , and erase the whole line.
NOTE: There are 2 equations for each aligning movieclip, one in the onStageResize function and the other right under that function.
- Step 6: Then you have to rename your .swf file to index.swf and move the index.html in the .zip file to the
same folder as the index.swf so when displayed in a web page it doesnt scale the content neither have margins
also dont forget to keep the pattern.jpg file in the same folder as the index.swf and the index.html so the pattern gets displayed.
Aditional Notes:
- If your want to change the easing equation used and the time that takes the content to be aligned, open the actions panel and change the value of the
variebles transitionTYPE and transitionTIME to any other easing equation and time in seconds.
- To change the pattern thats filled, just place your own pattern file with the specific name pattern.jpg in the same folder as the index.swf.
Good Luck using the file in your projects!