[Flashcoders] Dynamically Loading Sound Files from external SWFs

2007-08-30 Thread Shawn Steward
I have a project that has one main container SWF, that loads in multiple
child SWFs to play.  If I try to have the child SWF's play a sound file
using attachSound, it will not play the sound file unless I have it in
the container SWF.  I have it in the child SWF set to export for AS in
the 1st frame, but it will not play.  Is there another way to do this?
I'm trying to keep the container SWF very small.  Thanks.

Shawn
___
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] Dynamically Loading Sound Files from external SWFs

2007-08-30 Thread eka
Hello :)

in my experience i prefere create a fla with all sounds ... i compile the
swf of all sounds (the sound library) and i load this swf in the main swf of
my application... after when i want use a sound i call my sound in the
library of sounds.

To manage all this sounds i use a model in my opensource framework and an
easy MVC implementation :

1 - install my opensource project : http://code.google.com/p/vegas/

Tutorial to install it :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

2 - Test the example  in the svn directory :
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/test/andromeda/media

3 - you can too test my opensource template based on VEGAS (AST'r) who use a
full implementation of my SoundLibrary model in a full MVC application :
http://code.google.com/p/astr

In AST'r you can find for the moment two AS2 templates :

3-1 The more easy template is the astro package :
http://astr.googlecode.com/svn/trunk/AS2/trunk/src/astro/
3-2 The more complete template is the eGallery example :
http://astr.googlecode.com/svn/trunk/AS2/trunk/examples/egallery/trunk/

EKA+ :)


2007/8/29, Shawn Steward [EMAIL PROTECTED]:

 I have a project that has one main container SWF, that loads in multiple
 child SWFs to play.  If I try to have the child SWF's play a sound file
 using attachSound, it will not play the sound file unless I have it in
 the container SWF.  I have it in the child SWF set to export for AS in
 the 1st frame, but it will not play.  Is there another way to do this?
 I'm trying to keep the container SWF very small.  Thanks.

 Shawn
 ___
 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