|
|
| |
|
|
Make a simple shape (the one that will follow the cursor). Select the shape and make it a movie clip (Insert-Convert to symbol, behavior: movie clip). Now double-click on the movie clip and its properties will be brought up. Give an instance name, for example "ball".
Double-click on them one-by-one and bring up their properties. In the action tab make the following actions: 1st keyframe: Start Drag (target: ball) Check the "lock mouse to center" button.
2nd keyframe: Set Variable: Variable:CopyCount, Value:CopyCount+1 If: Condition: CopyCount>10 Set Variable: Variable:CopyCount, Value:1 End if Duplicate movie clip: Action:Duplicate movie clip Target:ball New name: "ball" & CopyCount Depth:CopyCount Set property: Set:Rotation Target:"ball" & CopyCount Value:Random*(72)
3rd keyframe: Go to and play: number:2
The variable CopyCount increases by 1 each time the movie loops. When it reaches 10, it is set back to 1, and so loops around again. The last line makes a duplicate of the original movie clip (ball1), and calls it ball2 or ball3 or ball4 etc., depending on the value of CopyCount. When CopyCount goes back to 1, it 'overwrites' the original ball1, then ball2, and so on. In this way, there are only ever 10 movie clips. click for the result [new window] Wonna more of this? Mail the responsible:Iro Gravani |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Feedback |
|
|||||||
Company
| Products | Services
| Partners |
Customers |Support
News | Articles
| Search | Job
opportunities | Contact us | Portfolio
| Downloads
Linux | BeOS
| WAP | Slash
| FREE Newsletter | Tell a friend
Feedback | About
Enterprise | Terms of Use | Advertise
| Privacy Policy
Enterprise Software & Consulting SA
88, Plastira Street, Nea Smyrni 17121 Athens Greece
Phone:(30)-1-9344032 FAX:(30)-1-9323427
For more information about Enterprise, please send email to sales@enterprise.gr
Comments, questions, or confessions about our site? Please write the webmaster@enterprise.gr
Have you found an error or a broken link? If so, please inform us and we will fix it immediately.