Pano2VR - Flash 9 API

Q&A about the latest versions
JohnB
Posts: 3
Joined: Sat Jun 07, 2008 3:30 am

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!
soupstudio
Posts: 14
Joined: Wed May 14, 2008 10:23 am
Location: Chiba-central, JP

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.
User avatar
thomas
Chief Gnome
Posts: 2613
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria
Contact:

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.
MfG, Thomas
soupstudio
Posts: 14
Joined: Wed May 14, 2008 10:23 am
Location: Chiba-central, JP

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.
Attachments
test.zip
my test flash
(601.71 KiB) Downloaded 502 times
User avatar
thomas
Chief Gnome
Posts: 2613
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria
Contact:

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.
MfG, Thomas
soupstudio
Posts: 14
Joined: Wed May 14, 2008 10:23 am
Location: Chiba-central, JP

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! :o 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. :D
I thank you!
soupstudio
Posts: 14
Joined: Wed May 14, 2008 10:23 am
Location: Chiba-central, JP

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
Post Reply