all groups > flash actionscript > february 2004 >
You're in the

flash actionscript

group:

how do I load a local movie off a web page?


how do I load a local movie off a web page? bluedane
2/5/2004 11:46:19 PM
flash actionscript:
Hey guys, I hope you can help - sorry if this is a newbie question-

ok:
We have a good size flash movie that sits in the install directory of our app.

When you visit our web page, we would like to launch that movie in the web page (vs. re-downloading it.)

I can get the movie to load, but when I try and call GetVariable() on it, the call returns a failure value.
If the web page itself is local (and not served off our site like I just explained) it loads fine AND GetVariable() works just fine.

So, this makes me think that I'm being blocked for security reasons. I read somewhere that a local flash movie can mark itself as safe or something that lightens up the security restrictions. is that right?
If so, what do I do to make it so that I can call GetVariable() and whatnot on the local movie?


Thanks for any help, guys, really appreciate it-
-denny-


p.s. here's the html code, just for kicks-

<OBJECT id="flashPlayer"
height="276" width="640"
codeBase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0"
classid="CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000"
VIEWASTEXT>
<PARAM NAME="_cx" VALUE="16933">
<PARAM NAME="_cy" VALUE="7303">
<PARAM NAME="FlashVars" VALUE="">
<PARAM NAME="Movie" VALUE="file:///installdir/BaseMovie.swf">
<PARAM NAME="Src" VALUE="file:///instaldir/BaseMovie.swf">
<PARAM NAME="WMode" VALUE="Window">
<PARAM NAME="Play" VALUE="-1">
<PARAM NAME="Loop" VALUE="-1">
<PARAM NAME="Quality" VALUE="High">
<PARAM NAME="SAlign" VALUE="">
<PARAM NAME="Menu" VALUE="-1">
<PARAM NAME="Base" VALUE="">
<PARAM NAME="AllowScriptAccess" VALUE="always">
<PARAM NAME="Scale" VALUE="ShowAll">
<PARAM NAME="DeviceFont" VALUE="0">
<PARAM NAME="EmbedMovie" VALUE="0">
<PARAM NAME="BGColor" VALUE="">
<PARAM NAME="SWRemote" VALUE="">
<PARAM NAME="MovieData" VALUE="">
</OBJECT>


Re: how do I load a local movie off a web page? bluedane
2/6/2004 2:47:56 PM
any ideas?

bump.
thanks!
-d-

Re: how do I load a local movie off a web page? Carl Fink
2/6/2004 8:09:33 PM
You cannot do what you would like to. Macromedia has designed the
Flash Player to make it impossible.

Sorry.
--
Carl Fink
Please respond to the newsgroup only.

AddThis Social Bookmark Button