Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Interactive ActionScript interpreter?

Tags:

Is there some sort of interactive ActionScript interpreter? Similar to Firebug's JavaScript command line or Python's interactive shell?

like image 563
David Wolever Avatar asked May 21 '09 19:05

David Wolever


People also ask

Is ActionScript still alive?

Flash is as dead as it is possible for an internet-era technology to be, so ActionScript is also dead.

Can you still use ActionScript?

ActionScript is basically a dialect of JavaScript (which is also called ECMAScript). So you can still use it.

Is ActionScript the same as JavaScript?

Both JavaScript and ActionScript are scripting languages, or interpreted languages. The browser (or Flash) interprets the code at runtime. They are not compiled (like C++ or Java). ActionScript is used in Flash applications, while JavaScript can run on almost any web page.

What is ActionScript used for?

ActionScript is used primarily for the development of websites and software targeting the Adobe Flash platform, originally finding use on Web pages in the form of embedded SWF files. ActionScript 3 is also used with Adobe AIR system for the development of desktop and mobile applications.


2 Answers

Try AS3Eval Library - it is AS3 compiler implemented in AS3. It has simple interactive shell.

like image 137
tst Avatar answered Sep 21 '22 07:09

tst


There's also Frontal:

http://code.google.com/p/frontal/

It has an ActionScript interpreter built into it. It's based on the ECMA 2.62 (JavaScript) standard so it's not full AS3 and doesn't support things like packages and classes but it's still extremely handy.

As I mentioned, the interpreter is part of a larger library implementing the Frontal language but if you were so inclined you could pretty easily just rip out the interpreter.

Or you could just use it in Frontal. And if you did then you do get a console that allows you to run ActionScript in a primitive shell. For example, go to the Frontal website. (I can't post the link because my reputation is low but it's frontalcode + com.) Right-click and choose "View Frontal Source..." This will open the Frontal console. At the bottom of the console, click "command line." This is your "shell."

Try something like this say:

5 + 4 * 10

or

movie.alpha = 0.5

like image 24
mab Avatar answered Sep 21 '22 07:09

mab