Saturday, April 24, 2010

Create simple button in Flash CS4 using Actionscript 3.0

Hi.. Welcome to my first tutorial..
In this tutorial, I will show you how to create a simple button in Flash CS4 and by using Actionscript 3.0, we will write a simple function for the button..

Ok. Let's begin.

1. Create new Flash File(Actionscript 3.0)


2. Select Layer 1 and choose Rectangle Tool button in Tools section to create new rectangle shape.



3. Set the Rectangle Tool Properties and draw the rectangle shape on the stage.



4. Select the rectangle shape and go to Modify>Convert To Symbol...(F8) at the top menu.




5. Give a name to that symbol and choose Type Button. After that, click OK.


6. Select the Button and go to Properties. Give a name to that Button as in the picture below.


7. Right Click on the Button and choose Edit in Place.


8. In the Button, you will see 4 conditions : Up, Over, Down and Hit.

Up - The default state.
Over - It's the state where you put your cursor over the Button.
Down - You click the Button.
Hit - Area that you want the button to become active and clickable.

I'll explain more about Hit in the next tutorial.



9. Right click in Over frame and choose Insert Keyframe. Change the color of the shape in the Over keyframe.



10. Repeat Step 9 for Down frame.


11. Go back to the main stage by clicking on Scene 1 link.


12. In the Timeline section, click on New Layer button to create Layer 2.



13. Right click inside Layer 2 frame and choose Actions.


14. Write a simple function for the Button like in the picture below.

simple_btn.addEventListener(MouseEvent.CLICK, goURL);

function goURL(evt:MouseEvent):void{
var urlReq:URLRequest = new URLRequest("http://jomreka.blogspot.com");
navigateToURL(urlReq,"_blank");
}


Click picture to enlarge.

15. Go to Control>Test Movie to see the preview of Button that we already created.


Click here to get the project file.

That's all. Cheers!! :)

Wednesday, April 21, 2010

Introduction to Jom Reka!! Tutorial

Here are some information about Jom Reka!! Tutorial

Language : English, Malay
Method : Step by Step explanation with screenshots
Software : Photoshop, Flash, Illustrator, Premiere, After Effects etc.

If you have any enquiries, please e-mail me at ashrafthedesigner@gmail.com.

Thanks. :)

Tuesday, April 20, 2010

My Works on YouTube

I have posted all my montage works on YouTube.. http://www.youtube.com/ashrafthedesigner

You also can visit my personal website http://www.ay-design.com to see my other works.. Thanks :)

My Personal Details

Name : Mohd Ashraf Bin Mohd Yusof
D.o.b : 30 October 1985

Education Background :

BSc(Hons)(Intelligent Systems)
2007-2009 - Universiti Teknologi MARA, Shah Alam, Malaysia

Diploma in Computer Sciences
2003-2006 - Universiti Teknologi MARA Negeri Sembilan, Malaysia

Certificate in Animation Master
2003 - Cosmopoint, Bangkok Bank Branch

Secondary School
1998-2002 - Sek. Men. Agama Kuala Lumpur

Primary School
1992-1997 - Sek. Keb. Jalan Pasar (1)

That's all. Thanks. :)

Jom Reka!!

Hi!! This blog was created to share with you all some creative idea about design.. I will post tutorials on this blog that will teach some basic techniques when using Photoshop, Illustrator, Flash, After Effects, Premiere etc. Feel free to visit this blog. If you have any request or comment, just e-mail me at ashrafthedesigner@gmail.com.

Thanks again for visiting this blog. :) Jom Reka!!