Page 3 of 3
Re: Pano2VR - Flash 9 API
Posted: Sat Jun 07, 2008 4:41 am
by JohnB
I am trying to use these two comments to test out a way to load and unload panos from a flash program.
I load the pano up on the first frame of the flash movie. I have buttons that will take you to other frames. On one of the buttons that takes you to frame twenty I have these line sin actionscript.
vr.pano.cleanup();
removeChild(vr);
I get this error. It doesn;t unload the pano either...
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display::DisplayObjectContainer/removeChild()
at tourtest_fla::MainTimeline/frame20()
I am new to actionscript 3.0 and don't know what to do. Any help would be appreciated. Thanks!
Re: Pano2VR - Flash 9 API
Posted: Mon Jun 30, 2008 4:35 pm
by soupstudio
thomas wrote:You have to attach the movie after init so
....code....
should do the trick.
Flash Output panel says that No property of video.
Therefore I previewed it in debugMode of flash.
"vr.pano.video" was not found in a variable panel.
Does API of video really act?
Is there any condition?
I hope all your help.
Thanks.
Re: Pano2VR - Flash 9 API
Posted: Sat Jul 05, 2008 3:13 am
by thomas
soupstudio wrote:thomas wrote:You have to attach the movie after init so
....code....
should do the trick.
Flash Output panel says that No property of video.
Therefore I previewed it in debugMode of flash.
"vr.pano.video" was not found in a variable panel.
Does API of video really act?
Is there any condition?
You need to have a movie attached with
vr.attachVideo(url). After that you should see the variable.
Re: Pano2VR - Flash 9 API
Posted: Sat Jul 05, 2008 5:19 pm
by soupstudio
thomas wrote:
You need to have a movie attached with vr.attachVideo(url). After that you should see the variable.
Of course I did so it.
The answer that I want is not having variable or not.
Why is not video displayed ? with flash API.
I want to know the reason that I cannot display.
Will you watch my test.fla file?(with flv&swf)
It is the first shortcut.
Thanks.
Re: Pano2VR - Flash 9 API
Posted: Sat Jul 05, 2008 6:30 pm
by thomas
soupstudio wrote:
The answer that I want is not having variable or not.
Why is not video displayed ? with flash API.
I want to know the reason that I cannot display.
Will you watch my test.fla file?(with flv&swf)
Ups..... ok, sorry my mistake.... you need to submit the XML string as in the HTML page, not just the url. if you change the line to
Code: Select all
var VideoUrl:String = "<video url=\"movie.flv\"/>";
it should work just fine.
Re: Pano2VR - Flash 9 API
Posted: Sat Jul 05, 2008 7:10 pm
by soupstudio
thomas wrote:
Ups..... ok, sorry my mistake.... you need to submit the XML string as in the HTML page, not just the url. if you change the line to
Code: Select all
var VideoUrl:String = "<video url=\"movie.flv\"/>";
it should work just fine.
Wao!
Thank you thomas!
It's displayed and moving!!!
It was xml. I did not notice.
I'll try it in various ways and go to next steps.
I thank you!
Re: Pano2VR - Flash 9 API
Posted: Fri Jul 18, 2008 10:44 pm
by soupstudio
I can add hotspot mc with flash API.
But I cant delete it.
How can I remove(delate) hotspot mc ?
Thanks in Advance for your Help.
Soupstudio