No, the demo is highlighting for finding the word.
Need something as follow in the image ( circled with red )
Main Topics
Browse All TopicsI am trying to highlight syntaxes using actionscript 3.0 . Are there helpful resources available, that can guide me through the process.
Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Well ... did you actually have a look at the code?
The author uses a Finder Class to find areas to hightlight and uses a Highlighter Class to do the actual Hightlighting.
So starting with that example, you would have to model your syntax highliting with these lasses ... one to find out what schould be highlighted and one actually doing it.
well, I just viewed the knowledge base, that have some threads related to creating an editor ( that may show intellisense). It talks something about regex. I think that's more suitable.
@ChristoferDutz - Using finding methods, to create syntax highlighter function , the actionscript would just halt the player. As i would need to refresh it every second ( or even millissecond ). Don't you think so ?
Can anyone help me, how regex can be used in better way for actionscript. My main concern is about refreshing it every moment, that may hang the player. So i need a solution that takes care of this concern.
Hello Vigus. If you are talking talking about having textfields or any other text containers, then actually the right way to do it is to change the colour of the text which needs to be highlighted, this way the text will be automatically "refreshed" by the Flash Player itself and you do not have to worry about every second or every millisecond issue. Just change the colour accordingly and the text is highlighted according to the syntax.
Yes you can use regular expressions to search for the words you actually want to highlight, then you replace the words with a format and change the colour. You might want to use htmlText or generate new text fields with a different colour.
If you actually have a source file, please upload it to a file sharing site and I can help you from there. If you do not actually have a source yet, please tell me the exact details you want. At least you should try to show me how you want the whole thing to look like.
Business Accounts
Answer for Membership
by: ChristoferDutzPosted on 2009-11-06 at 01:35:21ID: 25757781
Hi,
ex/Highlig hterDemo/ H ighlighter Demo.html
there is a demo of some component doing Highliting of text ... mabe it get's you started (The demo has "View Source" enabled):
http://labs.tom-lee.com/Fl
Hope it helps