Jump to content
Search Community

Transforming Lines

hero test
Moderator Tag

Recommended Posts

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

B) 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 (B) soon. Feels like I'm over-thinking this so thanks in advance for any insights...

Link to comment
Share on other sites

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

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... :D

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...