all groups > flash actionscript > may 2006 >
You're in the

flash actionscript

group:

Flash Runtime Sharing



Flash Runtime Sharing Mad Rhino
5/29/2006 4:19:00 PM
flash actionscript: Hi there, i have a flash movie (main.swf) which loads shared resources from
another flash movie (resources.swf) using 'import for runtime sharing'. The
problem is that the flash movie which stores all the shared items
(resources.swf) is in a subdirectory, and that subdirectory url sometimes
changes. The problem is that if the directory URL changes, i have to then
re-edit my main flash movie and specify the new URL to resources.swf. I was
wondering if it is possible to change the <b>import URL</b> at runtime
<b>or</b> to store it in a txt file , for example, so it can be easily changed
in the future, other than re-editing it.

I really hope someone can help or give me any alternatives as this is driving
me crazy :P

Thanks
Re: Flash Runtime Sharing Jim Esteban
5/29/2006 5:43:40 PM
You have a couple of different options. You could pass the variable in on a
query string in the by adding a query string to the program path in the object
tag which calls the program in the first place. Here's how I get my current
url:
<param name="movie"
value="<cfoutput>flash/navscroller/navscrollerl.swf?S1=#URL.S1#&S2=#URL.S2#</cfo
utput>" />
Or you can use LoadVaribles. Or perhaps even Load the data in from a database
via ASP or Coldfusion or whatever.
Re: Flash Runtime Sharing Mad Rhino
5/29/2006 5:50:26 PM
Hi there, thanks for replying to my post, however, this is not the case when specifying the "import for runtime sharing" URL for a movieclip.

AddThis Social Bookmark Button