Rich Rodecker’s blog on flash, flex, actionscript, javascript, and php, with a dash of randomness
Online Business card designer launched.
[[ Whoops....]]
*Update:
I just wanted to throw a list of some of the issues we encountered, maybe having it out there will help someone else.
- Flash doesn’t append session data to file uploads.
- Flash stroke draws from the center of the line. This means that if you have a square with a 10 point stroke, the stroke will be 5 pixels on the outside of the square and 5 pixels on the inside. Since we needed precise coordinates and measurements, this became a pretty glaring issue, since (i think) java’s drawing tools didn’t work that way.
- TextFormat.getTextExtent() is pretty wacky. Even though we had embedded the fonts, it would return different values if you had the font installed or not, even if you were using the same machine with which you embedded the font in the first place. I read somewhere that in fact flash will get the values from the font file first if it is installed.
- Dynamically loading fonts in flash just sucks. I went with the process discussed in the comments at http://oddhammer.com/index.php/site/comments/shared_fonts_for_flash/. Look for comment #3, by Matt.
- Getting the _width and _height of a rotated movieclip returns the width of the bounding box area of the movieclip, not the actual width and height of the movieclip.
There’s a bunch more that will get added to the list as I remember them.
| Print article | This entry was posted by rich on May 22, 2007 at 2:45 pm, and is filed under flash. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 3 years ago
Also does not support Unicode chars.
about 3 years ago
How long did that one take, one day? Two?
Cheers! Nice work!
about 3 years ago
“Getting the _width and _height of a rotated movieclip returns the width of the bounding box area of the movieclip, not the actual width and height of the movieclip.”
To my understanding getting the _width and _height of a MovieClip always returns the clips actual dimensions regardless of rotation. If you want to find the width or height the MovieClip is taking up globally, you have to use either getRect() or getBounds().
about 3 years ago
Dustin – not true. Do a simple test…put a rectangle mc on stage that is 150 wide x 40 high, and name it ‘test_mc’. Then if you do this bit of code:
test_mc._rotation = 75;trace(test_mc._width)
it will output 77.45.
about 3 years ago
Hi,
Where can I see your business card designer
Many thanks
Tony