ActionScript 3.0 coloring

Use this forum to ask questions after your subscription maintenance expires or before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
This topic is 16 years and 2 days old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
oxk4r
Posts: 7
Last visit: Mon Mar 31, 2008 6:09 pm

ActionScript 3.0 coloring

Post by oxk4r »

Hi. When I create a actionscript file or a class PrimalScript do not
colorizes a lot of words of actionscript 3.0 such as package,
internal.... etc.
Is there some some way to fix this?
Thanks in advance.
Oscar.
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

ActionScript 3.0 coloring

Post by Alexander Riedel »

The current version of PrimalScript 2007 recognizes all AS 3.0 keywords as far as I know. What exact version, edition and build are you using?

Alex
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
oxk4r
Posts: 7
Last visit: Mon Mar 31, 2008 6:09 pm

ActionScript 3.0 coloring

Post by oxk4r »

Just updated to version 4.5.565 Enterprise, and words like package and internal are now colorized, but for example, in this block: import flash.display.MovieClip; import fl.controls.Button; import flash.events.MouseEvent; import flash.text.TextField; import flash.text.TextFieldType; import StringUtils.*; import flash.utils.*;the program just colorizes the "import" keyword.Maybe I should configure some paths in Enviroment/Languages/ActionScript...
oxk4r2008-03-26 02:12:26
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

ActionScript 3.0 coloring

Post by Alexander Riedel »

There are no other ActionScript keywords in the block shown other than
"import". Can you please describe what your expectation is?

Alex
Alexander Riedel2008-03-26 03:04:32
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
oxk4r
Posts: 7
Last visit: Mon Mar 31, 2008 6:09 pm

ActionScript 3.0 coloring

Post by oxk4r »

ALL the words in that block are keywords. In fact the Flash CS3 IDE colorizes all of them. Check it out.
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

ActionScript 3.0 coloring

Post by Alexander Riedel »

Not according to the Adobe documentation. Type names and identifiers are generally not colored in PrimalScript. Over coloring usually negates the usefulness of syntax coloring.


If you wish to add coloring for other words, you can place them in a file called Actionscript.ext in the PrimalScript install folder.
Just add one word on each line, its a simple text file.

Alex
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
oxk4r
Posts: 7
Last visit: Mon Mar 31, 2008 6:09 pm

ActionScript 3.0 coloring

Post by oxk4r »

"If you wish to add coloring for other words, you can place them in a file called Actionscript.ext in the PrimalScript install folder.Just add one word on each line, its a simple text file."
I tried that but didn't work. Here is mi file:uploads/26695/Actionscript.zip
User avatar
oxk4r
Posts: 7
Last visit: Mon Mar 31, 2008 6:09 pm

ActionScript 3.0 coloring

Post by oxk4r »

Don't worry Alex. It's solved. The problem where blank spaces after some keywords. Thanks a lot for your help.
This topic is 16 years and 2 days old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.