1120: Access of undefined property


ok, getting frustrated , hoping help. need create simple flash video replace image map on website. have not used flash , actionscript in on year , not getting map work.

 

background: have created map background , created buttons on every area. in timeline have used frame 1 place buttons , map. map converted graphic. imported images flash , converted them buttons. lets call button 1 btnsedibeng , instance name in properties panel sedibeng_btn. created new layer in timeline , added code post @ bottom. created business card sedibeng (johannesburg, south africa) area , on own layer created new keyframe in frame 2. named using properties panel msedibeng , stopped classic tween @ frame 50.

 

my goal should click on sedibeng button shouls play short classic tween labelled msedibeng. when test following error:

 

scene 1, layer 'code', frame 1, line 71120: access of undefined property msedibeng.

 

my code in frame 1 on layer "code" follows:

 

stop();

 

sedibeng_btn.addeventlistener(mouseevent.click, moviesedibeng);

 

function moviesedibeng(event:mouseevent):void

{

    gotoandplay(msedibeng);

}

 

now have checked every frame of sedibeng layer , can confirm button name sedibeng_btn on every frame of layer. please can me het resolve.

 

thank in advance,

 

owen

if msedibeng name of frame, should string.  in other words, change gotoandplay(msedibeng) gotoandplay("msedibeng").



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support