摘要:
import ScrollBar;var myScroll:ScrollBar=new ScrollBar(c_contentBox,mask_mc,scroll_bar,scroll_line);//4个参数分别为:文本框、文本显示区域遮罩、滚动条滑块、滑道myScroll.tween=5;myScroll.elastic=false;//设置滑块高度是否依据文本框高度变化。此处false意指维... 阅读全文
摘要:
/* 双向(横板+竖版)滚动条 Copyright (c) 2009, www.brandsh.cn, qq:657173348 All rights reserved.*/package{ import flash.display.*; import flash.events.*; import flash.geom.Point; import flash.geom.Rectangle;... 阅读全文
摘要:
import fl.controls.UIScrollBar;import fl.controls.ScrollBarDirection;var url:String="http://www.helpexamples.com/flash/text/lorem.txt";var uLdr:URLLoader=new URLLoader(new URLRequest(url));uLdr.addEve... 阅读全文
摘要:
import fl.controls.TileList;import fl.controls.ScrollBarDirection;var myTileList:TileList = new TileList();myTileList.addItem({label:"Image 1", source:"http://www.helpexamples.com/flash/images/image1.... 阅读全文
摘要:
import flash.display.Loader;import flash.net.URLRequest;import flash.events.Event;import flash.display.Sprite;import flash.events.MouseEvent;var imageSprite:Sprite=new Sprite();var len:int=arr_imageUR... 阅读全文
摘要:
import flash.display.Loader;var hasImage:Boolean=false;function imageLoadedHandler(e:Event):void { var image:Loader=e.currentTarge.loader; imageSprite.addChildAt(image,0); //一直将载入的图片加载在最底层(0层),因此上次载入的... 阅读全文