At the request of a few I’ve added the ability to close the SuperAccordian. To be able to close the SuperAccordian you must set it’s ‘closable’ property to true. This is ‘false’ by default. When closed you have a couple of styles… 1. verticalAlign:String - “top”, “middle”, “bottom”. default is “top”. This defines the position of the headers when [...]
Here’s a SuperAccordian. What makes it so super i here you ask?? 1. It lets you select more than one index at at time. Clicking on a deselected child’s header selects it and click on a selected child’s header deselects it, unless it is the only remaining selected child. 2. It lets you use a ViewStack as [...]
Here’s a skin we built recently for a very popular AIR application. Like the gingerbread man example this skin has seamless transitions between its different states but instead of using Flash assets, everything is created programmatically. The skin supports the following styles: fillColors - an Array of 4 colors (the first 2 used for the background, the last [...]
The post is about loading an external swf in a main swf file with some function on main timeline and calling those functions from loaded swf file. Now the problem is when you try to compile the external swf file with any reference to the main timeline using parent.parent or loader.parent etc. it gives error in [...]
The post is about loading an external swf in a main swf file with some function on main timeline and calling those functions from loaded swf file. Now the problem is when you try to compile the external swf file with any reference to the main timeline using parent.parent or loader.parent etc. it gives error in [...]
With the release of Acrobat 9 comes the new Acrobat.com website where you can upload and share documents online. One cool new feature is the ability to embed a PDF file on your website using the PDF Widget. It is basically a SWF movie that works like FlashPaper used to. Thanks to Lori DeFurio for [...]
I was looking around for a simple example of using SWFAddress 2.1 with SWFObject 2.1 and Flash CS3 (ActionScript 3.0) and came across this blog post by Rachel. She has kindly put a simple demo online and made the source code available. There are a few things that I have updated and am making available here [...]
This is a utility to convert bunch of images to SWFs with the same size of images. You need to place the source.fla under c:\JSFL folder or you can edit the path of your fla in the JSFL file at line 35. Download it from here. FLfile.copy(”file:///C:/JSFL/source.fla”,folder+’/Exported/’+tempName); Also you can change the name of FLA/SWF accordingly [...]
This is a utility to convert bunch of images to SWFs with the same size of images. You need to place the source.fla under c:\JSFL folder or you can edit the path of your fla in the JSFL file at line 35. Download it from here. FLfile.copy(”file:///C:/JSFL/source.fla”,folder+’/Exported/’+tempName); Also you can change the name of FLA/SWF accordingly [...]
In the Flex framework we have the following classes… BoxDirection FormItemDirection TileDirection TileBaseDirection ScrollBarDirection ScrollEventDirection SliderDirection. All for the purpose of setting the orientation of a component (defined as direction), each class has the following 2 public static constants… HORIZONTAL : String = “horizontal” VERTICAL : String = “vertical” Do we seriously need all those classes for those 2 options? I logged a request on this a [...]
This morning I finally got around to watching an interview Colin Moock did with Jim Corbett back at Flash In The Can 2008 in Toronto. Jim is one of the software engineers working at Adobe on the Flash Player. The interview is 50 minutes long and has some interesting insights in to the Flash Player, [...]

Just come back from the big Apple and discovered that Adobe as3tour, presented by Colin Moock, will be in Italy on Moday 23rd of June, and more precisely in Milan at the Atathotel Executive.

Also, this will be the last stop of the tour! So don't miss it if you live near Milan, like me!

The course teaches object-oriented programming fundamentals in
ActionScript 3.0. it is designed for Flash users with beginner to
intermediate programming skills (*NOT* advanced programmers). the target
audience should have:
     * familarity with the Flash authoring tool
     * basic knowledge of variables and functions
     * little or no experience with object oriented programming

topics covered include object-oriented programming, classes, objects,
variables, methods, packages, event handling, displaying things on
screen, and compiling and running programs.

Anyway, dont miss the beer(s) at the end of the meeting!! :)

A lot of folks ask me how to create a simple preloader using ActionScript 3.0 in Flash CS3, so I thought I'd share the information with everyone all at once. Here's the idea behind creating the simple preloader shown here:
  1. Create necessary variables. You'll need the path to the file you want to load, in the form of a string. You need a URL request to represent the URL of the file, and you'll need an instance of the Loader class to load the file.
  2. Add event listeners to your Loader object's contentLoaderInfo property to listen for the Event.COMPLETE event (for when the file is done loading) and the ProgressEvent.PROGRESS event (to do stuff while the file is loading, or to show a preloader). You can learn more about the contentLoaderInfo property in Flash Help. Basically, it's the property that holds all of the information about the file that's loading, so you need to use it to register event listeners.
  3. Create event listener functions to respond to the events. Don't forget to put the loader on the stage using addChild() once it's loaded.
  4. In the ProgressEvent listener, you can access the loading info via the ProgressEvent's bytesLoaded and bytesTotal properties. Divide bytesLoaded by bytesTotal to calculate the percent that is loaded. The value will be between 0 and 1. Hold it in a variable for easy reference later on.
  5. To get a number that represents the percent loaded that is between 1 and 100, multiply the percent loaded variable by 100 and round the number using Math.ceil (so you don't get zero as a result).
  6. Use your rounded percent to refer to a movie clip frame to show when the file is at a particular percent. For example, once your file is 50% loaded, the preloader movie clip will display frame 50.
That's it! If you're not sure what these steps look like together in a completed file, you can download the source code here. Enjoy!

Note: I do not make any guarantee for these files regarding bugs or implementation in your applications. If you want to contact me to fix bugs or solve problems for your application, have your credit card number ready. =)
Today I created a little game that can be played in the Flash CS3 IDE. It is an extension for Flash CS3 (mxp file) that adds a new panel to the interface. You can access the panel by going to Window > Other Panels > BugZap. The game pretty simple but quite addictive. You move the [...]
I’ve just come across a little online quiz where you can test your ActionScript 3.0 knowledge. It’s a site that accompanies the Learning ActionScript 3.0 book from O’Reilly. It’s not a particulary comprehensive quiz, more of a bit of fun. I managed to get full marks on most sections, but it looks like I need to [...]
Whilst working today in Flex Builder we all did an update on SVN and all of a sudden we all had the same error... Description: An internal build error has occurred. Right-click for more information. Location: Unknown So off we went trying to find the problem as there wasn't any other info on the error. We trawled through all sorts [...]
Whilst working today in Flex Builder we all did an update on SVN and all of a sudden we all had the same error... Description: An internal build error has occurred. Right-click for more information. Location: Unknown So off we went trying to find the problem as there wasn't any other info on the error. We trawled through all sorts [...]
Richard Lord over at Flash Game Code has released a few useful AS3 classes. One of which is the KeyPoll class. This is really useful because the Key.isDown event no longer exists in ActionScript 3. Here is a quick example I knocked up … The Flash source code for this can be downloaded [...]
Edit: Scrap this post. Mr Peters just shown me that... PLAIN TEXT Actionscript: SuperClass.prototype.isPrototypeOf( SubClass.prototype ); ...does the same thing. Bonus!
Effects are a very powerful part Flex and shouldn't be knocked, but they are limiting when each effect knows nothing of other effects taking place. PairedStackEffect is a core class for effects to be used with ViewStack's or any class that extends a ViewStack. It enables you to create an effect where 2 children can be [...]

Subscribe to Planet Flash

Search

Tags

<head> 3d 3d Flash Actionscript actionscript 3 ActionScript 3.0 Adobe Adobe Air Adobe AIR (Apollo) Adobe Flash Adobe Flex AdobeMAX08 AIR AIR Adobe Integrated Runtime Announcements apollo Art as3 Asides awards Babble BEA Beautiful Web Books Business Cairngorm ColdFusion Community Components Conference Conferences design dev Development Events Examples Featured Flash Flash CS3 Flash experiments flash player Flex Flex 3 Flex Example FMS Fun Gallery General GeoWeb Google Inspiration Jobs linux Marketing MAX MAX 2007 Misc News news & events Off topic Open Source Other Papervision3D Personal photos Photoshop Process Processing RIA Singularity Site News Stuff techmology Technology Tennis Thinking Loud Tips Uncategorized Video Whatever

Blogs

Buttons

Planetarium