trunk contents moved to root

This commit is contained in:
Jindra Petřík
2014-05-10 20:50:57 +02:00
parent 1b851e66a8
commit 199a4d0c2b
2296 changed files with 0 additions and 0 deletions

17
testdata/as2/Box.as vendored Normal file
View File

@@ -0,0 +1,17 @@
class Box extends MovieClip{
// declare class members
var box_mc:MovieClip;
// Constructor that takes mc as argument
public function Box(passed_mc:MovieClip){
// assign passed mc to our class member
box_mc = passed_mc;
}
// Methods
public function moveUp(){
box_mc._y -= 1;
}
public function moveDown(){
box_mc._y += 20;
}
}

12
testdata/as2/Cox.as vendored Normal file
View File

@@ -0,0 +1,12 @@
class Cox extends Box{
public function Cox(passed_mc:MovieClip){
super(passed_mc);
}
// Methods
public function testPublic(){
trace("pub");
}
private function testPrivate(){
trace("priv");
}
}

36
testdata/as2/Enemy.as vendored Normal file
View File

@@ -0,0 +1,36 @@
class Enemy implements Moving {
var x:Number;
var tst:Number = 5;
var tst2:Number;
static var stat_tst:Number=6;
static function sfunc(){
trace("hu");
}
// constructor
function Enemy(px:Number) {
var k=57;
k=k*27;
var c=k;
x = px+c;
}
function moveLeft(lx:Number) {
x -= lx;
tst=7;
//hovno="bagr";
trace("moveLeft = " + x);
}
function moveRight(rx:Number) {
x += rx;
trace("moveRight = " + x);
}
function moveUp(uy:Number) {
// leave it empty , dont need it
// but must implement it.
}
function moveDown(dy:Number) {
}
}

6
testdata/as2/Moving.as vendored Normal file
View File

@@ -0,0 +1,6 @@
interface Moving extends Moving2{
function moveUp(py:Number);
function moveDown(py:Number);
function moveLeft(px:Number);
function moveRight(px:Number);
}

6
testdata/as2/Moving2.as vendored Normal file
View File

@@ -0,0 +1,6 @@
interface Moving2
{
function moveUp(py:Number);
function moveDown(py:Number);
function moveLeft(px:Number);
}

28
testdata/as2/Ship.as vendored Normal file
View File

@@ -0,0 +1,28 @@
class Ship implements Moving{
var y;
var a;
var b;
var c;
private var d=5;
// constructor
function Ship(py:Number){
y = py;
}
function moveUp(uy:Number){
y *= uy;
trace("moveUp = "+y);
}
function moveDown(dy:Number){
y *= dy;
trace("moveDown = "+y);
}
function moveLeft(lx:Number){
// empty
b = 6;
}
function moveRight(rx:Number){
// empty
trace(a);
trace(d);
}
}

BIN
testdata/as2/as2.fla vendored Normal file

Binary file not shown.

49
testdata/as2/as2.html vendored Normal file
View File

@@ -0,0 +1,49 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>as2</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css" media="screen">
html, body { height:100%; background-color: #ffffff;}
body { margin:0; padding:0; overflow:hidden; }
#flashContent { width:100%; height:100%; }
</style>
</head>
<body>
<div id="flashContent">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="400" id="as2" align="middle">
<param name="movie" value="as2.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="as2.swf" width="550" height="400">
<param name="movie" value="as2.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflash">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
</html>

BIN
testdata/as2/as2.swf vendored Normal file

Binary file not shown.

15
testdata/as2/com/jpexs/MyTest.as vendored Normal file
View File

@@ -0,0 +1,15 @@
class com.jpexs.MyTest {
private var i:Number=5;
static var k:Number=27;
function test():Number
{
trace("hello");
return 5;
}
static function testS():Number
{
trace("hi");
return 88;
}
}