erfan.h
Member
سلام
من یه موی کلیپ دارم که وقتی روی اون کلیک می کنم به scene می ره
وقتی به scene دوم می ره این پیغام رو در پنل output می ده
من مشکلی با برنامه ندارم فقط وقتی که برنامه رو در ویندوز باز می کنم (بدون ctrl+enter )این پیغام میاد
کد های اون جا
من یه موی کلیپ دارم که وقتی روی اون کلیک می کنم به scene می ره
وقتی به scene دوم می ره این پیغام رو در پنل output می ده
PHP:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at fisa_fla::MainTimeline/mu()
کد های اون جا
PHP:
import flash.events.MouseEvent;
stop();
m1.addEventListener(MouseEvent.MOUSE_OVER,mo);
m2.addEventListener(MouseEvent.MOUSE_OVER,mo1);
m1.addEventListener(MouseEvent.MOUSE_OUT,mu);
m2.addEventListener(MouseEvent.MOUSE_OUT,mu1);
m1.addEventListener(MouseEvent.MOUSE_UP,mUP);
function mo(evt:MouseEvent):void{
sb.es.gotoAndPlay(2);
}
function mu(evt:MouseEvent):void{
sb.es.gotoAndPlay(12);
}
function mo1(evt:MouseEvent):void{
sb.ba.gotoAndPlay(2);
}
function mu1(evt:MouseEvent):void{
sb.ba.gotoAndPlay(12);
}
function mUP(evt:MouseEvent):void{
gotoAndStop(1, "Scene 2");
}