topical media & game development
animation-ch04-LoadAsset.ax
animation-ch04-LoadAsset.ax
[swf]
[flash]
flex
package
{
import flash.display.Sprite;
import flash.display.Loader;
import flash.net.URLRequest;
public class @ax-animation-ch04-LoadAsset extends Sprite
{
public function @ax-animation-ch04-LoadAsset()
{
init();
}
private function init():void
{
var loader:Loader = new Loader();
addChild(loader);
loader.load(new URLRequest("@logo.jpg"));
}
}
}
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.