background preloader

FlashTools

Facebook Twitter

3D Card Flips with Tweens in Flash CS4 and Flash CS3. Flash Player 10 supports native 3D methods in ActionScript 3 so flipping images with perspective distortion is much easier in Flash CS4 than in Flash CS3. It has its challenges, though. One of them is the problem of blurring of 3D objects when those 3D methods are used. In this tutorial, we present a custom AS3 class, TweenFlipCS4, which gives one way of addressing this issue. Download Download all files corresponding to this tutorial: tweenflip.zip All the source files in the package are well-commented. The fla file that corresponds to the applet above is flip_cs4.fla. The Timeline Code - Customizing an Instance of TweenFlipCS4 The static text on the stage was created at authoring time. Here is the Timeline code in flip_cs4.fla followed by explanations. import fl.transitions.easing import flashandmath.as3.TweenFlipCS4; var card1:TweenFlipCS4; var card2:TweenFlipCS4; card1=new TweenFlipCS4("bkimage.jpg","bkcard.jpg","horizontal"); this.addChild(card1); this.addChild(card2); setCardsPosAndProps();

How to Load and Interact with an External SWF File in AS3 and Flash. One of the most versatile features of Flash is the ability to import swf files into a "containing" Flash movie and the ability for the "containing movie" to interact with the imported swf. We have addressed various aspects of this issue with our previous tutorials, External Clips in Flash CS3, Loading External SWF Files for a Dynamic Presentation, and Loading and Unloading SWF's with 'stage' References in AS3. In the simple example shown below, the external swf (built from the file ext.fla included for download) consists of a 400 by 200 movie that has a global variable called total and a public function called updateBackAndTotal, which takes a single color parameter as an argument. A call to updateBackAndTotal(clr) draws a rectangle with color clr to fill the stage of the external swf and adds as text the value of the total variable.

The file ext.swf on its own is shown first. Download Download the two fla files for this tutorial in the following compressed folder. ExternalSWF.zip. ActionScript 3.0 Language and Components Reference. The ActionScript® 3.0 Reference for the Adobe® Flash® Platform contains the ActionScript language elements, core libraries, and component packages and classes for the tools, runtimes, services and servers in the Flash Platform. Filter by product using the preset filters This reference combines the information about the ActionScript language elements and libraries for the following Adobe products and runtimes.

Click on a product name below to filter this reference to show only the content for the latest version of that product and related runtimes: Filter by product using the filter controls Use the controls at the top of the page to customize your view of the reference: Use the filters to include or exclude content for specific products and runtimes. SUPER © . BIG SPACESHIP LABS / » AS2 to AS3 Preprocessor Converter.

5 1/2 blog » AS2 to AS3 preprocessor converter - first draft.