ok so im using Flash CS3 with AS2, and I cant get a button to work for me. I want the button to send me to a url on release and also gotoAndPlay scene 2 frame 1. I have the syntax down, but its just not working, would anyone be able to look at it for me? I know its something really simple that needs to be done to fix it, but I cant figureit out.
on(release){
getURL("urlhere");
gotoAndPlay("frameLabelHere");
}
[quote=dru_nasty;2351938] ActionScript Code:
[LEFT][COLOR=#0000FF]on[/COLOR]COLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]getURL[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#0000FF]gotoAndPlay[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR]
[/LEFT]
[/quote]
i tried using that, but i dont think i put it in the right spot. it said it can only be used on button instance.
i put that on the first frame of the button instance and it doesnt do anything. i also put it on an actions layer as my_button.onRelease funtion()
and that didnt work either
post your fla please
ok so basically what i want this to look like: http://www.waldenmed.com/
and what i have so far: link
should work if you right click save as
All you need to do is give your button an instance name “pureple_butt” (no quotes).
On another note, it’d be cool to just put the getURL function on the last from of your Scene2. That way the outro animation plays, then the swf loads the url. Just an idea
WOW! It worked, thanks so much!!
no problem