AS3 Flash Console Commandline
This post is short tutorial about using the command line feature in Flash Console Class as mentioned in previous post here. Aside from cool features like mouseOver Roller, inspect utility, measurement tool; the commandLine is one of the Flash Console greatest feature.
To control an instance on Stage with the console. You must first understand what is a Scope.
A Scope is basically, what Object the console is currently point as reference at. By default the Scope is always pointing to the Stage.
- To control a particular instance on Stage. Use a /map command (insert this command in commandline)
- Once the list of tree appear, click on the name of the instance within the console output. Notice the Scope (below the commandLine) now changes to point to the instance you just selected.
- You can now either, store the instance into a variable in console. (use command /store <variablename>). You can re-scope the instance anytime, by typing in $<variablename>.
- Or, access the instance property. You can also set the property with value too. This means runtime scripting on the fly.
- Once, the instance scoped – you can modify the attribute easily, by typing in AS3 command just like you do when you script them.
- You can practice the console command line below.







hi,
its is really a nice post.
keep sharing.
Really all the techniques are very useful & thanks for sharing such a great & very useful tutorial.