FORUMS: list search recent posts

newbie to flas and action script 3.0

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
chris wright
newbie to flas and action script 3.0
on Mar 13, 2008 at 6:47:21 pm

Hi All,
I am a newbie to flash and have limited experience with OOP (and thus action script), so I apologize up front for my lack of knowledge. I think it is pretty easy to fix, just don't know the syntax or if there is a better way to do this. Here is my problem:

I have created a flash file which has a map (as a base image layer) with 4 quadrants, I have created separate layer (converted to a button) that matches the boundary of 1 of the 4 quadrants and added some simple script I copied and modified from an Adobe tutorial (see syntax below). Instead of a new webpage popping up and the output text "I'm Clicked" I want a new window to appear with the individual quadrant map (which is a separate image, ,jpg).

I just don't know what the syntax is to call that new image up once you mouse over the individual quadrant.

Thanks

NW_Index_Map.addEventListener(MouseEvent.CLICK,buttonClickHandler);
NE_Index_Map.addEventListener(MouseEvent.CLICK,buttonClickHandler);
SW_Index_Map.addEventListener(MouseEvent.CLICK,buttonClickHandler);
SE_Index_Map.addEventListener(MouseEvent.CLICK,buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
navigateToURL(new URLRequest ("http://google.com"));
trace("I'm Clicked");
}





Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]