Re: [Flashcoders] Loading a swf from another swf

2007-06-18 Thread Cary Ho

Yeah, im using action script 3. I got it working now, thanks for the info!


David Ngo wrote:

I believe he's using AS3's Loader.

Cary, I believe the url's would be relative to the container SWF or HTML. So
if your SWFs are sitting in a folder called 'swf' and your HTML is in the
root, then all of your files must have a url of 'swf/'.


David


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Monday, June 18, 2007 3:01 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Loading a swf from another swf

  

   ldr = new Loader();
  


You're using the Loader class instead of the MovieClipLoader class?
Isn't loader more for UI components and not external .swfs?

Jason Merrill
Bank of America  
GT&O Learning & Leadership Development

eTools & Multimedia Team


 
___

Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

  


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Loading a swf from another swf

2007-06-18 Thread David Ngo
I believe he's using AS3's Loader.

Cary, I believe the url's would be relative to the container SWF or HTML. So
if your SWFs are sitting in a folder called 'swf' and your HTML is in the
root, then all of your files must have a url of 'swf/'.


David


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Monday, June 18, 2007 3:01 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Loading a swf from another swf

>>ldr = new Loader();

You're using the Loader class instead of the MovieClipLoader class?
Isn't loader more for UI components and not external .swfs?

Jason Merrill
Bank of America  
GT&O Learning & Leadership Development
eTools & Multimedia Team


 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Loading a swf from another swf

2007-06-18 Thread Merrill, Jason
>>ldr = new Loader();

You're using the Loader class instead of the MovieClipLoader class?
Isn't loader more for UI components and not external .swfs?

Jason Merrill
Bank of America  
GT&O Learning & Leadership Development
eTools & Multimedia Team


 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Loading a swf from another swf

2007-06-18 Thread Cary Ho

Hi Everyone,

I have a swf file, that loads other swf files.

I have code in my loader swf file:

function init(){   
   var url:String = "page1.swf";

   var urlReq:URLRequest = new URLRequest(url);
   ldr = new Loader();
   ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded);
   ldr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, 
loading);   
   ldr.load(urlReq);   
}



This works when all the files are in the same directory and I run it 
locally.
This doesnt seem to work when I publish to my webserver. I put all the 
files into the

same directory, but the swf file can seem to get the other swf files.

I always get a URL Not Found. error. What am I doing wrong?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com