NiKeFiDO
Diamond Member
i figured this stuff out back in the old days without coding experience, now with it i can't figure it out. woot.
anyway, i have a movie, and all I want are two buttons, Play and Stop (stop effectively being a "pause" not a stop and rewind button).
after some video watching, i came up with:
(hey, whadda know, that attach code thing isn't working)
I have two buttons, called "PlayBtn" and "StopBtn" and my movie is called "theMovie"
This code gives the following errors:
http://pics.bbzzdd.com/users/nikefido/error.jpg
anyway, i have a movie, and all I want are two buttons, Play and Stop (stop effectively being a "pause" not a stop and rewind button).
after some video watching, i came up with:
(hey, whadda know, that attach code thing isn't working)
function onPlayClick (evt:MouseEvent):void {
theMovie.play();
}
PlayBtn.addEventListener(MouseEvent.CLICK, onPlayClick);
function onStopClick (evt:MouseEvent):void {
theMovie.stop();
}
StopBtn.addEventListener(MouseEvent.CLICK, onStopClick);
I have two buttons, called "PlayBtn" and "StopBtn" and my movie is called "theMovie"
This code gives the following errors:
http://pics.bbzzdd.com/users/nikefido/error.jpg