flash on 2013-11-6
PNGイメージ読み込み
♥0 |
Line 20 |
Modified 2013-11-09 18:28:34 |
MIT License
archived:2017-03-30 02:43:14
ActionScript3 source code
/**
* Copyright tepe ( http://wonderfl.net/user/tepe )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/19Yc
*/
package {
//PNGイメージ読み込み
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
//Security.loadPolicyFile('http://www.ozworks.dip.jp/crossdomain.xml');
var loader:Loader;
loader = new Loader();
//const req:String = "http://www.ozworks.dip.jp/img/01/1426006.png";
const str1:String = "http://i.ytimg.com/vi/";
var str2:String = "BBAUCUYnX9M";
const str3:String = "/default.jpg";
const str4:String = "/0.jpg";
var req2:String = str1+str2+str4;
loader.load(new URLRequest(req2));//youtubeプレイヤー読み込み
addChild(loader);
//loader.scaleX = loader.scaleY = 2;
}
}
}