flash ½»»¥²Ù×÷£º²Ã¼ôλͼ
Íæ¹ý½ØÍ¼µÄÈ˶¼ÖªµÀ½ØÍ¼ÊÇÔõÑùÒ»»ØÊ£¬Í¨¹ý½ØÈ¡Í¼Æ¬Ò»¸öµØ·½¾ÍÄܹ»»ñÈ¡µ½Í¼Æ¬Ä³Ò»¸öƬ¶Î¡£ÕâÒ»¸ö²¿·ÖÔÚflash ÀïÃæ¿ÉÒÔÀûÓÃλͼµÄ¸´ÖÆÏñËØÀ´ÊµÏÖ¡£Í¨¹ýcopyPixels »òÕßdraw Äܹ»»ñÈ¡ÏñËØ¡£
ÏÖÔÚÎÒÃÇÌÖÂÛÒ»¸ö»°Ì⣺ÔÚflashÀïÃæÔõÑùʵÏÖÕâÖÖ½ØÍ¼£¿ ´ø×ÅÕâ¸öÎÊÌ⣬³¢ÊÔÖÆ×÷Ò»¸ödemo³öÀ´¡£¹¦ÄܾÍÊÇ»ñȡλͼ¡£
ËùÐèÒªµÄ²ÄÁÏ£ºµÚÒ»¾ÍÊÇflash»æÍ¼API £¬µÚ¶þ¾ÍÊÇλͼÏñËØ²Ù×÷¡£ÀûÓÃÕâÁ½¸öÎÒÃǾÍÄܹ»ÊµÏÖ³öÕâÖÖ½»»¥Ð§¹û¡£
Éè¼ÆµÄͼ°¸£º
ÖÆ×÷˼·£ºÊ×ÏÈÖªµÀÔõÑù»æÖÆÒ»¸ö¾ØÐΣ¬¿ÉÒÔÉÏÍøËÑË÷һϣ¬»òÕß²éѯһЩflash»æÍ¼API ÊÇÈçºÎ²Ù×÷µÄ¡£½èÖú»æÖÆÕâ¹É¾ØÐΣ¬ÎÒÃǾÍÄܽØÈ¡µ½ÎÒÃÇËùÐèÒªµÄƬ¶Î¡£
½ÓÏÂÀ´£¬Îª³ÌÐòдһ¸ö»ùÀࣺItem.as
¶¨ÒåһЩ³£Óõķ½·¨ºÍÊôÐÔ¡£
ÀýÈç»æÖÆ¾ØÐΡ£»ñȡλͼ£¬¶¨ÒåÏßÌõµÄÑùʽµÈ£¬ÅжϾØÐÎÊÇ·ñÓÐЧ
ÕâЩ·½·¨¶¼ÊǶ¨ÒåÔÚÕâ¸ö»ù´¡À൱ÖС£
package org.summerTree
{
//Ñ¡ÔñÀà»ù±¾ÉèÖÃ
import flash.display.Sprite;
import flash.geom.Rectangle;
import flash.events.EventDispatcher;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.geom.Point;
public class Item extends EventDispatcher
{
public var LineColor:int=0x0000ff;//ÏßÌõÑÕÉ«
public var FillColor:int=0x0000ff;//Ìî³äµÄÑÕÉ«
public var FillAlpha:Number=0.1;
public function Item()
{
}
//»æÖƾØÐεĻù±¾·½·¨
protected function DrawRect(shape:Sprite,rect:Rectangle):void
{
shape.graphics.clear();
shape.graphics.lineStyle(1,LineColor,1);
shape.graphics.beginFill(FillColor,FillAlpha);
shape.graphics.drawRect(rect.x,rect.y,rect.width,rect.height);
shape.graphics.endFill();
}
//ÅжÏrectÊÇ·ñÓÐЧ
public function checkRect(rect:Rectangle):Boolean
{
return rect != null?true:false;
}
//¶¨ÒåÑùʽ
public function setStyle(lcolor:int,fcolor:int,aplha:Number):void
{
this.LineColor=lcolor;
this.FillColor=fcolor;
this.FillAlpha=aplha;
}
//»ñȡλͼ
public function getImage(source:Bitmap,rect:Rectangle):Bitmap
{
var bitmapdata:BitmapData = source.bitmapData;
var Width:Number=Math.abs(rect.width);
Ïà¹ØÎĵµ£º
ĿǰҵÄÚ×î¾ßÕùÒéµÄ»°ÌâιýÓÚNANDÉÁ´æµÄÁ½´ó¼Ü¹¹MLCºÍSLCÁË£¬ÕâÁ½Öּܹ¹×î´óµÄÇø±ðÊÇ´æÈ¡¼¼Êõ²»Í¬£¬ÓÉ´ËÒ²´øÀ´ÁËÖÆÔì³É±¾¡¢¹¤ÒÕÒªÇ󡢸¨Öúµç
·¡¢´æÈ¡´ÎÊýÉϵÄåÄÒì¡£´Ó¶ÌÆÚ·¢Õ¹À´¿´£¬SLC¼Ü¹¹ÔÚʹÓÃÉÏÓÅÊÆ½ÏΪÃ÷ÏÔ£¬Ò²Òò´Ë³ÉΪÁ˲¿·Ö³§ÉÌìÅÒ«²úÆ·µÄ×ʱ¾¡£È»¶øMLC¼Ü¹¹¾ßÓгɱ¾µÍÁ®¡¢µ¥Æ¬ÈÝÁ¿½Ï
SLC³É±¶Ôö´óµÈÓÅÊÆ£¬³¤Ô¶À´¿ ......
֮ǰÔÚWindowsÏÂÓùýFirefoxµÄ64λ°æ±¾£Shiretoko£¬µ«ÊÇÓÉÓÚ64λµÄflash player pluginÒ»Ö±°²×°²»ÉÏ£¬µ¼ÖºܶàÓ¦Óö¼Óò»ÁË£¬¾Ý˵¿ÉÒÔʹÓÃNSPlugin Wrapper°üºÍ32λµÄÀà¿âÀ´Ê¹ÓÃ32λµÄflash player£¬ÎÒûÓг¢ÊÔ¡£×î½ü°²×°ÁË64λµÄGentoo£¬operaºÍshiretoko»¹ÊÇÎÞ·¨×Ô¶¯°²×°64λµÄflash player plugin¡£ ......
3D ±êÇ©ÔÆµÄʹÓÃ
3D±êÇ©ÔÆ°üº¬Á½¸ö±ØÐëÎļþ,Ô´ÎļþÔÚÕâÏÂÔØ
http://download.csdn.net/source/2037774
1. tagcloud.swf£ºÊDZêÇ©ÔÆÏÔʾµÄÖ÷flash³ÌÐò
2. swfobject.js: flashµÄ¿ØÖƳÌÐò
ÓÐÁ½ÖÖʹÓ÷½Ê½£¬µÚÒ»ÖÖÊÇͨ¹ýÔÚÍøÒ³ÉÏÊ ......
ÔÚÕâÀïÏÂÔØÒ»¸ö64λϵͳÏ嵀 flash ²å¼þ
http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
½âѹ ££tar -xzf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
¿½±´libfla ......