RE: [Flashcoders] Completely stumped about MovieClipLoader not working

2006-11-09 Thread Ben Smeets
] Completely stumped about MovieClipLoader not working Hi, assuming that you use a relative path to the swf, then you can just use one substring: var baseurl:String = _root._url; baseurl = baseurl.substr(0, baseurl.lastIndexOf(/)+1); mcl.loadClip(baseurl+ar07ui.swf); On 11/9/06, Hans Wichman [EMAIL

Re: [Flashcoders] Completely stumped about MovieClipLoader not working

2006-11-09 Thread Ray Chuan
] On Behalf Of Ray Chuan Sent: donderdag 9 november 2006 5:44 To: Flashcoders mailing list Subject: Re: [Flashcoders] Completely stumped about MovieClipLoader not working Hi, assuming that you use a relative path to the swf, then you can just use one substring: var baseurl:String = _root._url

Re: [Flashcoders] Completely stumped about MovieClipLoader not working

2006-11-09 Thread Hans Wichman
november 2006 5:44 To: Flashcoders mailing list Subject: Re: [Flashcoders] Completely stumped about MovieClipLoader not working Hi, assuming that you use a relative path to the swf, then you can just use one substring: var baseurl:String = _root._url; baseurl = baseurl.substr(0

Re: [Flashcoders] Completely stumped about MovieClipLoader not working

2006-11-09 Thread Ray Chuan
to Access network only right? -Original Message- From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] On Behalf Of Ray Chuan Sent: donderdag 9 november 2006 5:44 To: Flashcoders mailing list Subject: Re: [Flashcoders] Completely stumped about MovieClipLoader not working Hi

Re: [Flashcoders] Completely stumped about MovieClipLoader not working

2006-11-09 Thread Hans Wichman
? -Original Message- From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] On Behalf Of Ray Chuan Sent: donderdag 9 november 2006 5:44 To: Flashcoders mailing list Subject: Re: [Flashcoders] Completely stumped about MovieClipLoader not working Hi, assuming that you use

[Flashcoders] Completely stumped about MovieClipLoader not working

2006-11-08 Thread Mendelsohn, Michael
Hi list... I can't figure out why MovieClipLoader isn't working. In the authoring environment, I get no error but it doesn't load, and in the browser, I get urlNotFound error. I don't understand it as the two swfs sit next to each other in the same folder. Any thoughts are appreciated.

Re: [Flashcoders] Completely stumped about MovieClipLoader not working

2006-11-08 Thread Éric Thibault
I've just copy/past your code inside a new flash file and it is working fine both in the IDE and the browser Published for 7 or 8 AS 2 with the Flash player 8. P.S. I don't have any JS functions inside my HTML... maybe the bug is there? A+ Mendelsohn, Michael a écrit : Hi list... I

RE: [Flashcoders] Completely stumped about MovieClipLoader not working

2006-11-08 Thread Mendelsohn, Michael
Thanks for trying. The External Interface is the only thing there that works for me. I get the alerts from the html page, but that's it. It never finds the other swf. Could it be some kind of security issue? I've just copy/past your code inside a new flash file and it is working fine both

Re: [Flashcoders] Completely stumped about MovieClipLoader not working

2006-11-08 Thread Éric Thibault
I've redone the test on my webserver with the externalinterface and all is functionning normaly if all (HTML and SWF) are in the same folder! If the HTML page is not in the same folder, the external SWF must be called relative to the HTML, not to the loader SWF. Maybe your bug is there! A+

Re: [Flashcoders] Completely stumped about MovieClipLoader not working

2006-11-08 Thread Hans Wichman
Hi, instead of using your path directly try something like this: class App { public static function getPath (parent:MovieClip, path:String):String { var parUrl:String = parent._url; parUrl = parUrl.split(\\).join(/ file://%22).join(%22/); var pathUrl:String = path.split(\\).join(/

Re: [Flashcoders] Completely stumped about MovieClipLoader not working

2006-11-08 Thread Hans Wichman
ps that can be made way more efficient, its still under construction :) On 11/8/06, Hans Wichman [EMAIL PROTECTED] wrote: Hi, instead of using your path directly try something like this: class App { public static function getPath (parent:MovieClip, path:String):String { var parUrl:String =

Re: [Flashcoders] Completely stumped about MovieClipLoader not working

2006-11-08 Thread Ray Chuan
Hi, assuming that you use a relative path to the swf, then you can just use one substring: var baseurl:String = _root._url; baseurl = baseurl.substr(0, baseurl.lastIndexOf(/)+1); mcl.loadClip(baseurl+ar07ui.swf); On 11/9/06, Hans Wichman [EMAIL PROTECTED] wrote: ps that can be made way more