background preloader

ActionScript® 3.0 Reference for the Adobe® Flash® Platform

ActionScript® 3.0 Reference for the Adobe® Flash® Platform
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.

String - ActionScript® 3.0 Reference for the Adobe® Flash® Platform Splits a String object into an array of substrings by dividing it wherever the specified delimiter parameter occurs. If the delimiter parameter is a regular expression, only the first match at a given position of the string is considered, even if backtracking could find a nonempty substring match at that position. For example: var str:String = "ab"; var results:Array = str.split(/a*?/); // results == ["","b"] results = str.split(/a*/); // results == ["","b"].) If the delimiter parameter is a regular expression containing grouping parentheses, then each time the delimiter is matched, the results (including any undefined results) of the grouping parentheses are spliced into the output array. var str:String = "Thi5 is a tricky-66 example If the limit parameter is specified, then the returned array will have no more than the specified number of elements. If the delimiter parameter is undefined, the entire string is placed into the first element of the returned array. Parameters Returns

gotoAndLearn() - Free video tutorials from Lee Brimelow on Adobe Flash ActionScript 3.0 * Programmation avec Adobe ActionScript 3.0 pou Aide sur le Web Bienvenue dans l’aide sur le Web du produit Adobe® ActionScript® 3.0, qui fait partie de l’aide communautaire Adobe. Les experts d’Adobe mettent à jour l’aide sur le Web régulièrement, et des commentaires d’utilisateurs et de modérateurs expérimentés fournissent des astuces et des solutions supplémentaires. Vous pouvez effectuer des recherches dans l’aide sur le Web, parcourir son contenu et proposer des commentaires. Aide communautaire L’aide communautaire rassemble l’aide, des instructions, des articles de support, des vidéos, des blogs et des exemples fournis par Adobe et des experts de la communauté du monde entier. Pour accéder à l’aide communautaire, utilisez l’adresse Pour en savoir plus sur l’aide communautaire, consultez la section Aide et assistance.

Assigning dynamic/unique variable names in a for loop in AS3 | Useful Stuff. Assigning dynamic variable names to objects created in a for loop in AS3. You have to get very creative to search these questions on google because words like “for” and “loop” are so utterly common. If you have a loop in AS3 creating multiple variables but need them to have unique names (for later modification) you need to create something like an array to store the references to the variables. For example, anything you create in a for loop is a temporary reference. In my situation I had a loop creating my navigation elements, but needed to position each X value separately. Here is the method I used to keep the references to these variables: Now, to use those references: To be absolutely clear, the above example creates two MovieClips according to the loop (while i < 2), and places each MovieClip in the mcArray array at index i (which we have defined as the integer counting the loop). Now if I wanted to access those individual MovieClips I could use the mcArray to do so. Like this:

Event Handing By Blue_Chi | Flash CS3 | ActionScript 3.0 | Beginner Event handling is the process by which any sort of interactivity is created in ActionScript 3.0. This tutorial will teach how to make your movie jump to life, whether it was by reacting to a mouse click, a keyboard stroke, or any event happening in Flash using the Event Handling system of AS3. Our tutorial is divided into the following sections: Basic Event Handling Using the .addEventListener() method. Basic Event Handling Usage An ActionScript Event is any interaction happening in the Flash environment, whether it was a mouse click, the movement of the timeline to a new frame, the completion of the loading process of an external asset, or any other occurrence. The process described above is written in ActionScript using in the format shown below: myObject.addEventListener(Event, eventListenerFunction); myObject.addEventListener(Event, eventListenerFunction); myButton.addEventListener(MouseEvent.CLICK, myClickReaction); - End of Tutorial.

AS3 Flash: Low CPU Clouds Animation - Perfect for Mobile In our our recent tutorial on clouds effect via BitmapData.perlinNoise and ColorMatrixFilter, we presented a nice clouds animation but very CPU intensive and not suitable for larger images or for mobile devices. Here we present a version that is extremely CPU efficient, runs very well on Android 2.2, and can be used to generate large images. In the two examples linked below we generate 500 by 380 animations. Click each screen shot or the corresponding text link to open a Flash movie. Download Download all source files corresponding to these effects: cloudsfast.zip How is performance optimized In our previous tutorial, Realistic White Clouds on Blue Sky in AS3 Flash, we presented a method for producing a continuously evolving picture of white clouds on a blue background, making use of Perlin noise and a ColorMatrixFilter. Creating an instance of the clouds is easy: simply use the constructor as follows: About the Code Here is how we do the wrapping. Layering the clouds

Republic of Code ActionScript 3 Tutorials - Intermediate Flashandmath.com Site Search Tutorials in this section illustrate objects and user interactions more complex than those in the Basic Constructs and Interactions section. NEW! AS3 Events Properties: target, currentTarget, eventPhase, localX, localY We look at basic properties of events in AS3: target, currentTarget, localX, localY, as well as eventPhase. Bridging the gap: writing AS3 classes Introduction to Writing and Using Custom ActionScript 3 Classes with Flash CS3 In this first tutorial, we discuss the three ways that AS3 custom classes can be used with Flash CS3. Consider our book:Flash and Math Applets: Learn by Example which is available at amazon.com.

P2P with flash Tutorial GitHub repository. Introduction Today we have released an update to Photoshop CC that includes Adobe Generator. Read the announcement here. Adobe Generator is a Node.js based server plugged into Photoshop via Kevlar API (ExtendScript). This extends Photoshop scripting layers to three complementary options: ExtendScript (write and run *.jsx scripts directly from File -> Scripts)Photoshop Server (remote connection to Photoshop over TCP/IP, e.g. control Photoshop from iPhone/Android or other apps on the same machine)Generator Each one of them have a bit different use-case, however ExtendScript is still used in the end for invoking commands on Photoshop. Relationship between Photoshop scripting layers Primary use-case of Generator is to generate data or connect to resources from inside Photoshop, which is the OUTGOING direction. On the other hand with Photoshop Server, you are connecting to Photoshop, which is the INCOMING direction and that requires a password set by a Photoshop user.

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;

Related: