Groups | Blog | Home
all groups > flash actionscript > november 2007 >

flash actionscript : Basic onRelease/Frame Name


Pop Clingwrap
11/2/2007 12:00:00 AM
take the brackets out after onRelease. It should be formatted like this:
homebtn_mc.onrelease = function():Void
{
gotoAndStop("home");
schnerlz
11/2/2007 12:00:00 AM
schnerlz
11/2/2007 7:28:36 AM
I'm fairly new to CS3 and haven't messed with any of it's settings. I've had to
relearn a bit so bear with me. I'm building an fla using onRelease and frame
names to navigate. The concept is simple, yet my code doesn't work. I'm clearly
doing something wrong and a kind kick in the right direction would greatly help
me.

Here is the code - all instance/frame names accounted for:


homebtn_mc.onRelease() = function() {
gotoAndPlay("home");
}

photosbtn_mc.onRelease() = function() {
gotoAndPlay("photos");
}

vectorbtn_mc.onRelease() = function() {
gotoAndPlay("vector");
}

stop();

webbtn_mc.onRelease() = function() {
gotoAndPlay("web");
}

I suppose I should use gotoAndStop, but I'm more concerned withg etting *ANY*
of this code to work.
The validator says it's fine, yet when I publish I am fed error 1105. What
gives? :0)
AddThis Social Bookmark Button