Posts RSS Comments RSS 71 Posts and 117 Comments till now

Archive for the 'actionscript 3' Category

Actionscript 3 scrollbar

I created this scrollbar some time back. I did not use it in a actual project yet but I think it should be useful for those who are doing websites in AS3. It is customizable with Tweener effects selection. It scrolls mainly movieclips, so as long as you convert your text or images to movieclips, you can scroll them. Here is the scrollbar source.

This movie requires Flash Player 9

Extend Flash

snippets panel screen shotOn Lee Brimelow’s blog he has created a few handy flash extensions to make coding in AS3 easier. I suggest getting the code Snippets panel extension and the Event Generator extension.

With the Event Generator just select an item on stage and select what you want to do with it in the panel. Click copy to clipboard and then open the actions panel and paste the code there.

_global in ActionScript 3

There’s no more “_global” in ActionScript 3. I wrote this class to bring it back. Here’s an example of exchanging values between two .swf files. example.swf assigns value into “_global” and external.swf watches it. The source file is here.

This movie requires Flash Player 9

There are other solutions. AS3 Global Object is a powerful package that goes beyond “_global”. Jonathan Greene’s solution is very neat and easy, too. The basic of all solutions is to use static variables and functions. Using static variables and functions is the easiest method to communicate between classes and movie clips. I’ll explain that in future posts. Meanwhile, this entry in help manual helps to understand what “static” means.

« Prev