swftools-common
[Top][All Lists]
Advanced

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

[Swftools-common] javascript swfc problems


From: Juan Ramón Rico
Subject: [Swftools-common] javascript swfc problems
Date: Thu, 14 Apr 2005 16:34:34 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

I try to do an automatic presentation, ej.:
--------------------------------------------
.flash filename="img0.swf" fps=1
       .sound snd "snd0.wav"
       .jpeg slide "../img0.jpg"
       .frame 1
               .play snd nomultiple
               .put slide
   .frame 12
       .stop
.end
----------------------------------------------
'img0.swf' is a slide with audio. If I mix javascript+.swf, ej:

var flashMovie=window.documento.fashMovie; (using embed)

flashMovie.Play(), flashMovie.Stop() and flashMovie.GotoFrame(4) don't work properly. I can't stop the presentation at frame 5 or being at 5 or 6, always begin from frame 1.
Questions?
1.- There is any way to syncronize the sound with the frames? to do flashMovie.GotoFrame(5) and flashMovie.Playe(5)
2.- How could I run a javascript sentence into .sc? Ej.:
      .frame 10
           javascript:alert('The end');
           javascript:window.document.n++;

Best regards,






reply via email to

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