Share Posted November 15, 2010 Curious as to what’s the best approach to allow a user to "draw" and transform a line using TM: a) use the drawing API to create a line then add Sprite/Canvas, etc to TM use SVG path to create line then add SVG container to TM c) use bitmap to create line then add bitmap to TM d) none of the above I've attempted (a) by drawing to the graphics object of a Sprite/Canvas but would prefer a solution that applies the bounds/handles to the line. Started exploring © and plan to explore ( soon. Feels like I'm over-thinking this so thanks in advance for any insights... Link to comment Share on other sites More sharing options...
Share Posted November 15, 2010 Yeah, I'd probably do a or c Strokes on lines are very expensive for the Flash Player to render and can be rather complex (according to Adobe engineers I've spoken with) so you may want to draw filled boxes instead of stroked lines - visually they could look the same but the boxes will render better. Link to comment Share on other sites More sharing options...
Author Share Posted November 17, 2010 Hey Jack, thanks for the insight. In the end, I opted for ©. It yields better results than (a) and feels more fluid in usage. Just have to tweak the hit area so that the transform rect is easily activated for lines shorter than 3px. Otherwise, it's smooth sailing. Thanks again... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now