Pablo, You're not kidding!! Not only is your script huge, but the resulting SWF is to boot! Are you really sure that,
- using all those 'times[xx]=yyyyy' statements is the right way to go? - embedding such a massive .wav file is sensible? Why not convert to an MP3, then loadSound that in instead? This seems to work in all versions of the player that I've tried thus far, and the added benefit for you, is that folks won't be in the land of nod before your slide presentation even starts! ;o) Using '.stop' on it's own kills everything, stone dead. '.stop audio' simply stops that particular sound object. ( check the Flash ActonScript Dictionary or similar refs ). I'm not quite sure what you mean by loop .. that the sound repeats itself before the previous one is finished, maybe? Why not separate out the sound play/stop sections from the rest to check your coding one more time? I haven't even attempted to try your script ( for obvious reasons ), but the standard start/stop commands seem to work aok for me, when both attaching, and loading sounds. Tested them quite thoroughly when writing a mini-audio player script. HTH a little. Regards, Chris. > Hi Matthias, > > I have generated a presentation using a script with swfc. Both work fine > with flash<7, but audio embedding is problematic with flash versions above > 6 (and I would like to upgrade the script to Flash 7). > > The full working script is http://ousia.justfree.com/frees-as7.txt > (presentation available at http://ousia.justfree.com/frees-as6.swf). The > script is huge, but the problematic lines are 25-26 (and 2 for setting the > Flash version): > > .sound audio "/home/ousia/output.wav" > .stop audio > > As you replied in a previous message > (http://lists.gnu.org/archive/html/swftools-common/2008-11/msg00154.html), > sounds need to be stopped after embedding in Flash 7. > > Replacing ".stop audio" with simply ".stop" on line 26 of the script makes > the slide advancer (lines 620-645) unusable both with Flash version set to 6 > or 7 (http://ousia.justfree.com/frees-as7-stop.swf). > > Using ".stop audio" works fine with Flash 6 (as in the working presentation > above), but it enters in a loop when using Flash 7 > (http://ousia.justfree.com/frees-as7-stop_audio.swf). > > I guess that ".stop audio" is the right option, but I don't know why > invoking sound (line 556) enters into a loop. > > Have I hit a bug or am I missing something? > > Thanks for your help, > > > Pablo > > >
