vr.pano.cleanup flash help!

Q&A about the latest versions
Post Reply
derbs
Posts: 1
Joined: Thu Apr 30, 2009 11:32 am

Hello everyone!
I know there's a few threads with the same issues, but there doesn't seem to be any solutions...

I've used the published code to embed a pano swf into my Flash 10 AS3 project. I want to unload it and load another on a button press. My code is

Code: Select all

theButton.addEventListener(MouseEvent.CLICK,doUnLoad);
function doUnLoad(Event:MouseEvent) {
	vr.pano.cleanup();
	removeChild(vr);
}
Every time I get the old "ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller." error. If anyone could point me in the right direction I would be eternally grateful!

Thanks
Paul
rfellers
Posts: 5
Joined: Tue Nov 27, 2007 4:25 am

Anybody!?! I have the same problem. Flash 9 - AS3 - Pano2VR 2.3 beta 1. Solutions?
User avatar
360Texas
Moderator
Posts: 3684
Joined: Sat Sep 09, 2006 6:06 pm
Location: Fort Worth, Texas USA
Contact:

Well, your comments are being read by others.. my guess is that you are using Flash authoring software like CS4.
Dave
Pano2VR Forum Global Moderator
Image
Visit 360texas.com
rfellers
Posts: 5
Joined: Tue Nov 27, 2007 4:25 am

360Texas wrote:Well, your comments are being read by others.. my guess is that you are using Flash authoring software like CS4.
I don't understand. I am using Flash authoring software - CS3. Is there a way to unload the pano?
Post Reply