Skip to main content
Participant
May 21, 2009
Question

Help gotoAndPlay("Scene",1) invalid coercion ..

  • May 21, 2009
  • 1 reply
  • 509 views

i just made a simple flash ..there's 2 scene : "Scene 1", and "Collections"

and then i added a button .. "btn_coll"

then i wrote this in the actionscript

stop();

btn_coll.addEventListener(MouseEvent.CLICK,tombol);
function tombol(event:MouseEvent):void{
gotoAndPlay("Collections",1);

}

and when i play it, it said Invalid Coercion of a value of a Int to a undefined string.

why it's error?

thanks.. please help ASAP..

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
May 21, 2009

Switch the order of the arguments in the gotoAndPlay call.