[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] [SWFC] Resizing sprites
From: |
Chris |
Subject: |
Re: [Swftools-common] [SWFC] Resizing sprites |
Date: |
Thu, 27 Jan 2011 06:22:54 +0100 |
.. and while am at it.. ;o)
On Wed, 26 Jan 2011 01:07:40 -0500
Tail Kinker <address@hidden> wrote:
>> On 01/10/2011 06:51 PM, Chris wrote:
>> Suggestion:
>> Try posting to this list the *complete* ( as in compilable )
>> swfc script that you say doesn't work. I'll post back revised
>> code showing you that it does. Sound fair? ;o)
>>
> Upon simplification, the bug resolved itself. When I put the ?
> simplified code back in, it still worked. The code differs in
> only one respect:
> Any and all resizes take place only after any and all
> relocations.
If that were strictly true, then this shouldn't work either:
# ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
.flash filename="text.swf" bbox=300x200 version=8 fps=60 compress
.png png "image.png"
.action:
interval = setInterval(moveit, 1000);
function moveit() {
xpoint = Math.random() * 200;
png._xscale=Math.random() * 50;
png._yscale=Math.random() * 40;
png._x=xpoint;
}
.end
.put png x=0 y=20 scale=15%
.end
# ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
Regards,
Chris.