Minor size problem during Authoring
Bug ID: 0000000060
| Item Type: | BUG | Component: | UMap (AS 3.0) |
| Reproduced: | Always | Severity: | Minor |
| Priority: | N/A | Component Version: | |
| Status: | NEW | Last Update: | Mar 13, 2008 19:50 |
| Summary: | Minor size problem during Authoring | ||
| Description: | I was trying to migrate older GMAP experiment to UMAP. Whenever umap is placed on stage during authoring problem i get different width. I have umap on stage with 512 width and 512 height set manually during authoring. Now: trace(umap.width); // <-- 513.7 It might be minor, but it really cause a headache as in this old function var center:Point = umap.getCenterXY(); center.x += mouseX + umap.width * .5; center.y += mouseY + umap.height * .5; return new Point(center.x, center.y) result differently thanks in advanced |
||
Communique
| Erich Erlangga [erich_erlangga]: Mar 16, 2008 00:31 post#0000000060 |
|
well, a 100-width of a simple shape without outline works just as expected: trace(shape.width) and i get 100.
When tested with simple shape with 1 pixel-tick outline and just found out that flash player also measure some additional width for the out line. Everythings is fine if we don't forget to add setSize method to umap component on stage. :) |
Login to add your comment.
