There are now new ways to produce old results. In older versions of ActionScript, one would use the setInterval() function. Now, as actionscript 3 serves as the community model citizen of OOP (Object Oriented Programming) we are given the new Timer class in the flash.utils package.
Today I have decided to build a simple ActionScript 3.0 horizontal menu based on an array. This is a fairly common practice in Flash development as we are often using data provided from a XML file to dynamically update content within our movies. To simplify this tutorial I am going to use an array that is written within my code instead of parsing it from a XML file.
The following example will demonstrate how to loop through an array and draw a button for each item in that array. Each button will have a label, an up state and an over state. I have read that it is good practice to use the SimbleButton object whenever possible, but I am not going to use the it in this tutorial because I am interested in learning more about addChild(), getChildByName(), currentTarget, mouseChildren and other features of ActionScript 3.0 that could be avoided using SimpleButtons. Read the rest of this entry »
Not only has ActionScript changed, but the Flash CS3 authoring environment also sports an entirely new look. The new interface sleeker and much more flexible than anything Flash has seen before. Read the rest of this entry »
Flash Remoting MX lets developers easily integrate rich Macromedia Flash content with applications that are built using ColdFusion, ASP.NET, Java, PHP, or SOAP-based web services. The result is complex client/server applications that more closely resemble desktop applications than traditional web pages. Build applications that connect to a database, file system, or other server-side technologies. Developers who are looking to create Rich Internet Applications with the Flash will find Flash Remoting: The Definitive Guide indispensable.
Well before Ajax and Windows Presentation Foundation, Macromedia Flash provided the first method for building “rich” web pages. Now, Adobe is making Flash a full-fledged development environment, and learning ActionScript 3.0 is key. That’s a challenge for even the most experienced Flash developer. This Cookbook offers more than 300 solutions to solve a wide range of coding dilemmas, so you can learn to work with the new version right away. Read the rest of this entry »