[Help] Linking scenes using buttons within a MovieClip - CS3 AS 3.0


im trying link series of buttons have created within movie clip scenes have created. code buttons along lines of:

 

sun_btn.addeventlistener(mouseevent.click, sungo);

 

function sungo(event:mouseevent):void {

movieclip(root).gotoandstop(1,"sun");

};

 

when testing code error:

 

argumenterror: error #2108: scene sun not found.

at flash.display::movieclip/gotoandstop()

at planets_mainpage_fla::mc_mainnav_4/sungo()

 

ive checked have named scenes accordingly , have, no other errors produced. apperciated

flash disagrees , flash correct.

 

check spelling/check case/check white space.



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support