Re: [Flashcoders] AS 3.0 - Loader.load() a .swf and than control it

2006-10-19 Thread David Buff
I'm a little confused also about loading swf a control it. I didn't 
succeeded. But I've readed somewhere that you can not import swf compiled in 
as2 in a as3 loader, because the classes witch define the movieclip is 
different. But I remember there is another class especially for as2 
movieclip... sorry, my licence expired, and I didn't recept the Flex 2.0 I 
by...


Speak again about that when I get my new licence

David Buff

- Original Message - 
From: Dave Geurts [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 18, 2006 10:31 PM
Subject: [Flashcoders] AS 3.0 - Loader.load() a .swf and than control it


I am a little confused with loading media into the loader object.

I can load a swf in fine but than how do you control that swf's timline? I 
think that the swf gets loaded into a loader object, that has a display 
container? Im a little lost with the loader object concept.



I assumend it would be loader.getChildAt(0)

i saw loader.content in there but not sure what that does.

---
var introLoader:Loader = new Loader();

var request:URLRequest = new URLRequest(intro.swf);
introLoader.load(request);


trace(introLoader.content);
---
Intro loads fine and starts playing
Trace returns null

Another question is can you load in a .swf that was compiled in 2.0 even if 
it has no AS in it and control its timeline?



thanks for your time!

-Dave







___
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] AS 3.0 - Loader.load() a .swf and than control it

2006-10-19 Thread Dave Geurts

 Oh wow that would be nice, does anybody know of this class? I cant seem to 
find anything but, people saying you have no control of a AS 2 movie.

-Original Message-
From:   [EMAIL PROTECTED] on behalf of David Buff
Sent:   Thu 10/19/2006 2:42 AM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] AS 3.0 - Loader.load() a .swf and than 
control it

I'm a little confused also about loading swf a control it. I didn't 
succeeded. But I've readed somewhere that you can not import swf compiled in 
as2 in a as3 loader, because the classes witch define the movieclip is 
different. But I remember there is another class especially for as2 
movieclip... sorry, my licence expired, and I didn't recept the Flex 2.0 I 
by...

Speak again about that when I get my new licence

David Buff

- Original Message - 
From: Dave Geurts [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 18, 2006 10:31 PM
Subject: [Flashcoders] AS 3.0 - Loader.load() a .swf and than control it


I am a little confused with loading media into the loader object.

I can load a swf in fine but than how do you control that swf's timline? I 
think that the swf gets loaded into a loader object, that has a display 
container? Im a little lost with the loader object concept.


I assumend it would be loader.getChildAt(0)

i saw loader.content in there but not sure what that does.

---
var introLoader:Loader = new Loader();

var request:URLRequest = new URLRequest(intro.swf);
introLoader.load(request);


trace(introLoader.content);
---
Intro loads fine and starts playing
Trace returns null

Another question is can you load in a .swf that was compiled in 2.0 even if 
it has no AS in it and control its timeline?


thanks for your time!

-Dave






 ___
 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

[Flashcoders] AS 3.0 - Loader.load() a .swf and than control it

2006-10-18 Thread Dave Geurts
I am a little confused with loading media into the loader object.

I can load a swf in fine but than how do you control that swf's timline? I 
think that the swf gets loaded into a loader object, that has a display 
container? Im a little lost with the loader object concept.


I assumend it would be loader.getChildAt(0)

i saw loader.content in there but not sure what that does.

---
var introLoader:Loader = new Loader();

var request:URLRequest = new URLRequest(intro.swf);
introLoader.load(request);


trace(introLoader.content);
---
Intro loads fine and starts playing
Trace returns null

Another question is can you load in a .swf that was compiled in 2.0 even if it 
has no AS in it and control its timeline?


thanks for your time!

-Dave
___
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] AS 3.0 - Loader.load() a .swf and than control it

2006-10-18 Thread Muzak
info on loader:
http://livedocs.macromedia.com/labs/as3preview/langref/flash/display/Loader.html
or
http://livedocs.macromedia.com/flex/2/langref/flash/display/Loader.html

http://livedocs.macromedia.com/labs/as3preview/langref/flash/display/LoaderInfo.html

If you load a v8 swf in v9 it becomes an AVM1Movie
http://livedocs.macromedia.com/labs/as3preview/langref/flash/display/AVM1Movie.html
You do not have full control over an AVM1Movie, control is very limited.
If I'm not mistaken, you can't control its timeline.

The reason the trace returns null, is because nothing is loaded yet.
You'll need to use events to determine when content is loaded (see examples in 
the docs)

regards,
Muzak

- Original Message - 
From: Dave Geurts [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 18, 2006 10:31 PM
Subject: [Flashcoders] AS 3.0 - Loader.load() a .swf and than control it


I am a little confused with loading media into the loader object.

I can load a swf in fine but than how do you control that swf's timline? I 
think that the swf gets loaded into a loader object, that 
has a display container? Im a little lost with the loader object concept.


I assumend it would be loader.getChildAt(0)

i saw loader.content in there but not sure what that does.

---
var introLoader:Loader = new Loader();

var request:URLRequest = new URLRequest(intro.swf);
introLoader.load(request);


trace(introLoader.content);
---
Intro loads fine and starts playing
Trace returns null

Another question is can you load in a .swf that was compiled in 2.0 even if it 
has no AS in it and control its timeline?


thanks for your time!

-Dave




___
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