|
I dont think it would be that difficult to
build.
Just a really smart idea.
I must say this is why i love flash/flex
dev.
1 problem, Many solutions.
It's where programming and art come
together.
Regards,
Bjorn
Schultheiss
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Ted Patrick Sent: Wednesday, 27 September 2006 9:56 AM To: [email protected] Subject: RE: [flexcomponents] Re: WYSIWYG Rich Text Editor for Flex 2
Bjorn, You are reading me loud
and clear! Trying to extract a
small AS3 sample from Beau as a simple case/howto. Ted J From:
'A man's got to know
his limitations' :) What Ted brought up
was a cool idea i thought. From what i get, you
can create a box based off TextLineMetrics and apply a filter or blend mode to
the box.. Thus creating your
coloring effect without having to update any text. Now maybe thats not
what teds point was but still interesting. Regards, Bjorn
Schultheiss From:
Could you
give more details? I google for Beau Amber, but didn´t found his
highlighter. On 9/26/06, Ted Patrick <[EMAIL PROTECTED] A great way to do this is via
Filters. Beau Amber wrote a highlighter for AS3 using the Flex Components.
Within a TextArea control, he used Regex to find matches and used filters to
color highlight certain words. When the text was scrolled or changed, the
filtering was removed for performance, then reapplied when the change stopped.
As the highlighting only effects the viewable portion of the textArea, it was
quite fast. It was rare to actually see it flicker at
all. I would avoid the HTMLText route
and use imaging to support your needs. I would not have recommended this
initially but seeing it actually work changed my mind. Ted
Patrick Flex
Evangelist Adobe Systems
Incorporated From: flexcomponents@ > What I do is every stroke, parse the text property
and generate an html wich I set to htmlText. That means that on every stroke the player has to
reparse the entire htmlText, recreate all the style runs, and redo all the line
wrapping based on new measurement. No matter how fast the Player got, that
design wouldn't scale to arbitrarily large documents. - Gordon From: flexcomponents@ Yes, i´m trying to do a code editor. Since it´s just for
learn purpose, 3000 chars is ok, On 9/26/06, Alex
Harui <[EMAIL PROTECTED] Can you shed more light
on what you are trying to do? Is it something like a code editor where as
you type it colors certain text in certain ways? Have you tried using
replaceSelectedText From: flexcomponents@
I really set text property each textChange event. I
couldn´t think a better solution. On 9/26/06, Alex
Harui <[EMAIL PROTECTED] I would revisit your
highlighting algorithm. If you set the .text property too often it will
definitely slow things down. From: flexcomponents@ One limitation of Flash player is speed. I´m doing a
sintaxe highlighter but On 9/26/06, Michael
Schmalle <teoti.graphix@ > but I don't know if this will ever be out in the
public On 9/26/06, Peter
Hall <[EMAIL PROTECTED] Yes, but I don't know if this will ever be out in the
public. However, we know it is possible to make a very advanced text editor,
rivalling desktop editors. Flash is ready, but it is just a hell of a lot of
work. On 9/23/06, Michael
Schmalle <
teoti.graphix@ > It's not online yet afaik. But just in case you
don't believe that it exists, i've seen it too, and i was *very*
impressed. On 9/23/06, Claus
Wahlers <
[EMAIL PROTECTED]
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- [flexcomponents] Re: WYSIWYG Rich Text Editor for Flex... Bjorn Schultheiss
- Re: [flexcomponents] Re: WYSIWYG Rich Text Editor... Flex Brasil
- [flexcomponents] Re: WYSIWYG Rich Text Editor... Bjorn Schultheiss
- Re: [flexcomponents] Re: WYSIWYG Rich Tex... Flex Brasil
- Re: [flexcomponents] Re: WYSIWYG Rich... Peter Hall
- Re: [flexcomponents] Re: WYSIWYG Rich Text Ed... Peter Hall
- Re: [flexcomponents] Re: WYSIWYG Rich Text Editor... Anatole Tartakovsky
- Re: [flexcomponents] Re: WYSIWYG Rich Text Ed... Flex Brasil
