lets stop();

Here we will take a closer look at the beginning of actionscript, Flash's native scripting language. We will make a simple 5 page presentation.

1. Open Flash, and resize the stage according to your need.

2. Make 2 more layers.

3. Rename the layers from buttom to top as Gfx,Actions,Labels.The layers should be placed like this

Labels—————-

Actions—————

Gfx——————-

Though this is not necessary, but it encourages best practice.

4. Now insert a blank keyframe in actions layer in the first frame.

5. Select the keyframe and then open Actions Layer.

6. Type the following script in "Actions Pannel"

stop();

7.This will make our moovie to stop in this particular frame.
8.Now save the file as "main.fla".
9. Make 5 copies of the file and name them "one.fla","two.fla","three.fla","four.fla","five.fla". These are our page files. We will load our page files into our "main.fla".
10.Open "main.fla"
11. Create a blank movieclip in library and name it "holder_mc".
12.Select Gfx layer's first frame and insert one blank keyframe in it.Place the blank movieclip in the stage.So that we have a blank movieclip on stage.Name the movieclip as "holder_mc".
13. Now place the "holder_mc" at the (0,0) position of stage. This is necessary put our pages at right place.Later on we will see how it affects the presentation.
14.Now make one button in the library.Lets name it "myBtn_btn" in the library.
15. Make 5 instances of "myBtn_btn" in stage and name them "first_btn","second_btn","third_btn", "fourth_btn","fifth_btn".All these names are the names of buttons on stage.
16.Select the first frame of Action's layer.Open the Action pannel.It should have only the follwing script in it, ahich we have written preveously.

stop();

17.Now add the following lines in it

first_btn.onRelease =function():Void{
_root.holder_mc.loadMovie("one.swf");
}
second_btn.onRelease =function():Void{
_root.holder_mc.loadMovie("two.swf");
}
third_btn.onRelease =function():Void{
_root.holder_mc.loadMovie("three.swf");
}
fourth_btn.onRelease =function():Void{
_root.holder_mc.loadMovie("four.swf");
}
fifth_btn.onRelease =function():Void{
_root.holder_mc.loadMovie("five.swf");
}

18. So our total script in first frame would be

stop();
first_btn.onRelease =function():Void{
_root.holder_mc.loadMovie("one.swf");
}
second_btn.onRelease =function():Void{
_root.holder_mc.loadMovie("two.swf");
}
third_btn.onRelease =function():Void{
_root.holder_mc.loadMovie("three.swf");
}
fourth_btn.onRelease =function():Void{
_root.holder_mc.loadMovie("four.swf");
}
fifth_btn.onRelease =function():Void{
_root.holder_mc.loadMovie("five.swf");
}

19.Now open all your five fla files and publish them to create five swfs.
20.Open "main.fla" and publish it to create "main.swf".
21. Thats it, you just open your main.swf by double cliking in it in window's explorer.Click on any of the 5 buttons.They will load on your main.swf.
22. So we get a 5 page working presentation.

I know, I have not explained each and everything here.But to know something, we must know something. So after creating this short presentation, we will start exploring more and try to understand how it works.

I would be happy to here from you.Please feel free to ask.

Happy flashing ;)

Getting into Action

Here we will take a quick look at Actionscript as a beginner. First question is, what is "actionscript" ?

The simple answer is, this is a scripting language. Flash uses it to add interactivity in side a flash movie (swf).

The very next thing will come to our mind is where can I put or write these scripts? Flash's user interface comprises of different pannels. So action scripting is written in "Actions pannel".But we can not just open our "Actions pannel" and write our whatever actions(or scripts).There is a rule to it, which says what actioins can go in where.We will talk about that later.For the timebeing, lets say we want to write some actions.We can do this and place our actions at 3 different places in our flash environment; namely

1 . Key frame

2. Button instances*

3.MovieClip instances*

* When we put a button/Movieclip symbol from library to Stage, it becomes an instance of the button/MovieClip on Libray, instance means duplicate.

After placing a Movieclip instance in stage, if we select it and open properties pannel, then we can see a textinput field where we can name the particular instance in stage.This name is very important because through actionscript whatever we have to write, we have to refer to this name not the name of the movieclip symbol in Library.

Ok,coming back to Actions,we can select a keyframe in main timeline and open our actions pannel and write the script. We can also select a movieclip instance then open the actions pannel and write scripts.Or we can select a button instance, open the actions pannel and write actions.

PHP 6 ?!!

Yeah, a brand new incarnation of PHP. Can you belive this, how fast PHP is growing ? With the release of PHP 5, we feel the power. Now its more power with standardisation. I found this post to be a good introduction to PHP6. I am very much excited about the capabilities its bringing in.

Where there is a will there is a way

Some People say that "I just do not get time to do this."Some say "I have better work to do, do not have time.".But after all its your health and health is wealth. So work, but please take care of yourself.Unless there is nothing you will get. Infact its good to be busy but its always bad to be busy for nothing. If it takes 2 more days to make yourself feel better, then take 2 days leave and take rest.But when you go back to work start the work and never feel tired.But being to work 2 days before and falling ill again after 4 days is a bad thing. I will say its better to judge yourself.Because noone else can say anything about your personal being.So be true to yourself. I drive myself by the proverb "Where there is a will, there is way". So if you want to achieve something, you will get a path.But the "will" has to be there.Nothing is impossible.