Tag Archive for 'tutorial'

Flash and Actionscript performance optimization tips

Here are some tips for flash developers, which may help them to build flash application more effectively.

So far tips listed are:

  1. Cache your Vector images - increase performance
  2. Use onEnterFrame only when needed
  3. Make movie clips invisible when alpha = 0
  4. Embed only needed symbols or fonts

Take a look and make your flash preform better ;)

Flash client-server communication using Flash Remoting and WebOrb. Tutorial.

What you will learn…

- How to send data from flash movie to server using Flash Remoting
- What your server should have for successful communication with flash movie.
- Arrangement of flash-server dialog, sample actionscript code needed.

What you should know…

- You must be familiar with ActionScript classes, Flash IDE and components.
- You should have a basic knowledge of PHP
- You should have an access to your web server and be able to install needed packages on it

Flash Preloader. Howto. (Part 1) Two frames.

There are several ways the preloader can be implemented in the flash document.

This is the first article, which covers the one way of building the flash preloader.

Two frames.

That’s the very old method, I believe it came with ActionScript1, but still is used in various flash applications.

Flash animation in code. Tweens in ActionScript2 & ActionScript3.

Flash and animation are the two things which do not exist separately. I think Flash was created for animations.

In this article, I would like to describe some techniques which you may use to create Flash animations in code, in your AS2 or AS3 code.

What is the animation in terms of code? My definition is that animation of any object is the smooth changing of its properties, which might have effect on object’s location, shape, size, transparency and so on. The task for actionscript developer is to implement that smooth actions.

This movie requires Flash Player 8

Press the buttons to see the tweens in action in the above sample. Source .fla file is available below.
Read on...

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.





Page 1 of 212»