im making a flash contact table. and ive entered this code on the actions frame(frame 1).
stop();
mc_form.btn_send.onRelease = function():Void
{
if(mc_form.txt_name.text == “”)
{
_root.gotoAndStop(“error”)
}
else
{
_root.gotoAndStop(“correct”)
}
}
also on frame one is the contact form.
but it keeps giving this error.
Error Scene=Scene 1, layer=actions, frame=1:Line 3: ‘{’ expected
mc_form.btn_send.onRelease = function():Void
can someone please fix this