Please visit our new Forums at Kaltura.org, our brand new community website. These Forums have been closed and will remain online as an archive only.

Code suggestion for the ObjectHandles

Discussions about development and integration of the Kaltura advanced editor. Get it!

Code suggestion for the ObjectHandles

Postby jbradley on Fri Feb 13, 2009 2:00 pm

Since this is the Advanced Editor section, I'm going to make a code suggestion.

Take a look at the the 'dashed' line implementation on the object handles code you got. Instead of using actual lines, use a transformed Bitmap with a hole (1-2 pixel inset polygon basically) with a repeated fill - the fill inherits it's transformation matrix from the handles matrix.

I extended the senocular TransformTool code to utilize this in Flex for a recent project and it made much cleaner code and always looks crisp and clean looking. :) I know you guys have your own implementation (even though the senocular code is in the release ... not sure if you use it). The only problem with the senocular code was that it needed some extensions to work as a first class citizen in Flex, along with some hit routines to test when you're clicking through transparent areas of things like PNG files.

just a thought.

cheers,

jon
jbradley
 
Posts: 4
Joined: Wed Dec 03, 2008 3:31 pm

Re: Code suggestion for the ObjectHandles

Postby Kalturian on Fri Feb 13, 2009 2:34 pm

Thanks Jon.

I'll pass it to Boaz who wrote this Class.
We did try to use sencular's, but found out that it was much more than we needed and actually needed too much modifications to work in the environment (flex and editor).
Because of the nature of the editor, this is implemented as a plugin (Flex Module that extends the Plugin Class), you can actually extend this class without much understanding of the editor code itself.
Kalturian
Site Admin
 
Posts: 85
Joined: Sun Jul 06, 2008 11:13 am


Return to Advanced Editor (KAE)

Who is online

Users browsing this forum: No registered users and 1 guest

cron