chilin_dude
Nov 26 2003, 07:32 PM
Ok i tried to get into actionscripting; read all the docs and one hell of a lot of posts but still don't totally get. So i was thinking 'what if there was a prog that had most of the basic functions in it' by basic i mean copy, MKdir and all that sorts of stuff.
I'm sure if this was made it would get a lot more people into the action scripting....
Comments?
yourwishismine
Nov 26 2003, 08:55 PM
| QUOTE (chilin_dude @ Nov 26 2003, 03:32 PM) |
Ok i tried to get into actionscripting; read all the docs and one hell of a lot of posts but still don't totally get. So i was thinking 'what if there was a prog that had most of the basic functions in it' by basic i mean copy, MKdir and all that sorts of stuff. I'm sure if this was made it would get a lot more people into the action scripting.... Comments? |
Chillin Dude...
Exactly the kind of project that I'm working on...
how ever it's not an easy one...
and my guess it that geniusalz will beat me to the
punch... LOL...
but hey that is fine with me... cause he's a AWESOME
coder...
geniusalz
Nov 27 2003, 12:21 AM
I have another idea, which will probably make scripting tons easier.
Incorporate FOR loops, IF THEN ELSEIF ELSE statements, and WHILE loops. Then have the program convert those to GOTO statements. So it makes scripting tons easier. Cool, eh?
geniusalz
Nov 27 2003, 02:33 AM
For example
| CODE |
IF x == y THEN
IF y == z THEN LAUNCHDVD ELSE REBOOT ENDIF
ELSEIF X > Y OPENTRAY ELSE CLOSETRAY ENDIF |
Is converted to:
| CODE |
IF x == y GOTO lbl1 IF X > Y GOTO lbl2 CLOSETRAY GOTO lbl3
:lbl1 IF y == z GOTO lbl4 REBOOT GOTO lbl5
:lbl4 LAUNCHDVD GOTO lbl5
lbl5: GOTO lbl3
lbl2: OPENTRAY GOTO lbl3
lbl3: QUIT |
geniusalz
Nov 27 2003, 03:22 AM
Tried it, but I have a mind lapse right now

.
I was trying to do this using recursion, but it just doesn't work right.
Will try this later, starting from scratch.
geniusalz
Nov 27 2003, 06:23 AM
Check out this proof of concept
Not too much functionality right now, but hopefully I'll be working on it
Download MXM Scripter 0.1aForum seems dead today. 4 posts and not a single reply.
koldfuzion
Nov 27 2003, 02:51 PM
kinda goes the way of a WYSIWYG editor. learn the editor and how to us IT instead of learning the code.
Why not just make a editor that ASSISTs you in writing the code.... a WYSIWMXMG editor.
what do I mean, I mean a simple text editor with buttons to provide code blocks like a MSGBOX Button that would add the following code at the cursor location..
| CODE |
BeginDraw UseCurrent MessageBox "" EndDraw input If %_GP_X% == "1" GOTO If %_GP_Y% == "1" GOTO If %_GP_A% == "1" GOTO If %_GP_B% == "1" GOTO If %_GP_BLACK% == "1" GOTO
|
or a pulldown list that would allow quick additions of SETFUNC statements at the cursor position.
Of course, to have the functions, labels and stuff color coded would make it hella easy to understand and read.
The WYSIWMXMG, would come from the built in "position" editor (a seperate part of the program) that the person could use to position text, or box at the desired location and be able to SEE it is they way they want it without having to test in MXM.
geniusalz
Nov 27 2003, 05:54 PM
I see what you mean.
But I hate goto's and the lack of ifs, so that's what I worked on first.
I'll try to implement both things (WYSIWYG and WYSIWMXMG, lol), and you can use whatever feature you want.
Obviously, you can still use goto's in the program. It won't break existing scripts.
The next thing i wanna work on is FOR and WHILE loops, just to make it (MUCH) easier for basic'ers to script.
As I showed in the example, it helps readability a lot, and makes it easier to write the code. Especially nested if's.
yourwishismine
Nov 27 2003, 11:35 PM
Hey, geniusalz, nice start. I liked Kold's suggestions too, what he suggested is along the lines of what I was thinking of... can't wait to see what you can turn this into...
chilin_dude
Jan 21 2004, 02:06 PM
Any updates? Would be nice!
geniusalz
Jan 21 2004, 05:25 PM
Sorry, guys. I'm doing way too many things at once
Maybe someone should cuztomize some of those all-purpose text editors (xml, c++, basic, etc) to work properly with actionscripts (commands and variables and such)
yourwishismine
Jan 21 2004, 05:45 PM
I think this would be better suited for when a v1.0 MXM comes out... as BJ seems to add 4 or 5 new actionscripts to every public release (and that is a good thing in this case) and also fixes 'bugs' in the current ones.. it would be difficult for someone to keep up with the new script commands and make sure that the user was formatting them correctly and stuff.. I think a better idea for now would just be to keep the pinned ActionScript Command reference up to date...
geniusalz
Jan 21 2004, 06:09 PM
I hear ya.
To me it makes more sense to update it every public release.
(Just me procrastinating again

)
flattspott
Jan 21 2004, 06:29 PM
Dude I was just thinking of doing something similar. More like MS Visual Studio though, but not nearly as big and complicated.
On www.planetsourcecode.com I found some code to dynamically change the text color as you typed based on certin key words and I also found anouther one that gives you a little popup box like Vistual Studio.
I was gonna see what can be done.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.