[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] locating buttons and scaling texts in swfc
From: |
Pablo Rodríguez |
Subject: |
Re: [Swftools-common] locating buttons and scaling texts in swfc |
Date: |
Tue, 20 May 2008 20:24:15 +0200 |
User-agent: |
Thunderbird 2.0.0.9 (X11/20080213) |
Many thanks, Matthias for your reply.
Matthias Kramm wrote:
> On Mon, May 19, 2008 at 10:06:32PM +0200, Pablo Rodríguez <address@hidden>
> wrote:
>> butagain._x=(width-butagain._width)/2;
>> butagain._y=(heigth-butagain._height)/2;
>
> Looks good to me- sure that width/height (Stage.width/Stage.height)
> is set correctly, however? The Flash player tends to be a bit sloppy
> with dimensions that are not explicitly specified somewhere.
My fault. There was a typo in
"butagain._y=(height-butagain-_height)/2;", because I wrote heigth
instead of height. Sorry for that.
>> And with texts, is there any way to scale them? In the already mentioned
>> script, how can I scale info and scale_no?
>
> Try setting slide_no._scalex and slide_no._scaley. If that doesn't work,
> wrap a .sprite around slide_no.
scalex and scaley seems to work, but I cannot use them, because I place
and scale both info and slide_no with AS variables.
I tried to use .sprite with slide_no, but slide_number isn't displayed.
This is the code I use:
.sprite slide_number
.put slide_no
.end
.frame 1
.put slide_number
.action:
slide_number._x=width-(width/2+slide_number._width);
slide_number._y=0;
slide_number._scalex=50;
.end
The actual presentation can be found at
http://rapidshare.com/files/116334361/Michaelgeist-TheCopyrightMyths181.swf.html
and the full script is available at
http://ousia.justfree.com/Michaelgeist-TheCopyrightMyths181.txt.
What am I doing wrong here?
Thanks,
Pablo
- [Swftools-common] locating buttons and scaling texts in swfc, Pablo Rodríguez, 2008/05/19
- Re: [Swftools-common] locating buttons and scaling texts in swfc, Matthias Kramm, 2008/05/20
- Re: [Swftools-common] locating buttons and scaling texts in swfc,
Pablo Rodríguez <=
- Re: [Swftools-common] locating buttons and scaling texts in swfc, Matthias Kramm, 2008/05/20
- Re: [Swftools-common] locating buttons and scaling texts in swfc, Pablo Rodríguez, 2008/05/20
- Re: [Swftools-common] locating buttons and scaling texts in swfc, Pablo Rodríguez, 2008/05/20
- Re: [Swftools-common] locating buttons and scaling texts in swfc, Matthias Kramm, 2008/05/21
- Re: [Swftools-common] locating buttons and scaling texts in swfc, Pablo Rodríguez, 2008/05/21