forked from: flash on 2013-3-22
[SWF(width="640", height="480")];
♥0 |
Line 20 |
Modified 2013-03-22 21:03:12 |
MIT License
archived:2017-03-20 07:57:31
ActionScript3 source code
/**
* Copyright Thumasz ( http://wonderfl.net/user/Thumasz )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/bpdx
*/
// forked from brainspank's flash on 2013-3-22
package {
import flash.display.AVM1Movie;
//[SWF(width="640", height="480")];
import flash.text.TextFormat;
import flash.text.TextField;
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
//var SWFPath:String = root.loaderInfo.parameters.swfpath as String;
var txtDisplay:TextField = new(TextField);
txtDisplay.defaultTextFormat = new TextFormat('Verdana', 12, 0x111111);
addChild(txtDisplay);
this.width = 640;
var englandCities:Array = ["London", "Manchester", "Leeds"];
var frenchCities:Array = ["Paris", "Orleans", "Avignon"];
var europeanCities:Array = [englandCities, frenchCities];
europeanCities.push(europeanCities[0].splice(0, europeanCities[0].length()));
europeanCities.push(europeanCities[0].splice(0, europeanCities[0].length()));
txtDisplay.appendText(europeanCities.toString() + "\n" + europeanCities.length);
}
}
}