swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swftools-common] creating swf with mp3 sound


From: Marcin Gryszkalis
Subject: [Swftools-common] creating swf with mp3 sound
Date: Sat, 13 May 2006 10:13:40 +0200
User-agent: Thunderbird 1.5.0.2 (X11/20060426)

Hi
I need to create very simple (I think) SWF with sound in it (based on
given .wav sound). Example expected file looks like this (created with
flash mx and dumped with swfdump):

[HEADER]        File version: 6
[HEADER]        File is zlib compressed. Ratio: 89%
[HEADER]        File size: 6199 (Depacked)
[HEADER]        Frame rate: 12.000000
[HEADER]        Frame count: 18
[HEADER]        Movie width: 240.00
[HEADER]        Movie height: 30.00
[009]         3 SETBACKGROUNDCOLOR (ff/ff/ff)
[012]         6 SOUNDSTREAMHEAD
[00c]         2 DOACTION
                 (    0 bytes) action: Stop
                 (    0 bytes) action: End
[013]       628 SOUNDSTREAMBLOCK
[001]         0 SHOWFRAME 1 (00:00:00,000)
[013]         4 SOUNDSTREAMBLOCK
[001]         0 SHOWFRAME 2 (00:00:00,083)
[013]       316 SOUNDSTREAMBLOCK
[001]         0 SHOWFRAME 3 (00:00:00,167)

(...few similar frames cut off...)

[013]       316 SOUNDSTREAMBLOCK
[001]         0 SHOWFRAME 16 (00:00:01,250)
[013]       316 SOUNDSTREAMBLOCK
[001]         0 SHOWFRAME 17 (00:00:01,333)
[00c]         6 DOACTION
                 (    2 bytes) action: GotoFrame 0
                 (    0 bytes) action: End
[013]       420 SOUNDSTREAMBLOCK
[001]         0 SHOWFRAME 18 (00:00:01,417)
[000]         0 END


First I tried swfc but with no success - I don' know how to make the
soundstream, I did something like this:

.flash bbox=240x30 version=6 fps=12 filename="final.swf"
background=white compress

.sound sound1 "t1.wav"

.action:
    stop();
.end

.frame 1
#    .soundtrack "LocoStart.wav"
    .play sound1 loop=0

.frame 17
    .stop sound1
.action:
    gotoFrame(1);
.end

.end


Another approach would be wav2swf but I don't know how to insert these
actions at the beginning and end of file (I guess changing bbox or
background color would be not a problem).

Please advice :)
regards
-- 
Marcin Gryszkalis, PGP 0x9F183FA3
jabber jid:address@hidden, gg:2532994
http://the.fork.pl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]