------------------------------------------------------------------------------------------
Key steps for the interface
[1] Create core dragable/closeable interface code
[2] Dynamically loading text/pictures from outside of flash file
[3] 3D model viewer
------------------------------------------------------------------------------------------
Links Dump
------------------------------------------------------------------------------------------
http://away3d.com/ -> the flash 3d solution I shall be working with
http://www.flashmagazine.com/tutorials/detail/flash_3d_basics/
http://www.flash-3d.net/2010/11/basic-texturing-with-away3d/
http://www.flashandmath.com/advanced/simple3d/index.html
http://www.emanueleferonato.com/2009/05/08/papervision3d-for-the-absolute-beginners/
http://cgcookie.com/unity/images/free-3d-model-viewer/#
http://www.ambiera.com/coppercube/doc/index.html
------------------------------------------------------------------------------------------
flash model viewer from scratch?
http://board.flashkit.com/board/showthread.php?778852-AS2-3-Flash8-3d-engine-kit
------------------------------------------------------------------------------------------
http://www.kirupa.com/flash/easy_drag_drop_flash_as3.htm
http://active.tutsplus.com/tutorials/web-design/enhance-your-flash-layouts-with-draggable-windows/
http://helpx.adobe.com/flash/kb/load-external-swf-swf.html
http://www.kirupa.com/developer/flashcs3/loading_image_as3_pg1.htm
http://heartlessg.com/content/loading-external-image-jpgpng-etc-movieclip-flash-as3
http://flash.bigresource.com/ActionScript-3-0-embed-an-external-youtube-video-into-a-movie-clip-1oUYeUTVV.html
------------------------------------------------------------------------------------------
Core code I wrote today for draggable/closeable window style interface
------------------------------------------------------------------------------------------
- import flash.events.MouseEvent;
circleDragger.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
circleDragger.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
squareDragger.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
squareDragger.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
function mouseDownHandler(evt:MouseEvent):void {
var object = evt.target;
object.startDrag();
}
function mouseUpHandler(evt:MouseEvent):void {
var obj = evt.target;
obj.stopDrag();
}
circleHide.addEventListener(MouseEvent.CLICK, circleHideClick);
function circleHideClick(event:MouseEvent):void {
circleDragger.enabled = false;
circleDragger.visible = false;
}
circleShow.addEventListener(MouseEvent.CLICK, circleShowClick);
function circleShowClick (event:MouseEvent):void {
circleDragger.enabled = true;
circleDragger.visible = true;
}
squareHide.addEventListener(MouseEvent.CLICK, squareHideClick);
function squareHideClick(event:MouseEvent):void {
squareDragger.enabled = false;
squareDragger.visible = false;
}
squareShow.addEventListener(MouseEvent.CLICK, squareShowClick);
function squareShowClick (event:MouseEvent):void {
squareDragger.enabled = true;
squareDragger.visible = true;
}
No comments:
Post a Comment