FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Making buttons in Flash CS4





redslazers
Hey, how do i get a button to go to a new page. geturl doesn't seem to be working for me. any help would be appreciated
redslazers
ok, i solved that problem, i found the code


home_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);

function mouseDownHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.coconuttech.com/"));



but

when i add them to the other buttons in the file i get this error
1084: Syntax error: expecting rightbrace before end of program.

what do i do about that?

Solved using one of those closing brackets
redslazers
ok it seems like i am solving my own problems but now i have a hit a dead end
1021: Duplicate function definition.

for one of the layers i have this

home_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);

function mouseDownHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.coconuttech.com/"));
}

and for another this one

flash_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);

function mouseDownHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.coconuttech.com/flashcenter.html"));
}


i dont see the conflict

thank for any help
Related topics
Flash CS4
about flash web sites
Some good Flash sites
Should I make a flash site?
Flash Intros needed
Flash Media Player Running On PHP.
Swish jukebox - flash everything !
Flash Preloader
Flash Remembering Your Options
Is there a software change Flash Disk To Computer Memory ?
Flash Score
[solved] Flash Help
Learning Flash
Fatster flash loading.
Reply to topic    Frihost Forum Index -> Computers -> Computer Problems and Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.