View Single Post
Old 07-18-2009, 01:06 PM  
smutnut
So Fucking Banned
 
Industry Role:
Join Date: Jul 2007
Location: Babylon
Posts: 5,889
Quote:
Originally Posted by Angel R. View Post
you gotta learn about listeners. You can't do "almost" anything without listeners in AS3.0
gotoandlearn com probably have some tutorials about it if you wanna check out.
Hey, you wouldn't happen to have some code for actionscript 2 that I could add to this and make the play button disappear when the movie is playing and maybe appear when you roll over it and when the movie stops would you.

This is the code I'm using for the clips:

var nc:NetConnection = new NetConnection();
nc.connect(null);

var ns:NetStream = new NetStream(nc);

theVideo.attachVideo(ns);

ns.play("clip.flv");

playButton.onRelease = function() {
ns.pause();
}
smutnut is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote