numediaweb
November 24th, 2008, 09:51 AM
Hello there
I have a document class myClass, where i set a variable:
var playhead:String = new String("");
index_menu_bar.menu_bar.btn_menu.addEventListener( MouseEvent.MOUSE_OVER, MouseOverBar);
function MouseOverBar(e:MouseEvent):void{
index_menu_bar.playhead = "hs";
index_menu_bar.play();
}
and in the timeline I have a movie clip index_menu_bar inside it, say in frame 25 I have this script hat tries to get the variable from the class
stop();
gotoAndPlay(playhead);
but i got error:
1120 : access to undifined property playhead
as you can see i already defined this property on my class!!
any clews?
thanx
I have a document class myClass, where i set a variable:
var playhead:String = new String("");
index_menu_bar.menu_bar.btn_menu.addEventListener( MouseEvent.MOUSE_OVER, MouseOverBar);
function MouseOverBar(e:MouseEvent):void{
index_menu_bar.playhead = "hs";
index_menu_bar.play();
}
and in the timeline I have a movie clip index_menu_bar inside it, say in frame 25 I have this script hat tries to get the variable from the class
stop();
gotoAndPlay(playhead);
but i got error:
1120 : access to undifined property playhead
as you can see i already defined this property on my class!!
any clews?
thanx