
addTarget
If you want to animate a number of Movie Clip on the stage using the same animation and effects, a great way to do it is to use addTarget.
- Add a few Movie Clips to the stage and the name their instances eg ‘clip2’ ,’ clip3’ etc.
- Animate one of them on the timeline adding effects, filters, easing etc.
- Select the animation and name its instance in the properties panel eg ‘myTween’.
- Add this line of ActionScript for every Movie Clip you want animated:
- myTween.addTarget(clip2);
- myTween.addTarget(clip2);
The nice thing about this is that you can continue to edit the animation of myTween and all the other clips will automatically adopt the changes.
Check out addTarget in the ActionScript 3.0 Reference Library for even more options.
Before-After (masked picture viewer)
Create a new Flash File (Action Script 2.0) in Flash program, set frame rate of the movie to 36fps and save it under your own project name. Import images, that you have previously edited with image editing software (cut two images on exact same size, and save them in .jpg or .png image format).
This is some resources for beloved visitors.
Google(www.google.com ) is a great resources for information. Plus Papervision 3D, the library that allows users to work with 3D models in Flash.
A resource that accompanies the tip ‘How to make a class or package import optional at compile time’ can be found via the Adobe LiveDocs website. A more in depth look at the techniques can be found at http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_21.html .
Essential ActionScript 3.0 from O’Reilly (http://orielly.com ), is part of the Adobe developer Library series. It focuses on the new features and functionality of ActionScript 3.0. Plus, there is some coverage of the Flash Player API and changes between the two and three.
NWP (www.newwebpick.com ) is a website that is a global community platform for the creative industry. It is a place for creative professionals to show off their creative works and to share their inspiration and range of originality.
Thunderbolt.
It is really useful little tool that enables you to log information from your app to the firebug console in Firefox. Excellent for testing, debugging and refining apps. Just throw the SWC into your library folder and log anything-you can even log errors and see the Firebug error indicator come up. If you are testing a debug mode SWF it will give you the class paths and line numbers the logs originate from. Once imported, all that’s needed to log to the console is Logger.info( “ Some info”), Logger, warn, (“Some warning”) or to distinguish an error Logger. Error (“Some error message”).

ActionScript 3.0 in Flex Builder Essential Training
Browse Timeline
Comments ( 2 )
WOW! Okay matter you kept your wits sufficiency to struggle remote the bugger. Pleased you’re ok. The worse horror to materialize to me on that terrace was when I encountered a accumulation of dogs at an advanced hour one night. I kept a innocuous distance behind them until I got home. Gain possession of care.
artfantasy.revivalx.com – go to my favorites!!!
Hi, good post. I drink been woondering wide this issue,so thanks for posting. I’ll indubitably be coming in times past to your site.



