亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? pv3dcolladascene.as

?? ActionScript寫的3D圖片展示功能
?? AS
?? 第 1 頁 / 共 2 頁
字號:
/**
* @author John Grden
*/
package org.papervision3d.core.components.as3.flash9 {
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.IOErrorEvent;
	import flash.events.ProgressEvent;
	import flash.events.TimerEvent;
	import flash.utils.Dictionary;
	import flash.utils.Timer;
	
	import org.papervision3d.core.components.as3.collections.MaterialsListItem;
	import org.papervision3d.core.components.as3.utils.ObjectController;
	import org.papervision3d.core.components.as3.utils.StageTools;
	import org.papervision3d.core.proto.MaterialObject3D;
	import org.papervision3d.events.FileLoadEvent;
	import org.papervision3d.materials.BitmapAssetMaterial;
	import org.papervision3d.materials.BitmapFileMaterial;
	import org.papervision3d.materials.BitmapMaterial;
	import org.papervision3d.materials.ColorMaterial;
	import org.papervision3d.materials.MovieAssetMaterial;
	import org.papervision3d.materials.MovieMaterial;
	import org.papervision3d.materials.utils.MaterialsList;
	import org.papervision3d.objects.DisplayObject3D;
	import org.papervision3d.objects.parsers.DAE;
	
	import com.blitzagency.xray.logger.util.PropertyTools;
	
	import fl.data.SimpleDataProvider;	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	/**
	* Dispatched when the collada file and materials have been completely parsed and loaded.
	* 
	* @eventType org.papervision3d.components.as3.flash9.PV3DColladaScene.SCENE_COMPLETE
	*/
	[Event(name="sceneComplete", type="flash.events.Event")]
	
	/**
	* Dispatched while the collada file is loading.  
	 * <p>Event carries 2 properties:
	 * <ul>
	 * <li>1.  bytesLoaded
	 * <li>2.  bytesTotal
	* </ul>
	 * </p>
	* @eventType org.papervision3d.components.as3.flash9.PV3DColladaScene.SCENE_LOAD_PROGRESS
	*/
	[Event(name="sceneLoadProgress", type="flash.events.Event")]
	
	/**
	* Dispatched when the collada object cannot load the file specified either because of security or non-existance
	* <p>
	 * provides a property called "message" which is the actual load error initially received.
	 * </p>
	* @eventType org.papervision3d.components.as3.flash9.PV3DColladaScene.SCENE_LOAD_ERROR
	*/
	[Event(name="sceneLoadError", type="flash.events.Event")]
	
	/**
	 * PV3DColladaScene is the main class for the Flash CS3 COLLADA component.
	 * </p>
	 * <p>It's main purpose is to provide the developer/designer with drag and drop functionality to render a COLLADA scene with a camera and Scene3D.  Full access to a materials list and objects
	 * is given through the api:
	 * <ul>
	 * <li>scene</li>
	 * <li>camera</li>
	 * <li>collada</li>
	 * </ul>
	 * </p>
	 * <p>The component includes a Custom Panel via Windows>other panels>PV3DPanel</P>
	 * <p>To use the component, drag it from the components list on to the stage in the Flash IDE.  First, set the local directory by clicking on the folder icon in the Panel.
	 * Then, select the DAE (COLLADA) file to use.  At this point, you *should* see your 3D scene being rendered.
	 * </p>
	 * <p>You might have to play with the scale if you're not seeing the scene or camera Z (move it out more).
	 * </p>
	 * <p>If you textured your models with bitmaps in your 3D application, COLLADA retains those file paths and Papervision3D will attempt to dynamically load them for you IF you don't 
	 * provide a materials list.  So, there is a good chance you'll see your scene fully textured once you've provided the local directory and file paths.
	 * </p>
	 * <p>If you provide a MaterialsList via the property inspector, there are 3 types supported:
	 * <ul>
	 * <li>Bitmap: BitmapAssetMaterial - a bitmap defined in the library</li>
	 * <li>MovieClip: MovieAssetMaterial - a MovieClip defined in the library</li>
	 * <li>File: BitmapFileMaterial - an external bitmap file</li>
	 * </ul>
	 * 
	 * </p>
	 * @see org.papervision3d.core.components.as3.collections.MaterialsListItem
	 */	
	public class PV3DColladaScene extends PV3DScene3D
	{
		
		/**
		* @eventType sceneComplete
		*/		
		public static const SCENE_COMPLETE	:String = "sceneComplete";
		
		/**
		* @eventType sceneLoadProgress
		*/		
		public static const SCENE_LOAD_PROGRESS	:String = "sceneLoadProgress";
		
		/**
		* @eventType sceneLoadError
		*/		
		public static const SCENE_LOAD_ERROR	:String = "sceneLoadError";
		
		/**
		* A boolean flag letting the component know whether or not to show trace output
		*/		
		public var debug						:Boolean = true;
		
				
		private var _materialsList						:MaterialsList = new MaterialsList();
		/**
		* The MaterialsList object that is used by the component if one is provided.  This is set at design-time and is read-only at runtime
		*/
		public function get materialsList():MaterialsList { return _materialsList; }
		
		private var _col						:DAE;		
		private var _colladaFile				:String = "";
		private var _localPath					:String = "";
		private var _sceneScale					:Number = 0;
		private var rebuildCollada				:Boolean = false;
		private var _rotationList				:Object = {pitch:0, yaw:0, roll:0};
		private var _extMaterials				:SimpleDataProvider = new SimpleDataProvider();
		private var fileLocation				:String = ""; 
		
		private var materialsQue				:Dictionary = new Dictionary();
		
		private var previewTimer				:Timer = new Timer(25,0);
		
		/**
		 * @private
		 * @note Called when the component is actually running in a compiled SWF at runtime, rather than LivePreview
		 * @param p_piSetting
		 * 
		 */	
		override public function set componentInspectorSetting(p_piSetting:Boolean):void
		{
			_componentInspectorSetting = p_piSetting;
			if(debug) log.debug("componentInspectorSetting", p_piSetting);
			if(!_componentInspectorSetting) 
			{
				initApp();
				if(debug) log.debug("colladaFile?", colladaFile);
				if(debug) log.debug("isLivePreview?", isLivePreview);
				
				// just start by building materials and it'll light up from there.
				createMaterials();
			}
		}
		
		/**
		 * @private
		 */	
		override public function get componentInspectorSetting():Boolean
		{
			return _componentInspectorSetting;
		}
		
		/**
		 * The Papervision3D Collada object created for the component's use.
		 * @return Collada object
		 * 
		 */		
		public function get collada():DAE
		{
			return _col;
		}
		
		public function set collada(col:DAE):void
		{
			_col = col;
		}
		
		/**
		 * this fires after all of the properties have been updated.  The Property Inspector (pi) sets all properties for a component even if only 1 is updated.
		 * So, the modified LivePreviewParent I created makes this call to propertyInspectorSetting and passes a flag to let the component know that's its
		 * ok to proceed with dealing with the changes.
		 * 
		 * Changes have to be dealt with in a specific order.  Materials, then collada WITH scale passed in the constructor, then rotation after collada is completely loaded.
		 * @private
		 */	
		override public function set propertyInspectorSetting(p_piSetting:Boolean):void
		{
			trace(0);
			_propertyInspectorSetting = p_piSetting;
			if(!p_piSetting)
			{
				trace(1);
				// if we haven't initialized yet, do so
				if(!isAppInitialized) initApp();
				trace(2, isLivePreview);
				if(debug) log.debug("********** isLivePreview?", isLivePreview);
				trace(3, rebuildCollada, collada == null);
				if(rebuildCollada || collada == null) 
				{
					if(debug) log.debug("GO CREATE MATERIALS");
					createMaterials();
				}else
				{
					if(debug) log.debug("GO update collada");
					finalizeColladaLoad();
				}
			}
			if(debug) log.debug("propertyInspectorSetting", p_piSetting);
		}
		
		/**
		 * @private
		 */	
		override public function get propertyInspectorSetting():Boolean
		{
			return _propertyInspectorSetting;
		}
		
		[Inspectable (name="Scene Rotation", defaultValue=false, type="Boolean")]
		/**
		* Boolean flag indicating whether or not to add mouse drag/rotation abilities to the collada container.  Clicking 
		 * yes will allow you to use simple dragging to rotate the scene.
		*/		
		public var sceneRotation					:Boolean = true;
			
		[Inspectable (type="String", defaultValue="", name="Local Directory") ]
		/**
		 * @private
		 */	
		public function set localPath(p_localPath:String):void
		{
			if(p_localPath != _localPath && p_localPath.length > 0) 
			{
				p_localPath = p_localPath.split("\\").join("/");
				_localPath = p_localPath.substring(p_localPath.length-1) == "/" ?  p_localPath : p_localPath + "/";
			}
		}
		/**
		 * @private
		 */	
		public function get localPath():String
		{
			return _localPath;
		}
				
		[Inspectable (type="String", defaultValue="", name="Collada File") ]
		/**
		 * A relative reference to the external collada file to be used
		 * @return String 
		 * 
		 */	
		public function set colladaFile(p_colladaFile:String):void
		{
			if(_colladaFile != p_colladaFile && p_colladaFile.length > 0) 
			{
				if(debug) log.debug("set colladaFile", p_colladaFile);
				rebuildCollada = true;
				_colladaFile = p_colladaFile;
			}
		}
	
		public function get colladaFile():String
		{
			return _colladaFile;
		}
		
		[Collection(name="Materials List", collectionClass="fl.data.SimpleDataProvider", collectionItem="org.papervision3d.core.components.as3.collections.MaterialsListItem", identifier="item")]
		/**
		 * @private
		 */	
		public function set extMaterials(p_extMaterials:SimpleDataProvider):void
		{
			if(p_extMaterials.dataProvider.length > 0 && !checkMaterialListsMatch(extMaterials, p_extMaterials)) 
			{
				if(debug) log.debug("****** COMPARE", checkMaterialListsMatch(extMaterials, p_extMaterials));
				_extMaterials = p_extMaterials;
				rebuildCollada = true;
			}
		}
		/**
		 * @private
		 */	
		public function get extMaterials():SimpleDataProvider { return _extMaterials; }
		
		[Inspectable (type="Number", defaultValue=.01, name="Scale") ]
		/**
		 * @private
		 */	
		public function set sceneScale(p_scale:Number):void
		{
			if(p_scale == _sceneScale) return;
			_sceneScale = p_scale;
			if(isLivePreview && (collada != null && colladaFile.length > 0)) 
			{
				// force an object redraw
				rebuildCollada = true;
			}
		}
		/**
		 * @private
		 */	
		public function get sceneScale():Number
		{
			return _sceneScale;
		}
		
		[Inspectable (type="Object", defaultValue="pitch:0, yaw:0, roll:0", name="Initial Rotation") ]
		/**
		 * @private
		 */	
		public function set rotationList(p_rotation:Object):void
		{
			_rotationList = p_rotation;
		}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆精品视频在线观看免费| 丁香亚洲综合激情啪啪综合| 国产精品美女视频| 欧美日韩小视频| 成人午夜大片免费观看| 奇米亚洲午夜久久精品| 亚洲人成网站色在线观看| 久久品道一品道久久精品| 欧美日韩精品一区二区| 91污片在线观看| 国产精品一区专区| 日韩av电影免费观看高清完整版| 亚洲精品免费电影| 国产三级久久久| 精品国产123| 91精品国产综合久久久久久久 | 日本亚洲免费观看| 亚洲精品中文在线| 亚洲国产成人私人影院tom| 欧美一区二区日韩| 欧美日韩欧美一区二区| 色偷偷成人一区二区三区91| 成人的网站免费观看| 看片网站欧美日韩| 日韩精品电影在线观看| 亚洲国产精品久久艾草纯爱| 日韩理论电影院| 日韩美女在线视频| 91精品国产综合久久婷婷香蕉| 一区二区三区美女视频| 蜜桃免费网站一区二区三区| 久久青草欧美一区二区三区| 日韩视频一区二区三区在线播放| 欧美高清视频www夜色资源网| 欧洲生活片亚洲生活在线观看| 波多野结衣一区二区三区| 国产精品538一区二区在线| 久久激情五月激情| 美日韩一区二区| 蜜臀a∨国产成人精品| 另类综合日韩欧美亚洲| 精品在线播放午夜| 韩国理伦片一区二区三区在线播放| 美女一区二区三区在线观看| 老司机精品视频线观看86| 久久国产精品色| 韩日av一区二区| 国产麻豆欧美日韩一区| 国产成人aaaa| 97aⅴ精品视频一二三区| 欧美性极品少妇| 欧美精品一卡二卡| 亚洲精品一区二区在线观看| 久久久精品天堂| 亚洲欧美综合色| 亚洲综合色噜噜狠狠| 日韩影院免费视频| 国精产品一区一区三区mba视频| 国产91丝袜在线18| 色综合天天天天做夜夜夜夜做| 欧美在线999| 精品国产免费一区二区三区香蕉| 久久九九久精品国产免费直播| 国产精品久久久久影院色老大 | 一个色在线综合| 天堂在线一区二区| 狠狠色丁香久久婷婷综| av电影天堂一区二区在线观看| 欧美中文字幕一区| 欧美r级在线观看| 中文子幕无线码一区tr| 亚洲电影在线免费观看| 久久成人久久爱| 91在线porny国产在线看| 制服.丝袜.亚洲.另类.中文| 国产日韩精品久久久| 亚洲国产你懂的| 国产一区二区在线看| 一本色道久久综合亚洲aⅴ蜜桃 | 蜜臀av性久久久久av蜜臀妖精| 国产一区欧美日韩| 91麻豆6部合集magnet| 日韩精品一区二区三区三区免费| 中文字幕中文乱码欧美一区二区| 天堂蜜桃91精品| 丁香另类激情小说| 在线综合视频播放| 亚洲免费观看高清完整版在线观看| 美女在线视频一区| 在线观看日韩一区| 久久亚洲精华国产精华液| 亚洲永久免费av| 国产aⅴ精品一区二区三区色成熟| 91成人国产精品| 国产亚洲精品aa午夜观看| 偷窥国产亚洲免费视频 | 6080国产精品一区二区| 国产日韩欧美综合在线| 日日夜夜一区二区| 91在线码无精品| 久久久亚洲欧洲日产国码αv| 亚洲国产日韩精品| 成人免费高清在线| 欧美大片日本大片免费观看| 亚洲综合无码一区二区| 成人激情视频网站| 日韩免费视频线观看| 洋洋成人永久网站入口| 国产91富婆露脸刺激对白| 91精品欧美综合在线观看最新| 中文字幕色av一区二区三区| 狠狠网亚洲精品| 在线电影一区二区三区| 亚洲影视在线观看| 色综合 综合色| 国产精品你懂的| 国产精品一区三区| 日韩丝袜美女视频| 视频一区二区三区入口| 欧美三区在线观看| 一区二区三区四区在线免费观看| 成人动漫av在线| 国产精品久久久久影院亚瑟| 岛国精品在线播放| 欧美国产激情二区三区| 国产精品自在在线| 精品国产乱码久久久久久老虎| 日本视频在线一区| 欧美一区二区视频观看视频| 亚洲国产cao| 欧美日韩一区二区三区在线看| 亚洲日本乱码在线观看| 97精品视频在线观看自产线路二| 国产清纯白嫩初高生在线观看91| 国产精品 日产精品 欧美精品| 久久午夜免费电影| 国产美女一区二区三区| 久久免费精品国产久精品久久久久| 日本三级亚洲精品| 欧美videos大乳护士334| 美国一区二区三区在线播放| 日韩欧美第一区| 精东粉嫩av免费一区二区三区| 欧美不卡一区二区| 国模娜娜一区二区三区| 欧美激情一二三区| 91色.com| 天天色天天爱天天射综合| 日韩亚洲欧美在线| 国产永久精品大片wwwapp| 中文字幕第一页久久| 91麻豆精东视频| 天堂资源在线中文精品| 欧美va亚洲va| 成人a区在线观看| 亚洲网友自拍偷拍| 日韩精品一区二区三区视频播放 | 九色|91porny| 中文字幕乱码一区二区免费| 一本到一区二区三区| 首页欧美精品中文字幕| 精品国产电影一区二区| 成人久久18免费网站麻豆 | 欧美色图免费看| 日本美女一区二区三区| 久久先锋影音av| 色综合视频在线观看| 蜜桃av一区二区| 国产精品久久一卡二卡| 欧美精三区欧美精三区| 国产毛片一区二区| 亚洲美女一区二区三区| 91精品国产一区二区人妖| 国产毛片一区二区| 一区二区三区在线观看动漫 | 日韩三区在线观看| 成人中文字幕在线| 婷婷中文字幕综合| 国产精品嫩草99a| 9191成人精品久久| 成人午夜激情在线| 日本不卡一二三区黄网| 国产欧美精品在线观看| 欧美三级视频在线| 国产91综合网| 日韩电影在线一区二区三区| 国产日韩欧美精品在线| 欧美电影在线免费观看| 成人久久18免费网站麻豆| 日本在线不卡视频| 亚洲欧美日韩国产成人精品影院| 日韩一区二区三区视频在线观看 | 欧美日韩中字一区| 粉嫩蜜臀av国产精品网站| 男女激情视频一区| 亚洲卡通动漫在线| 国产午夜一区二区三区| 91精品国产综合久久精品| 93久久精品日日躁夜夜躁欧美| 老司机精品视频导航|