View Full Version : Commenting ActionScript
I can't seem to find a way to easily comment and uncomment large bits of selected actionscript text.
Why am I missing something so obvious?
How do I do that?
CyanBlue
07-09-2002, 07:47 PM
// To comment out one liner
or
/*
...
...
...
To comment out multiple liner
...
...
...
*/
sumul
07-09-2002, 11:35 PM
Just a clarification on CyanBlue's post:
You don't need the dots or anything to comment out multiple lines. Just put a "/*" before and a "*/" after everything you want to comment out.
There's no way to select a bunch of text and hit an icon or do a keyboard command to quickly comment/uncomment?
sumul
07-10-2002, 02:24 AM
Hmm.. I don't know of anything like that. But it's not very hard to just stick a blank line before and after the code you want to comment, and then put a /* on the first line and a */ on the last line.
CyanBlue
07-10-2002, 03:58 AM
Director has that button... hehe... You can do copy and paste between two programs if you want to use that function...
Kidding... as sumul said it is not that hard thing to attach the comment sign at the beginning and at the end of the places... :)
Wow, what a shame.
Yes I am a longtime Director person and quickly commenting/uncommenting selected text is a crucial time saver.
I have to admit that I'm shocked that there isn't something in a version 6 of a program like this.
Cremulator
07-10-2002, 02:04 PM
actionscripting was only heavily introduced to Flash in version 5 remember ;)
....but I agree, it would be easy to have a button that commented large blocks of script for you, especially if Director already has that feature.
vb has the same thing (multi line commenting w/1 button).
wish-list (http://www.macromedia.com/support/email/wishform/?6213=9) it.
the more requests they get the more likely it will be in the next version.
CyanBlue
07-10-2002, 04:10 PM
Hehe... I've used Director since its version 4... and I didn't see much use of that multi commenting button...
Selecting multiple lins with mouse and clicking a button == typing /* in the beginning and */ at the end of the code block...
I guess it all happened because Director's script window is so poorly managed... I still am not used to the script window in Director... I just can't get used to it... :(
Yeah... that sure is a good thing to add... Wishlist it!!! :)
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.