swftools-common
[Top][All Lists]
Advanced

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

Re: [Swftools-common] Questions from a beginner


From: Matthias Kramm
Subject: Re: [Swftools-common] Questions from a beginner
Date: Sun, 14 Aug 2005 17:09:23 +0200
User-agent: Mutt/1.5.6i

On Fri, Aug 12, 2005 at 09:05:24PM -0600, Phil Rasch wrote:
> Inside each box I want to embed a sequence of "slides" (jpeg files). I have a 
> total of 30 slides, so to see the whole set would take about 30 seconds to 
> show, and each slide would show for about 3 seconds.

I'd first convert the jpeg files into an swf animation by using
jpeg2swf.
Then, use swfc and actionscript for the animation and the "slide
switching", respectively.
The following code assumes your images are 320x200:

.flash name="animation.swf" version=6 bbox=320x200 fps=25

    .swf images filename="jpegs.swf"

    .put image1=images y=-200
    .put image2=images y=0
    .put image3=images y=200

    # make the three sprites display different images
    .action:
        image1.Stop();
        image2.NextFrame();
        image2.Stop();
        image3.NextFrame();
        image3.NextFrame();
        image3.Stop();
    .end

    .frame 2
    .change image1 #set waypoint
    .change image2
    .change image3
    
    .frame 100
    .change image1 y=-400 #change from y of last waypoint to new y
    .change image2 y=-200
    .change image3 y=0
    
    .action:
        image1.NextFrame();
        image2.NextFrame();
        image3.NextFrame();
        GotoFrame(2);
        Play();
    .end
.end


You may want to play around with the "fps" setting, the exact y coordinates
and the frame count for one "iteration" (currently 100).

Greetings

Matthias








reply via email to

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