Graphic arts: April 2008 Archives

First, I must make it perfectly clear, I love my job here at the good old YDR.

But, have to say that I'm really frustrated with FLASH CS3. I was sooo frustrated today, that I actually back paddled and reopen FLASH 8.

My frustrations grew out of the fact that you can no longer directly add a behavior or action to a button. Which, you really shouldn't do, but I was creating very simple action scripts, so I thought I would throw caution to the wind and add a simple action to my button. HA! Can't be done! Well, it can be done, just not directly.

For example, you have a button sitting on your stage. Select it, give it an instance name, (in this example the instance name is myButton) in the Property inspector. Once you give the button an instance name ActionScript can now identify it from any other objects/symbols present. Next add some action scripting to a key frame that is on its own layer and type the following:

myButton.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
trace("I've been clicked!");
}
);

Well, that's pretty much your crash course on adding action scripts to buttons? In short, direct attachment of code is a thing of the past. ActionScript 3.0 simply doesn’t support it. Also, to add the Behaviors panel is dimmed when a FLA’s Publish Settings are configured for AS3, because Behaviors rely on on() or onClipEvent(). Change your Publish Settings to AS2 or 1, they come back.

I am in no ways an expert at Flash, I'm still learning, and now with Flash CS3 re-learning.

Ohh, I'm excited to see my Prom page. I think it will publish on the 11th in the Living section.

Here's the almost finished design. The finished page design has color.
Picture 3.png

About this Archive

This page is a archive of entries in the Graphic arts category from April 2008.

Graphic arts: March 2008 is the previous archive.

Graphic arts: June 2008 is the next archive.

Find recent content on the main index or look in the archives to find all content.