[Flashcoders] Linked library in loaded swf file

2007-02-19 Thread Coffield, Jim
Hi,

I have a flash movie that under various circumstances loads external .swf
flies. Is it possible to access the library of the loaded .swf file.

I have some sound files in the library of the loaded .swf file. The sound
files have the linkage set so that my_sound.attachSound works when the .swf
file that I am loading is run separately.

But when I load the .swf file into the main movie, the attachSound does not
work.

Thanks,

Jim Coffield

___
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] Linked library in loaded swf file

2007-02-19 Thread eka

Hello :)

you must use a shared library.. the best way to use it, it's Swfmill (the
opensource swf builder based on XML)

Example of use :
http://www.deja-vue.net/blog/2006/05/26/as2-sharedfonts-datagrid-example-the-last-stand/

The example try to use shared fonts with SWFMill but you can shared sounds,
movieclips etc...

EKA+ :)

2007/2/19, Coffield, Jim [EMAIL PROTECTED]:


Hi,

I have a flash movie that under various circumstances loads external .swf
flies. Is it possible to access the library of the loaded .swf file.

I have some sound files in the library of the loaded .swf file. The sound
files have the linkage set so that my_sound.attachSound works when the
.swf
file that I am loading is run separately.

But when I load the .swf file into the main movie, the attachSound does
not
work.

Thanks,

Jim Coffield

___
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] Linked library in loaded swf file

2007-02-19 Thread dr.ache

i would like all of you to share your experiences with shared libraries.
do they work fine, is there known bad behaviour? Let me know and
send some lines, please!

dr.ache



eka schrieb:

Hello :)

you must use a shared library.. the best way to use it, it's Swfmill (the
opensource swf builder based on XML)

Example of use :
http://www.deja-vue.net/blog/2006/05/26/as2-sharedfonts-datagrid-example-the-last-stand/ 



The example try to use shared fonts with SWFMill but you can shared 
sounds,

movieclips etc...

EKA+ :)

2007/2/19, Coffield, Jim [EMAIL PROTECTED]:


Hi,

I have a flash movie that under various circumstances loads external 
.swf

flies. Is it possible to access the library of the loaded .swf file.

I have some sound files in the library of the loaded .swf file. The 
sound

files have the linkage set so that my_sound.attachSound works when the
.swf
file that I am loading is run separately.

But when I load the .swf file into the main movie, the attachSound does
not
work.

Thanks,

Jim Coffield

___
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] Linked library in loaded swf file

2007-02-19 Thread Muzak
http://muzakdeezign.com/flashcoders/?q=shared%20libraries

- Original Message - 
From: dr.ache [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, February 19, 2007 5:20 PM
Subject: Re: [Flashcoders] Linked library in loaded swf file


i would like all of you to share your experiences with shared libraries.
 do they work fine, is there known bad behaviour? Let me know and
 send some lines, please!

 dr.ache


___
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] Linked library in loaded swf file

2007-02-19 Thread Hans Wichman

Hi,
i see a pattern here muzak:).

I love your site, its so much more user friendly then
http://www.justfuckinggoogleit.com/ :)

However there is a LOT of info on this shared library stuff. And although
your post sums them up, 750 results is a lot to go through:).

greetz
JC


On 2/19/07, Muzak [EMAIL PROTECTED] wrote:


http://muzakdeezign.com/flashcoders/?q=shared%20libraries

- Original Message -
From: dr.ache [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, February 19, 2007 5:20 PM
Subject: Re: [Flashcoders] Linked library in loaded swf file


i would like all of you to share your experiences with shared libraries.
 do they work fine, is there known bad behaviour? Let me know and
 send some lines, please!

 dr.ache


___
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] Linked library in loaded swf file

2007-02-19 Thread Muzak
if you wanna narrow down the results (some are from 2001, i know), add a year 
to the query
http://muzakdeezign.com/flashcoders/?q=shared%20libraries%202006

Will only return the flashcoders results from 2006 ;-)
200+ results instead of 700+


Maybe 200+ posts regarding shared libraries in the last year is why you see a 
pattern :-)

regards,
Muzak

- Original Message - 
From: Hans Wichman [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, February 19, 2007 7:00 PM
Subject: Re: [Flashcoders] Linked library in loaded swf file


 Hi,
 i see a pattern here muzak:).

 I love your site, its so much more user friendly then
 http://www.justfuckinggoogleit.com/ :)

 However there is a LOT of info on this shared library stuff. And although
 your post sums them up, 750 results is a lot to go through:).

 greetz
 JC


___
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] Linked library in loaded swf file

2007-02-19 Thread Omar Fouad

yes u have to load the sound library swf into an empty movieClip and as
follow:

assume that the empty movieClip is called sfxMc and the swf is called
sfx.swf;

//creates a sound object called sfx and relates it to the movieClip sfxMc
sfx = new Sound(sfxMC);

//loads sfx.swf into sfxMc
sfxMC.loadMovie(sfx.swf);

//now u can set a function to call sounds from the sfx.swf library
function setfx(id, loops) {
sfx.attachSound(id);
sfx.start(0, loops);
}
//now call the function
setfx(sound_Identifier, 1);

cheers :D




On 2/19/07, Muzak [EMAIL PROTECTED] wrote:


if you wanna narrow down the results (some are from 2001, i know), add a
year to the query
http://muzakdeezign.com/flashcoders/?q=shared%20libraries%202006

Will only return the flashcoders results from 2006 ;-)
200+ results instead of 700+


Maybe 200+ posts regarding shared libraries in the last year is why you
see a pattern :-)

regards,
Muzak

- Original Message -
From: Hans Wichman [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, February 19, 2007 7:00 PM
Subject: Re: [Flashcoders] Linked library in loaded swf file


 Hi,
 i see a pattern here muzak:).

 I love your site, its so much more user friendly then
 http://www.justfuckinggoogleit.com/ :)

 However there is a LOT of info on this shared library stuff. And
although
 your post sums them up, 750 results is a lot to go through:).

 greetz
 JC


___
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





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
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