forked from: Test load Googlestreet view pano tile
You need to use loader, not content.
/**
* Copyright makc3d ( http://wonderfl.net/user/makc3d )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/zQk6
*/
// forked from Glidias's Test load Googlestreet view pano tile
package {
import flash.system.LoaderContext;
import flash.display.Loader;
import flash.net.URLRequest;
import flash.display.Sprite;
import flash.events.Event;
// You need to use loader, not content.
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var loader:Loader = new Loader();
var context:LoaderContext = new LoaderContext(true, null, null);
loader.load(new URLRequest("http://cbk0.google.com/cbk?output=tile&w=416&h=208&panoid=t_mnKSugTLrQTEnJplXQ3A&zoom=2&x=1&y=0"), context);
addChild (loader);
}
}
}