Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | RE: FLASH: width & height |
From: | Paul Willoughby |
Date: | Tue, 3 Oct 2000 12:26:19 +0100 |
Hi Kristoff
I has a look at you .fla and one of the problems was that in the 'badzelf'
clip the graphic was not aligned exactly to the middle of the page. This is
a problem as Flash uses a bounding box for the object based on the center of
the page. I broke it apart, regrouped it and centered to the middle of the
page and the values returned were 109 x 45. In my tests i've found Flash is
often out by a pixel on _width and _height properties, I think you just have
to live with this!
The problem with the setting of the size by typing in the text field is
because you are actually setting the Xscale based on the _width property and
the Yscale based on the _height property. This is all back to front, but you
can't dynamically set the _height and _width properties of a clip anyway.
Work with the scale properties from the beginning and you should be OK.
Your movie also raises another question about setting the rotation property.
What I've found is that if you continuously increment the rotation property
of a clip, it gets smaller! This is very weird, so if anyone knows what
causes it I'd love to know. The only workaround is to set the _xscale and
_yscale properties to 100 every time you change the rotation.
hth
Paul
>>kristoff wrote on 29 September 2000 15:15
I'm having some getProperty trouble, i'm afraid.
I have a other movieclip.
According to the inspector it is 108px wide and 45px high.
I set two variables to get the property of that movieclip. (objectW and
objectH)
Two textboxes matching those variables are placed there as well.
It also includes a confirm button, as I should be able to change the size of
that mc through those textboxes.
At first sight I'd guess it works, if it weren't for the fact that the width
and height of that mc, showing in the T-boxes is wrong..
It says 112 and 49 by default.
Even more is that when I confirm that size without altering the values, the
mc shrinks to a even smaller size (while this should be larger).
Maybe I'm simply on a very wrong track here, but I at the moment, I wouldn't
know...
To see what I'm talking about : http://www.kleurbeeld.be/temp/rotate.html
Hover the object to see the boxes - press C to confirm.
A fla with the same name is on that spot as well, in case you're interested.
thank you for any help, kristoff
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
Re: FLASH: width & height, kristoff
FLASH: Resizing!, Tim Ryan
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]