background preloader

Flash

Facebook Twitter

* Article Index - ActionScript - Flash. ActionScript 3 Tutorials. 100,000 Glowing 3D Particles Run Smoothly in Flash Player 10.1. Due to great popularity of our 'Particles Made of Light', we present four more examples with different effects added and more particles. In the process, we discovered incredible improvement in performance in FP 10.1 in comparison with FP 10.

Click each screen shot to open a Flash movie. Download source code from the link below. Download Download all source files corresponding to this effects: LightParticles2.zip More 3D Particles Made of Light Our recent post, Particles Made of Light, continues being very poular, and a few of our visitors asked us for more examples. One of the major updates in these new examples is a depth-based lighting method. As in some of our previous examples, we are making use of colors which can be calculated in a fast way with bitwise operations. FP 10.1 versus FP 10 While testing our examples on several Windows and Mac machines, we noticed a very siginificant performance improvement in FP 10.1. The BasicInfo Performance Monitor this.addChild(new BasicInfo()); 3D Particles Made of Light - AS3 Flash Effect. Thousands of particles which appear to be made of light form beautiful surfaces in 3D space. We use an additive luminescent effect which creates brighter spots where particles are more concentrated.

We present four examples with variations in color and filter effects. Click each screen shot to open a Flash movie. Download source code from the link below. Download Download all source files corresponding to this effects: light.zip Download the zip package linked above for the complete, well-commented, and easy to customize source code. Particles made of light form parametric surfaces We present four variations of a new particle example using pixel-based particles in three dimensions.

In our earlier examples, the particles were considered as opaque objects. Here, however, we have done away with z-sorting (which saves some CPU), and instead we allow the brightness of overlapping particles to add together. Comments on the code Here is how it works. Level = (readColor & 0xFF)+levelInc; XML Basics. By Blue_Chi | Flash CS3 | ActionScript 3.0 | Beginner Using XML is one of the best ways for structuring external content in a logical format that is easy to understand, process, and update.

This tutorial will teach you the basics on how to load and process XML in Flash using ActionScript 3.0. You are assumed to have basic knowledge of ActionScript in order to follow this tutorial. This tutorial is for working with XML in ActionScript 3.0. Our tutorial will be divided into the following short sections: What is XML? What is XML? XML stands for Extensible Markup Language, it is a markup language used to structure data logically using tags that look very similar to HTML. <? As you just saw, XML makes it possible for authors to create and name their tags in whatever form they choose as long as they adhere to the basic rules of the language.

Moving on the actual content within an XML file, each XML tag is called a node in ActionScript. The XML file must have ONE root level XML tag. Var myXML:XML; AS3 Tween Class. By Riyadh Al Balushi | Flash CS3 | ActionScript 3.0 | Beginner The Tween Class lets us create simple animations easily in ActionScript by specifying the starting and ending points of an object animation positions.

This tutorial will teach you everything you need to know about the Tween Class, it's basic usage, easing variations, Tween methods, and Tween Events as well. The movie below shows an image moved around using the Tween Class. You might be interested in checking our tutorial on using the TransitionManager Class which can be used as alternative to the Tween Class for creating richer transition effects instead of use simple animations.

This tutorial is written for the AS3 Tween Class. This tutorial will be divided in the following sections: Basic Usage of the Tween Class Easing Variations Tween Methods Tween Events Misc Tween Properties Basic Usage of the Tween Class The Tween Class is a ActionScript class that can be used to tween any property of any object. Running your own example.