actionscript 3 - How to remove stream video in next scene AS3 -


i making project video in scene, when go next scene video keeps appearing. how can remove it.

my code far is:

import flash.net.netconnection; import flash.net.netstream; import flash.media.video; import flash.events.mouseevent;   var videoconnection:netconnection = new netconnection(); videoconnection.connect(null); var videostream:netstream = new netstream(videoconnection); videostream.play("short_jump.flv"); var metalistener:object = new object(); metalistener.onmetadata = onmetadata; videostream.client = metalistener; var video:video = new video(); video.attachnetstream(videostream); stage.addchild(video); video.x=200;  function onmetadata(data:object):void { play_btn.addeventlistener(mouseevent.click, playmovie); stop_btn.addeventlistener(mouseevent.click, stopmovie); }  function playmovie(event:mouseevent):void { videostream.play("short_jump.flv"); }  function stopmovie(event:mouseevent):void { videostream.pause(); } 

thanks support!

video.attachcamera( null ) stops audio , video last frame remains in video. should video.visible = false afterwards don't see frame. there's bug clear() doesn't should.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -