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!
Pano2VR - Flash 9 API
-
- Posts: 14
- Joined: Wed May 14, 2008 10:23 am
- Location: Chiba-central, JP
Flash Output panel says that No property of video.thomas wrote:You have to attach the movie after init so
....code....
should do the trick.
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.
You need to have a movie attached with vr.attachVideo(url). After that you should see the variable.soupstudio wrote:Flash Output panel says that No property of video.thomas wrote:You have to attach the movie after init so
....code....
should do the trick.
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?
MfG, Thomas
-
- Posts: 14
- Joined: Wed May 14, 2008 10:23 am
- Location: Chiba-central, JP
Of course I did so it.thomas wrote: You need to have a movie attached with vr.attachVideo(url). After that you should see the variable.
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
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 tosoupstudio 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)
Code: Select all
var VideoUrl:String = "<video url=\"movie.flv\"/>";
MfG, Thomas
-
- Posts: 14
- Joined: Wed May 14, 2008 10:23 am
- Location: Chiba-central, JP
Wao! Thank you thomas!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 toit should work just fine.Code: Select all
var VideoUrl:String = "<video url=\"movie.flv\"/>";
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!
-
- 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
But I cant delete it.
How can I remove(delate) hotspot mc ?
Thanks in Advance for your Help.
Soupstudio