swftools-common
[Top][All Lists]
Advanced

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

[Swftools-common] positioning of objects, swfc, linux


From: peter kostov
Subject: [Swftools-common] positioning of objects, swfc, linux
Date: Mon, 18 Aug 2008 12:19:44 +0300
User-agent: Thunderbird 2.0.0.14 (X11/20080621)

Hi Matthias,

I have a question about positioning an objects. I use swfc from swftools-2008-06-08-1156 and have the following script:

.flash bbox=290x250 version=7 fps=15 name="weekly_editorial.swf" compress background=#ffffff

.jpeg pic "decoracii.jpg"

.box empty width=290 height=250 color=#ffffff fill=#ffffff

       .sprite layer1
               .frame 1
               .put pic x=0 y=0
       .end

       .sprite layer2
               .frame 1
       .end

       .sprite layer3
               .frame 1

       .end

       .sprite link
               .frame 1
               .put empty x=0 y=0 alpha=0%
               .action:
                       empty.onPress = function() {
                       _root.getURL("http://avtogari.info/";, "_blank");
                       };
               .end
       .end

.frame 1
.put layer1

.frame 2

.end

As you can see I am .put-ing a picture on x=0 y=0, but in the resulting file the picture seems to be almost randomly placed. It is not on 0,0. How can I set the exact position when I place objects? The other thing is that it is scaled up, it is not put in its original size, but fills up the containing element (the stage) - why is that?

I am attaching a sample swf file and the original picture.

Peter

--

-------
Boryana & Peter Kostovi,
web design & webdevelopment
home site: http://bgwebdeveloper.com

JPEG image

Attachment: weekly_editorial.swf
Description: Binary data


reply via email to

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