
Wat klopt hier niet?
Ik ben in adobe flash cs5 een fotoslideshow aan het maken met dit stukje actionscript:
stop();
//next button
next_btn.onPress=function() {
if(mc_content._currentframe==mc_content._totalframes){
mc_content.gotoAndStop(1)
}else{
mc_content.nextFrame()
}
}
//last button
last_btn.onPress=function(){
if(mc_content._currentframe==1){
mc_content.gotoAndStop(mc_content._totalframes)
}else{
mc_content.prevFrame()
}
}
Vervolgens doe ik 'test movie' en krijg ik deze meldingen:
Scene 1, Layer 'actions', Frame 1, Line 4 1119: Access of possibly undefined property onPress through a reference with static type flash.display:SimpleButton.
Scene 1, Layer 'actions', Frame 1, Line 13 1119: Access of possibly undefined property onPress through a reference with static type flash.display:SimpleButton.
Scene 1, Layer 'actions', Frame 1, Line 5 1120: Access of undefined property mc_content.
Scene 1, Layer 'actions', Frame 1, Line 5 1120: Access of undefined property mc_content.
Scene 1, Layer 'actions', Frame 1, Line 6 1120: Access of undefined property mc_content.
Scene 1, Layer 'actions', Frame 1, Line 8 1120: Access of undefined property mc_content.
Scene 1, Layer 'actions', Frame 1, Line 14 1120: Access of undefined property mc_content.
Scene 1, Layer 'actions', Frame 1, Line 15 1120: Access of undefined property mc_content.
Scene 1, Layer 'actions', Frame 1, Line 15 1120: Access of undefined property mc_content.
Scene 1, Layer 'actions', Frame 1, Line 17 1120: Access of undefined property mc_content.
Iemand een idee wat ik fout doe?