易截截图软件、单文件、免安装、纯绿色、仅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 AS 入门教程


本文详细介绍Flash AS 入门到精通教程
  用Flash制作动画,光凭时间轴和图层来演绎画面,即使动画再精彩,也只能让观赏者盯着屏幕,沿着时间线的进度被动的欣赏。如果要想动画具有交互性,根据观赏者的选择来控制播放的顺序或者呈现不同的内容就非得依靠Flash的动作脚本语言了。动作脚本英文为ActionScript,简称AS
......

(转载)108个Flash常见问题解答 (1~54)


内容摘要:本文收集整理了108个flash常见问题,如MC在场景中的播放问题,Flash中做旋转转速问题,本地机上测试Loading问题,使Flash的影片和声音同步问题...
  1. 论坛上常说的MC、FS、AS代表什么意思?
  MC=Movie Clip(动画片断);FS=FSCOMMAND,是Flash的一个非常重要的一个命令集合;AS=Action Script是Flas ......

(转载)Flash AS 入门到精通教程


Flash AS 入门到精通教程
      本文详细介绍Flash AS 入门到精通教程
  用Flash制作动画,光凭时间轴和图层来演绎画面,即使动画再精彩,也只能让观赏者盯着屏幕,沿着时间线的进度被动的欣赏。如果要想动画具有交互性,根据观赏者的选择来控制播放的顺序或者呈现不同的内容就非得依靠Fla ......

Necklace USB Flash Drive

All metal heart shaped necklace containing an 8 GB USB flash drive.
These days a
USB flash drive
is as necessary as your house keys. Whether you are
taking large work files back and forth from the office or are sharing pictures
and music with friends, nothing beats the convenience of a USB ......

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号