Picture rotation by action script
Submited in: Flash
| Total Views: 103445
In this little tutorial, you will see how to rotate image using the action script code. You can apply this code on any object, movie... in flash. You will be also learn how to convert picture into a Movie Clip Symbol, how to apply action script on it and more.
First of all, find any picture which you want to rotate using the action script code.
Create a new flash document. Press Ctrl+J key on the keyboard (Document Properties) and set the dimensions of your document as whatever you like. Select any color as background color. Set your Flash movie's frame rate to 100 and click ok.
Choose File > Import > Import to Stage (Shortcut key:Ctrl+R). In the file explorer window that appears, find the picture that You will be use for this example and select it. Then click Open.
While the picture is still selected, press F8 key (Convert to Symbol) to convert this picture into a Movie Clip Symbol.See the picture below.
While the picture is still selected, go to the action script panel (F9) and enter this code inside the actions panel:
Test your movie (Ctrl+Enter).