fantero
/ flash & video
Details
Uploaded: 18 May 2011
Opens With: Flash CS3 (9+)
Files Included: Flash fla CS3, swf , xml , html , txt
Size: fla-cs3-64kb, swf-3kb, xml-1kb, html-3kb, images-670kb
Action Script: AS3
Resolution: 550x400
Documentation: good
Do you like this file?
The images are placed in the flash file with random position and rotation.
You can move, rotate, and re size the images by clicking and dragging them.
You can place as many images you want by changing the XML file content.
It contains a math for resolving the registration point problem in ActionScript3. The registration point of a Movie Clip cannot be set to the center of the Movie Clip. If you want to move an object loaded from an XML file, you have to use math formulas to rotate this object around his center.
The code calculates the center of the Movie Clip and moves, rotates the Movie Clip by moving real-time the reference point (upper left corner) of the Movie Clip.