This is my code so far:
function VideoOne (event: MouseEvent):void{
pubPlayer.source="symptoms-2.flv";
}
function VideoTwo (event: MouseEvent):void{
pubPlayer.source="management-2.flv";
}
function VideoThree (event: MouseEvent):void{
pubPlayer.source="causes-2.flv";
}
onev.addEventListener(MouseEvent.CLICK, VideoOne);
twov.addEventListener(MouseEvent.CLICK, VideoTwo);
threev.addEventListener(MouseEvent.CLICK, VideoThree);
My problem is is that when a button is clicked on no video is played and the output is the following:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at flash_fla::MainTimeline/VideoOne()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at flash_fla::MainTimeline/VideoTwo()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at flash_fla::MainTimeline/VideoThree()
Can anyone help me on this please.
This post has been edited by macosxnerd101: 24 May 2012 - 02:15 PM
Reason for edit:: Please use code tags

New Topic/Question
Reply


MultiQuote








|