Hello - I am using Flash CS3. When I test the movie, I get error code 1120 - access of undefined property. The code references a movieclip (instance name SJH) and is attached to frame 1 AS of a separate movieclip (jk1_btn) that acts as a button.
The movieclip SJH is also on stage at frame 1 (and it plays a slide show for 75 frames or until one of the buttons is clicked to play a video).
The offending code (SJH._visible=false;) is in the function below (though I was surprised that the error message is thrown immediately not when the function is called).
Any ideas why the error occurs?
Thanks!
jk1_btn.addEventListener(M
ouseEvent.
CLICK, vid1);
function vid1(e:Event):void {
SJH._visible=false;
vidPlayer.source = "jenvid.flv";
}
jk2_btn.addEventListener(M
ouseEvent.
CLICK, vid2);
function vid2(e:Event):void {
SJH._visible=false;
vidPlayer.source = "SJH_Rendering1.flv";
}
Start Free Trial