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

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