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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? 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;
		}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品国产久精国产| 日韩美女天天操| 国产精品的网站| 成人午夜免费视频| 自拍偷在线精品自拍偷无码专区| 国产成人综合自拍| 国产精品色在线| av激情亚洲男人天堂| 亚洲品质自拍视频网站| 欧美三级电影网站| 久久电影网电视剧免费观看| 久久久久亚洲综合| 91香蕉视频黄| 视频在线在亚洲| 久久久久久99精品| 91麻豆精品在线观看| 亚洲成年人网站在线观看| 欧美一区二区在线播放| 国产麻豆精品95视频| 亚洲欧美日韩系列| 91精品婷婷国产综合久久性色| 九色porny丨国产精品| 国产精品美日韩| 在线不卡中文字幕播放| 国产91精品精华液一区二区三区| **欧美大码日韩| 91精品蜜臀在线一区尤物| 高清国产午夜精品久久久久久| 亚洲欧美欧美一区二区三区| 91精品在线免费观看| 成人黄色一级视频| 日韩高清中文字幕一区| 欧美国产视频在线| 在线播放欧美女士性生活| 成人教育av在线| 日韩高清欧美激情| 中文字幕一区二区三区四区不卡| 欧美系列一区二区| 风流少妇一区二区| 肉肉av福利一精品导航| 国产精品成人一区二区三区夜夜夜| 欧美性生活久久| 国产·精品毛片| 美女mm1313爽爽久久久蜜臀| 国内精品伊人久久久久av一坑 | 亚洲精品ww久久久久久p站| 日韩精品一区二区三区三区免费| 97成人超碰视| 国产精品一区二区你懂的| 午夜精品视频在线观看| 亚洲三级电影全部在线观看高清| 亚洲精品在线免费播放| 欧美区在线观看| 色欧美片视频在线观看| 国产99久久久国产精品免费看| 男人的j进女人的j一区| 亚洲国产另类av| 亚洲精品老司机| 中文字幕人成不卡一区| 精品国产乱码久久久久久久久| 欧美日韩免费一区二区三区| 91免费在线播放| eeuss鲁片一区二区三区| 国产精品一区二区在线播放| 麻豆成人免费电影| 日韩激情中文字幕| 亚洲综合免费观看高清完整版 | 中文幕一区二区三区久久蜜桃| 日韩一区二区在线观看视频| 欧美欧美欧美欧美首页| 欧美中文字幕亚洲一区二区va在线 | 国产人久久人人人人爽| 精品国产乱码久久久久久浪潮 | av不卡在线播放| 成人午夜免费视频| av激情成人网| 91色婷婷久久久久合中文| 成人av在线网站| 成人午夜激情片| 波多野结衣的一区二区三区| 成人动漫一区二区三区| 成人精品亚洲人成在线| 成人永久免费视频| 成人性生交大片免费看在线播放| 大桥未久av一区二区三区中文| 国产91精品久久久久久久网曝门| 高清不卡一区二区在线| 国产传媒久久文化传媒| 成人av在线电影| 97久久超碰国产精品| 日本韩国欧美在线| 欧美天天综合网| 91精品国产品国语在线不卡| 欧美草草影院在线视频| 久久精品一级爱片| 中文字幕亚洲欧美在线不卡| 亚洲视频中文字幕| 丝袜亚洲另类欧美| 久草在线在线精品观看| 大陆成人av片| 欧美色视频一区| 欧美电影免费观看高清完整版在 | 亚洲高清免费观看高清完整版在线观看 | 国产成人精品免费看| 成a人片国产精品| 91久久精品一区二区| 欧美男同性恋视频网站| 精品对白一区国产伦| 一区视频在线播放| 无码av免费一区二区三区试看| 麻豆成人久久精品二区三区小说| 成人午夜视频在线观看| 欧美影院一区二区| 精品国产三级电影在线观看| 最新欧美精品一区二区三区| 亚洲18女电影在线观看| 激情欧美一区二区| 91老师片黄在线观看| 7777精品伊人久久久大香线蕉最新版 | 欧美一区二区三区电影| 中文在线一区二区| 亚洲va国产天堂va久久en| 国产在线国偷精品免费看| 色香色香欲天天天影视综合网| 日韩一区二区电影| 亚洲码国产岛国毛片在线| 蜜臀av性久久久久蜜臀aⅴ流畅 | 欧美一区在线视频| 国产精品久久99| 麻豆一区二区在线| 99re亚洲国产精品| 精品国产青草久久久久福利| 一区二区三区不卡在线观看| 国产一区在线视频| 欧美日韩国产精品自在自线| 国产精品毛片a∨一区二区三区| 五月开心婷婷久久| 91黄视频在线| 国产精品欧美一区喷水| 天堂va蜜桃一区二区三区漫画版| 不卡视频在线观看| 2021中文字幕一区亚洲| 热久久国产精品| 在线视频你懂得一区二区三区| 久久久精品国产免大香伊| 日本欧美一区二区在线观看| 欧美性受xxxx黑人xyx性爽| 国产精品黄色在线观看| 国产麻豆精品久久一二三| 日韩一区二区三区电影在线观看| 亚洲精品国产一区二区三区四区在线| 狠狠色狠狠色综合系列| 在线综合视频播放| 午夜精品成人在线| 色8久久人人97超碰香蕉987| 中文欧美字幕免费| 成人免费视频国产在线观看| 精品国产一区二区三区av性色| 五月激情综合色| 欧美绝品在线观看成人午夜影视| 一区二区三区四区不卡视频| 99热国产精品| 国产精品久久一级| av网站免费线看精品| 国产精品久久久久影院老司| 懂色一区二区三区免费观看| 国产欧美日韩三级| 高清成人免费视频| 欧美激情在线看| 成人一级视频在线观看| 国产精品系列在线| 99久久99久久精品国产片果冻 | 一区二区三区在线看| 99re亚洲国产精品| 一区2区3区在线看| 欧美性猛交xxxxxxxx| 亚洲国产综合91精品麻豆 | 欧美精选在线播放| 日本一区中文字幕| 精品久久久久香蕉网| 国产乱码精品一区二区三| 国产亚洲精品资源在线26u| 国产91精品精华液一区二区三区| 国产精品毛片a∨一区二区三区| 9久草视频在线视频精品| 亚洲欧美国产77777| 在线观看av一区二区| 日日欢夜夜爽一区| 日韩欧美在线123| 国产一区不卡在线| ...av二区三区久久精品| 欧美日韩精品三区| 精品一区二区三区av| 国产欧美日韩另类一区| 91久久精品网| 久久97超碰国产精品超碰| 中文字幕一区二区不卡| 欧美电影一区二区| 粉嫩av一区二区三区粉嫩 | 亚洲国产成人午夜在线一区|