• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Actionscript (3.0 !)

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)
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
 
Back
Top