Posts RSS Comments RSS 71 Posts and 117 Comments till now

Archive for the 'intermediate' Category

Loading in AS3

Hello all,

I have uploaded the sample files I have shown in the 3rd A-SFUG meeting. I hope you people find it useful and enjoy the session!

asfug-as3loading

Cheerio!

Dan Murong

AS3 Migration

For those of you who don’t know this yet, if you’re migrating from AS2.0 to AS3.0 or if you’re constantly using AS3.0 to develop your projects, this is a very handy ActionScript 3.0 Migration PDF reference. It clearly shows the difference between AS2.0 and AS3.0 and tells you what to import when using certain objects, it also tells you what objects has been removed in AS3.0. Certainly good to have it with you when developing AS3.0 projects or if you’re starting to learn AS3.0. There are also other cheatsheets for other platforms like AIR and Papervision which can be found here.

Flash website tracking with Google Analytics

google analytics screengrabThe success of a website is evaluated by its traffic. Important data like pageviews and visitors are collected using web tracking technologies. The simplest form would be the old school visitor counter. There are many commercial web tracking services for big websites and there are also free services such as “Google Analytics(GA)“. It’s simple yet extremely powerful.

GA is a javascript based solution. Using GA in HTML is very simple. Paste in the scripts and the site is tracked instantly. To track a Flash based website is not hard either.
Continue Reading »

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

_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.