swftools-common
[Top][All Lists]
Advanced

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

Re: [Swftools-common] Placing an object


From: Matthias Kramm
Subject: Re: [Swftools-common] Placing an object
Date: Sun, 11 Dec 2005 11:23:36 +0100
User-agent: Mutt/1.5.6i

On Fri, Dec 09, 2005 at 01:55:49PM -0200, michelts wrote:
> Is there a way to place some object relative to another? Suppose I
> have a box and I want to put a button, can I put it relative to that
> box or I must calculate the position?

swfc is not able to implicitly calculate coordinates (that's a TODO), 
but you can always use sprites to place objects relatively to each other:

    .sprite myboxspr
        .box mybox ...
        .put mybox
    
        .button mybutton ..
        .put button x=30 y=30 # relative to mybox/myboxspr
    .end
    
    .put myboxspr x=100 y=100

Greetings

Matthias







reply via email to

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