|
-
</hate>
Adjusting MovieClip height with ActionScript- What am I missing here?
I have a vertical line in a Movie Clip. On my stage the height is 55, but when I compile and trace its _height, it returns 57.
I found that the line's thickness has something to do with this. When the thickness is 2, the height of the line on the stage increases by 2 when I compile the movie, and when the thickness is 5 the height increases by 5, etc. It's as though the line's height is determined using: (Line Height When Compiled) = (Line height on the stage)+(thickness of line).
Am I missing something here? Please let me know what I'm doing wrong. This is bizarre. If I need to explain better let me know. Thanks!
- dtøne-
Flash CS4 | AS2
Life is a journey, not a destination.
-
-
</hate>
Not much code involved here, just using
Code:
trace(myMC._height);
to get the height of the object. On the stage the height is 55 (in the object properties), but when compiled it's 57 (from the trace).
- dtøne-
Flash CS4 | AS2
Life is a journey, not a destination.
-
This is very odd, but will this have an effect on your project?
-
</hate>
Yes, it's making my project much more difficult. I have 2 lines, each its own MC. Imagine one is vertical and the other is horizontal. I am trying to make the horizontal line line up with the bottom of the vertical line using
Code:
horizLine._x = vertLine._x;
horizLine._y = vertLine._y + vertLine._height;
but when I compile there is a gap between the bottom of the vertical line and the horizontal line. The longer I make the vertical line (using vertLine._height = some number) the more pronounced this gap becomes. The horizontal line should be touching the bottom of the vertical line at all times.
I put the FLA on my server for download here.
- dtøne-
Flash CS4 | AS2
Life is a journey, not a destination.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|