Skip to content

Instantly share code, notes, and snippets.

@mechamogera
Created September 5, 2012 23:51
Show Gist options
  • Save mechamogera/3648000 to your computer and use it in GitHub Desktop.
Save mechamogera/3648000 to your computer and use it in GitHub Desktop.
action script3のhello world
package {
import flash.display.*;
import flash.text.*;
public class HelloWorld extends Sprite {
public function HelloWorld () {
var textField:TextField = new TextField();
textField.text = "Hello World";
addChild(textField);
}
}
}
<html>
<head></head>
<body>
<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0" WIDTH=600 HEIGHT=600>
<EMBED SRC="HelloWorld.swf" WIDTH=600 HEIGHT=600 bgcolor=#FFFFFF LOOP=false QUALITY=high PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" TYPE="application/x-shockwave-flash" />
</OBJECT>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment