Monday, September 22, 2008

Tweening with AS3

Fellow Flash Devs,

I have finally started playing with AS3 & tried doing some experimentation with Tween class.

It's as simple as before except the classes which needs to be imported are different. So for AS3 we will import fl.transitions.Tween & fl.transitions.easing.*

Please use the code below to simply animate a box kept on the stage using Tween class-

import fl.transitions.Tween;
import fl.transitions.easing.*;

b1.buttonMode = true;
b1.addEventListener(MouseEvent.CLICK, btnclick);

function btnclick(event:MouseEvent)
{
new Tween(b1,"x",Regular.easeOut, b1.x, b1.x+50,1, true);
}

Thursday, July 24, 2008

Problem with Combobox component

While working on a website for one of my client, I came across a strange problem with Combobox component.

If you try to put a Combobox in a flash & then try to load that .swf file in another flash using loadClip function of MovieClipLoader it doesn't work. You can't even click it to see the items.

After googling for sometime I found that its a bug in Flash and the work around is if you simply drag a Combobox component in your parent Flash & then just delete it from the stage leaving it in the library, it works perfectly fine.

And you can click and select any item from the Combobox embedded in the child Flash, loaded in the parent movie.

Wednesday, June 4, 2008

Tweening with MC Tween

After the Tween & TransitionManager Class, to make life more easier I have found MC Tween extension which can be used to tween objects such as movieclip/sound/textfield.

You just need to #include "mc_tween2.as" and use one simple command to create a new tweening. It doesn't use the MovieClip's own onEnterFrame event & It is based on time, not on frames.

Let's suppose you want to move something using an animation, to provide a smoother experience for the user. Using MC Tween, you could do:
myMovieclip.tween("_x", 100);

To download the extension or read the full documentation with examples please go to: http://hosted.zeh.com.br/mctween/

Monday, May 12, 2008

Auto Save

Hi Guys,

You can enable autosaving for your flash documents in Flash by downloading and installing the extension -

Extension:Auto save extension

You can set the autosave intervals as per your needs.

This extensions is licensed under a Creative Commons License. If you choose to download it then you are agreeing to the terms in this license agreement.