画像の読み込み試し中

by hi_noon forked from Progression 4 BasicAppConfig (diff: 18)
どこが間違っているのかわからない、、、
♥0 | Line 48 | Modified 2010-03-11 13:07:07 | MIT License | (replaced)
play

Related images

ActionScript3 source code

/**
 * Copyright hi_noon ( http://wonderfl.net/user/hi_noon )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/iw5W
 */

// forked from nium's Progression 4 BasicAppConfig
// どこが間違っているのかわからない、、、
package {
	import flash.display.*;
	import jp.progression.config.*;
	import jp.progression.debug.*;
	import jp.progression.*;
	
    public class FlashTest extends Sprite {
        
        public var manager:Progression;
        
        public function FlashTest() {
			Progression.initialize( new BasicAppConfig() );
            manager = new Progression( "index", stage, IndexScene );
            
            Debugger.addTarget( manager );
                        
            manager.goto( manager.root.sceneId );
        }
    }
}

import jp.progression.casts.*;
import jp.progression.commands.display.*;
import jp.progression.commands.lists.*;
import jp.progression.commands.net.*;
import jp.progression.commands.tweens.*;
import jp.progression.commands.*;
import jp.progression.data.*;
import jp.progression.events.*;
import jp.progression.scenes.*;
import flash.net.URLRequest;

class IndexScene extends SceneObject {
	private var _loader:CastImageLoader;
	private var _url:String = "http://assets.wonderfl.net/images/related_images/c/cd/cdf0/cdf084da0fe7c1a04fe340a74a917ee9ee400302"
	public function IndexScene() {
	}
	
	protected override function atSceneLoad():void {
		addCommand(
		);
	}
	
	protected override function atSceneInit():void {
		addCommand(
			function():void {
				_loader = new CastImageLoader();
				//_loader.x = 100;
				//_loader.y = 100;
				//_loader.align = CastImageLoaderAlign.TOP_LEFT;
				//_loader.ratio = CastImageLoaderRatio.OVERFLOW;
				//_loader.adjustWidth = 150;
				//_loader.adjustHeight = 100;
				_loader.load(new URLRequest(_url));
			}
			,new AddChild(container, _loader)
		);
	}
	
	protected override function atSceneGoto():void {
		addCommand(
		);
	}
}

Forked