In my AS3, all was working fine till one button make a problem.This is the error I have:
Error: Cannot tween a null object.
at com.greensock::TweenLite()
at com.greensock::TweenMax()
at com.greensock::TweenMax$/from()
at interactive_fla::MainTimeline/frame1()
at flash.display::MovieClip/gotoAndPlay()
at interactive_fla::MainTimeline/onClick4()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.greensock::TweenLite/init()
at com.greensock::TweenMax/init()
at com.greensock::TweenMax/renderTime()
at com.greensock.core::SimpleTimeline/renderTime()
at com.greensock::TweenLite$/updateAll()
As the typeError #1009:... is alot more after this error.
This is my code:
stop();
import com.greensock.*;
import com.greensock.easing.*;
TweenLite.from(information_mc,1,{y:-100,delay:1,ease:Back.easeOut});
TweenLite.from(backbtn1,1,{y:-100,delay:1,ease:Back.easeOut});
backbtn1.addEventListener(MouseEvent.CLICK,onClick4)
function onClick4(evt:MouseEvent):void{
trace("the button is being click!")
trace("value = " + backbtn1)
gotoAndPlay(1);
}
Anyone can help??