In Flash, what happens when fonts are nested inside MCs which are not integer-positioned?
July 6, 2004 11:23 AM Subscribe
I am developing a Flash-based website using Miniml's free fonts. I understand that the fonts should be placed at integer positions, but what happens when they are nested inside MCs which themselves are not integer-postitioned? Do I need to place all my (many) levels of MCs sans decimal points?
When I code Flash stuff that's position-based, I try and make only one object a hard-coded position, and the rest of the objects are relative to that one object -- that way it can scale easier.
Let's say I have a line of text composed of characters:
THE TEXT
The first movieclip ('T') is located at x,y. The next ones are firstmovieclip._x + firstmovieclip._width.
I think this is what you're asking; if not just let me know and I'll try another answer.
posted by Civil_Disobedient at 7:27 AM on July 7, 2004
Let's say I have a line of text composed of characters:
THE TEXT
The first movieclip ('T') is located at x,y. The next ones are firstmovieclip._x + firstmovieclip._width.
I think this is what you're asking; if not just let me know and I'll try another answer.
posted by Civil_Disobedient at 7:27 AM on July 7, 2004
It doesn't sound like he's coding anything, more like he has a bunch of hand placed mc's on the stage.
One solution would be to loop through all of the movieclips and align them to the nearest integer (something like movieclip._x = Math.round ( movieclip._x ); ), but you'd have to do that at run time.
posted by toby\flat2 at 12:46 PM on July 7, 2004
One solution would be to loop through all of the movieclips and align them to the nearest integer (something like movieclip._x = Math.round ( movieclip._x ); ), but you'd have to do that at run time.
posted by toby\flat2 at 12:46 PM on July 7, 2004
« Older Compaq Presario with Phoenix BIOS Boot Error:... | How can I keep track of mergers & acquisitions in... Newer »
This thread is closed to new comments.
posted by toby\flat2 at 5:04 PM on July 6, 2004