Re: [Flashcoders] loadMovie from subdirectory - change base path

2008-02-01 Thread Juan Pablo Califano
alifano - Original Message - From: "confusticate and bebother these dwarves!" <[EMAIL PROTECTED]> To: Sent: Wednesday, January 30, 2008 2:40 AM Subject: [Flashcoders] loadMovie from subdirectory - change base path Hello Flashcoders, I'm trying to make a main mo

Re: [Flashcoders] loadMovie from subdirectory - change base path

2008-02-01 Thread Hans Wichman
Hi, i think this applies to using an html file in location a loading an swf from location b. Seeing Amanda has two different basepaths, setting the base to nr 1 will confuse nr 2 and vice versa. Copying everything to the same directory like Bob said seems a good and simple solution though:). greet

Re: [Flashcoders] loadMovie from subdirectory - change base path

2008-02-01 Thread Glen Pike
Can you use the "base" attribute in the params to set somewhere that you can then use relative paths. |http://www.example.com/pages/";> http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_04157&sliceId=2

Re: [Flashcoders] loadMovie from subdirectory - change base path

2008-01-31 Thread Bob Leisle
One simple solution would be to physically move your controller swf into the screens directory and run it from there. Then they'll all have the same path and no retrofitting needed. hth, Bob Amanda Kuek wrote: @Deepanjan Das, @JC Thanks for your replies! It seems that, despite my fondest hop

Re: [Flashcoders] loadMovie from subdirectory - change base path

2008-01-31 Thread Amanda Kuek
@Deepanjan Das, @JC Thanks for your replies! It seems that, despite my fondest hopes, there is no easy way to "retro-fit" hundreds of SWFs originally built without this loadMovie() requirement in mind. Cheers and thanks :-) On Jan 30, 2008 8:05 PM, Hans Wichman <[EMAIL PROTECTED]> wrote: > Hi,

Re: [Flashcoders] loadMovie from subdirectory - change base path

2008-01-30 Thread Hans Wichman
Hi, check this out: http://objectpainters.com/blog/2007/01/03/where-am-i-relative-paths/ The getPath things works in most cases. If you want a more complex version that takes more things into account, you can use this: You will need to replace the RuntimeExceptions with your own error mechanism (

Re: [Flashcoders] loadMovie from subdirectory - change base path

2008-01-29 Thread Deepanjan Das
Hi, You need to keep duplicate files if you want it to work as single and also when loaded from main movie. Easiest way is to create an xml directory at the place where the main movie resides and set the path as "xml/1.xml" also copy this directory in the screens directory so ths ame path will wo

[Flashcoders] loadMovie from subdirectory - change base path

2008-01-29 Thread confusticate and bebother these dwarves!
Hello Flashcoders, I'm trying to make a main movie ("controller.swf") that loads other movies ("screen1.swf", "screen2.swf", etc), which are stored in a subdirectory called "screens". In controller.swf I'm using loadMovie("screens/screenx.swf") to load the movies from the "screens" subdirectory,