/img/2013/01/16/1213111582.jpg
谁有和上图效果一样的 原代码文件 请发我个 谢谢!
------解决方案--------------------------------------------------------
没有这个源码,去百度找一下,类似的应该挺多的吧。
------解决方案--------------------------------------------------------
在www.9ria.com可以找到。或flash8.net
------解决方案--------------------------------------------------------
package
{
import flash.display.Sprite;
import flash.display.StageQuality;
import flash.events.Event;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.net.URLLoaderDataFormat;
import flash.events.MouseEvent;
import flash.filters.BlurFilter;
import gs.TweenMax;
/**
* ...
* @author pz
*/
[SWF(width='900',height='600',frameRate='30',backgroundColor='#000000')]
public class Main extends Sprite
{
private var container:Sprite;
private var album_xml:XML;
private var req:URLRequest;
private var loader:URLLoader;
private var lists:Array;
private var planeArray:Array;
private var planeX:int = 200;
private var planeZ:int = 200;
private var planeRotationY:uint = 50;
private var time:int = 1;
private var median:uint;
public function Main():void
{
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(e:Event = null):void
{
removeEventListener(Event.ADDED_TO_STAGE, init);
container = new Sprite();
addChild(container);
container.x = stage.stageWidth / 2;
container.y = stage.stageHeight / 2;
reqXML();
}
private function reqXML():void
{
req = new URLRequest("album.xml");
loader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
loader.addEventListener(Event.COMPLETE, onComplete);
try
{
loader.load(req);
}
catch (error:Error)
{
trace("Unable to load URL: " + error);
}
}
private function onComplete(e:Event):void
{
loader.removeEventListener(Event.COMPLETE, onComplete);
album_xml = new XML(e.target.data);
lists = new Array();
for each (var k:XML in album_xml.photo)
{
lists.push(k.@url);
}
addAlbum();
}
private function addAlbum():void