Archive for the 'Adobe' Category

IDE for ActionScript developers. Could it be comfortable?

IDE stands for ‘Integrated Development Environment‘.

IDE is the place where you write your code.

For most of beginning AS developers this is Flash IDE (Flash MX, Flash 8 or Flash CS3). For basic code like gotoAndStop and gotoAndPlay standard code editor is just nothing more needed.

However, when you grow up as a programmer and step deeper into ActionScript classes and language paradigms you will feel that Flash IDE is not what developers might dream about. There is a number of editors which support ActionScript language, however I would recommend the one I use myself.

Free Flash Preloader Component - simple but featured loading activity indicator.

Free Flash Preloader component provides an easy way to add a nice visual loading indicatior when loading images or external swf files.

You may skin the preloader component and display any flash animation while loading your data.

It is extremely simple to use. Just place an instance of preloader component on the stage:

Adding preloader component

And set the parameters:

Preloader parameters

ActionScript2’s DON’T!

This is just a small note for all of those who is still developing using AS2.

The complete DON’T for AS2 classes is:

Never ever do create objects of your members arrays in declaration. Create them in the constructor instead.

ActionScript. Constructor parameters when extending MovieClip class, Flash AS2 vs. AS3

Constructor is a method which is called when an object of a class is instanced.
Like in any programming language, in actionscript constructor must have the same name the class has.

Constructor, as a function, may take any number of parameters.
Which is very handy to pass to initialize the objects.
I would recommend using constructor parameters over calling any additional initializing methods.

Here is a good example of using constructors in ActionScript:

var myPoint:Point = new Point(0,0);

And I can give you a lot of such examples.

However, this article is about a particular case, passing parameters to a constructor of your class, which is inherited from (extends) MovieClip.

Tutorial, ActionScript 3, Using Shared Objects to show the time of page browsing.

Here is my first tutorial at FlashDaWeb.
I will show how SharedObject might be used.

For illustration, I came up with an idea to show users the time they spend browsing a particular page.

Here is an example.

Open this demo page and see the timer, then close it and open again anytime you want. Notice, time will not start again from 0:0, it will continue counting from the very values you previously closed it. Quite nice, isn’t it? :)

This movie requires Flash Player 8

In your hands.

The above functionality was implemented with Adobe Flash CS3, ActionScript 3 and SharedObject.

 

You may download the sources .fla and .as files

Download: tutorial_sharedobject_sample.zip  tutorial_sharedobject_sample.zip (11.2 KB, 750 Downloads)



Page 1 of 3123»