How do I get my Flash CS4 buttons to direct the user to another URL?

Posted by goldenfeelings on Stack Overflow See other posts from Stack Overflow or by goldenfeelings
Published on 2010-06-01T03:01:04Z Indexed on 2010/06/01 3:13 UTC
Read the original article Hit count: 268

Filed under:
|
|
|

My apologies if this has been fully addressed before, but I've read through several other threads and still can't seem to get my file to work.

My actionscript code is at the bottom of this message. I created it using instructions from the Adobe website: http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7fd7.html

I believe I have all of my objects set to the correct type of symbol (button) and all of my instances are named appropriately (see screenshot here: www.footprintsfamilyphoto.com/wp-content/themes/Footprints/images/flash_buttonissue.jpg)

Action Script here. Let me know if you have suggestions! (Note: I am very new to Flash):

stop ();

function families(event:MouseEvent):void { var targetURL:URLRequest = new URLRequest("http://www.footprintsfamilyphoto.com/portfolio/families"); navigateToURL(targetURL); }

bc_btn1.addEventListener(MouseEvent.CLICK, families); bc_btn2.addEventListener(MouseEvent.CLICK, families);

function families(event:MouseEvent):void { var targetURL:URLRequest = new URLRequest("http://www.footprintsfamilyphoto.com/portfolio/families"); navigateToURL(targetURL); }

f_btn1.addEventListener(MouseEvent.CLICK, families); f_btn2.addEventListener(MouseEvent.CLICK, families);

function families(event:MouseEvent):void { var targetURL:URLRequest = new URLRequest("http://www.footprintsfamilyphoto.com/portfolio/families"); navigateToURL(targetURL); }

cw_btn1.addEventListener(MouseEvent.CLICK, families); cw_btn2.addEventListener(MouseEvent.CLICK, families);

© Stack Overflow or respective owner

Related posts about flash

Related posts about buttons