Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

flash ÈÝÆ÷¹ö¶¯Ð§¹û

import flash.display.MovieClip;
import flash.geom.Rectangle;
import fl.controls.UIScrollBar;
import fl.controls.ScrollBarDirection;
import fl.events.ScrollEvent;
var container:MovieClip=new MovieClip();
//container.addChild(create_mc());
//container.addChild(create_mc());
addChild(container);
var p_x:uint=0;
var p_y:uint=0;
var rect:Rectangle=new Rectangle(0,0,60,60);
container.scrollRect=rect;
for(var i:uint=0;i<36;i++){
if(i%3==0){
p_x=0;
if(i!=0){
p_y+=20;
}
}
var mc:MovieClip=create_mc();
mc.x=p_x;
mc.y=p_y;
p_x+=20;
container.addChild(mc);
}
//container.height=100;
var scroll_bar:UIScrollBar=new UIScrollBar();
scroll_bar.direction=ScrollBarDirection.VERTICAL;
scroll_bar.setScrollProperties(5,1,180);
scroll_bar.addEventListener(ScrollEvent.SCROLL,scroll_handle);
addChild(scroll_bar);
scroll_bar.y=150;
scroll_bar.x=150;

function scroll_handle(evt:ScrollEvent):void{
//trace(evt.target.scrollPosition);
var rect:Rectangle =container.scrollRect;
rect.y=Math.floor(evt.target.scrollPosition);
container.scrollRect=rect;
}
function create_mc():MovieClip{
var mc:MovieClip=new MovieClip();
mc.graphics.beginFill(0xFF0000,0.5);
mc.graphics.drawCircle(10,10,10);
mc.graphics.endFill();
return mc;
}


Ïà¹ØÎĵµ£º

£¨×ªÔØ£©FLASHÓÎÏ·ÈëÃÅ ËÄ

¡¡¡¡±¾À´²»ÏëдÕâ½ÚµÄ£¬ÒòΪÕâ½ÚµÄÄÚÈݺܶàÊéÉÏ»òÕßÍøÉÏ×ÊÁ϶¼ÓУ¬¶øÇÒдµÄ±ÈÎÒÒªÏêϸÕý¹æµÃ¶à¡£µ«ºóÀ´ÏëÏ룬»¹ÊÇд°É£¡
¡¡¡¡¶øÇÒºóÃ漸½ÚÒª½áºÏ½Ó±¦µÄ·¶ÀýÓÎÏ·£¬¾ßÌå·ÖÎöËüµÄ¼¸¸öCLASS£¬ËùÒÔ£¬»¹ÊÇÓÃÒ»½Ú°ÑCLASSµÄд·¨ËµÒ»Ï¡£¿ÉÄÜÎÒ¶ÔCLASSµÄд·¨Ò²²»ÊǺÜÕý¹æ£¬ÓÐÀÏÄñ¿´Á˺ó£¬×îºÃÒ²ÄÜÖ¸µãһϡ£
¡¡¡¡ÏÈÀ´¸öCLASS»ù±¾ ......

£¨×ªÔØ£©FLASHÓÎÏ·ÈëÃÅ °Ë

¡¡¡¡·¶Àý½Ó±¦ÓÎÏ·Öе÷ÖÏÔʾÀàºÍʱ¼ä¿ØÖÆÀàµÄCLASS½²½â
¡¡¡¡ÊÂʵÉÏÕâÁ½²¿·Ö±È½Ï¼òµ¥
¡¡¡¡ËùÒÔ²¢ÔÚÒ»Æð½²½âÁË
¡¡¡¡½²½âÇ°Ïȵ㿪FLAÎļþ£¬°ÑÕâÁ½¸öMC¿´¿´£¬¶ÔMC¹¹ÔìÁ˽âÁË£¬²ÅÄÜдCLASSÂï~
¡¡¡¡¿´Ïµ÷ÖÏÔʾÀàµÄ´úÂ룺
class game.Score_view extends MovieClip {
¡¡¡¡private var w1:MovieClip;
¡¡¡¡private var w2:M ......

Flash CS4ÖÐ"½«¶¯»­¸´ÖÆΪActionScript"ʹÓóõ̽

¸Õ¿ªÊ¼ÓÃCS4µÄʱºò¾Í×¢Òâµ½ÁËÕâ¸öÕâ¸ö¹¦Äܲ»¹ý¶¼Ã»Êµ¼ù¹ý,Õ⼸Ììʵ¼ùÁËһϷ¢ÏÖÊǸöºÜºÃºÜºÍгµÄµÄ¼¼ÄÜ .ÓÐÁËËüÎÒÃǾͿÉÒÔºÜɵ¹ÏµÄ±à¼­Ò»Ð©ÎÒÃdzÌÐòÔ±ºÜÍ·Ì۵ĴúÂë,±ÈÈçflash¶¯»­µÄÂ˾µÐ§¹û,Èç¹ûûÓÐÕâ¸ö¹¦ÄܹÀ¼Æ°ïÖúÎĵµÀïÃæµÄflash.filters°üµÃ¿´°ëÌì…ÓиöÕâ¸ö¹¦ÄÜÎÒÃǾͲ»ÓóîÁË.±ÈÈçÏÖÔÚÎÒÏ붯̬Ìí¼ÓÌí¼ÓÒ»¸öÔª¼ ......

flash + php ÎļþÉÏ´«

 import flash.net.FileFilter;
import flash.net.FileReferenceList;
import fl.controls.Button;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.events.ProgressEvent;
import flash.events.HTTPStatusEvent;
import flash.display.Loader;
import flash.net.URLRequest;
var ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ