] 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
] 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
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
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
?
-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
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.
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
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
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+
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(/
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 =
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
12 matches
Mail list logo