3 ms·
ActionScript may be based on ECMAScript, but they look very different: package com.example { import flash.text.TextField; import flash.display.
by imd 17y ago
ActionScript may be based on ECMAScript, but they look very different:
package com.example
{
import flash.text.TextField;
import flash.display.Sprite;
public class Greeter extends Sprite
{
public function Greeter()
{
var txtHello:TextField = new TextField();
txtHello.text = "Hello World";
addChild(txtHello);
}
}
}
Also, Flash is more than ActionScript.
- gb 17y agoThe difference in appearence is because it's based on what was going to be ES4, you can actually write it like Javascript for the most part if you want to.