Remove video after playing

Using Pano2VR/Object2VR SWF files with your own Flash projects
Post Reply
Sascha Selent
Posts: 28
Joined: Sat Jan 24, 2009 9:36 pm

Remove video after playing

Post by Sascha Selent » Tue Apr 26, 2011 5:44 pm

Hello everybody,

we are unfortunately still having trouble with the pano player and video. We are trying to load a new panorama after a video that was loaded through vr.attachVideo is done playing. However, even though no errors are thrown, the video just won't disappear (and the new panorama never shows). Here is what we've tried after the video has reached its end:

Code: Select all

var ns:NetStream = vr.pano.video.stream;
ns.pause();
//ns.close();

vr.pano.video.connection.close();
vr.pano.video.video.clear();

// open next panorama						
vr.pano.openNext(pano_url2);
Trying to close the NetStream results in a SecuritySandbox error. Does anybody have an idea how the video can be removed? Is there something like an unattachVideo function? Any help would be greatly appreciated. Thanks a bunch and regards!

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest