Bluepearl Blog Blog of the Bluepearl Network and Sean James

14Dec/090

Bluepearl Design redesigned

Last few weeks i have been working very hard to complete my own site www.bluepearl-design.com.

I am very happy with the results so far and only have 2 pages to complete. These are the blog and forum pages which i plan to add RRS feeds too within the flash.

I decided to keep the site layout and content simple as possible using more images than text.

This site was created in flash which i find myself using more and more lately.

Bluepearl Design home page with snow flakes for Christmas spirit

Bluepearl Design home page with snow flakes for Christmas spirit

 

The services page

The services page

 

The portfolio page

The portfolio page

 

The templates and themes page

The templates and themes page

 

The Sean James page -- about me :D

The Sean James page -- about me :D

 

The contact page

The contact page

9Dec/090

http://www.paparazzibyromel.com Completed

Last few months i have been working with my client Romel to finish a paparazzi site, www.paparazzibyromel.com

Spiel:

Do you read gossip magazines, watch the most recent shows and and follow the latest trends in fashion? Or have you ever wondered what it would be like to be famous?

Then Paparazzi might just be what you are looking for.

Imagine being picked up in a beautiful stretch limousine, with chilled French champagne and strawberries waiting for you inside. The driver takes you to your favourite nightclub or restaurant, and as you arrive, you notice a group gathering. Is it for you?

As you exit the limo, you are swamped by Paparazzi wanting to take your photo. They want to get to know you, and start yelling your name and ask you questions for the latest updates to put in their gossip columns. You are part of the moment, that special moment.

Already smashing it in the states – Paparazzi is now the first unique experience of its kind in Australia.

This lifestyle is yours for the taking!

This site is coded in XHTML/CSS and Adobe Flash with Actionscript 3

Paparazzi By Romel

Paparazzi By Romel

paparazzi2
paparazzi3
paparazzi4
paparazzi5

4Oct/092

Actionscript 3.0 for a button in Flash CS3 and CS4

I have recently been using Adobe Flash CS4 and i must say i am really liking it!! Especially the new tweening and animation, makes life alot easier.

I had to create a button in Actionscript 3.0 today and had some problems getting the button to work.. the actionscript for a button since actionscript 2.0 has changed. For starters you need to give the button an instance name by right clicking the button on the stage and then going to the the properties window you can enter the instance name like in the image below.

button instance for flash CS4

button instance for flash CS4

So to create a button in Flash CS3 and CS4 with actionscript 3.0 please follow these steps.

  1. Create a button, for example create a box using the rectangle tool then right click the box and select covert to symbol then select type as Button, then press OK.
    Simple button in flash CS4

    Simple button in flash CS4

  2. Select the button and then goto the properties window on the right side of the screen. Give the button an instance name of My_Button.
    The button instance name

    The button instance name

  3. Create a new layer above your button layer in the timeline called actions. Select the first frame in the actions layer and bring up your actions panel by either going to window -> actions or by pressing F9 on your keyboard.
    Create these layers in your timelime

    Create these layers in your timelime

    The action panel (F9)

    The action panel (F9)

    This is what the action panel looks like
  4. In the actions panel enter the Actionscript 3.0 below.

[cc lang="actionscript"]
My_Button.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick);

function mouseClick(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.bluepearl-design.com/"));
}
[/cc]
The Actionscript above will open a new window to www.bluepearl-design.com when clicked, if you prefer the link to open in the same window use this code below:
[cc lang="actionscript"]
My_Button.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick);

function mouseClick(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.bluepearl-design.com/"), "_self");
}
[/cc]

You can also have the button use a timeline control.

[cc lang="actionscript"]
My_Button.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick);

function mouseClick(event:MouseEvent):void {
gotoAndPlay(2);
}
[/cc]

And that is about it on how to create a simple clickable button in Actionscript 3.0, test the demo out below.

Get Adobe Flash player