//myShader.pbjをバイナリで読み込む var loader:URLLoader = new URLLoader(); loader.dataFormat = URLLoaderDataFormat.BINARY; loader.addEventListener(Event.COMPLETE, onLoadComplete); loader.load(new URLRequest("myShader.pbj")); var shader:Shader; function onLoadComplete(event:Event):void { //shaderを作る shader = new Shader(); shader.byteCode = loader.data; //これでもOK // shader = new Shader(loader.data); // shaderを使う }