![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
actionscript
曹振华
这个作者很懒,什么都没留下…
展开
-
ActionScript ComboBox
import fl.data.DataProvider;import fl.controls.ComboBox;import flash.events.Event;//数组用来存放ComboBox数据var array1:Array=new Array( {label:"选项1",data:1}, {label:"选项2",data:2}, {label:"选项3",da原创 2014-03-26 10:44:01 · 1198 阅读 · 0 评论 -
ActionScript 实现雪花效果
1)创建元件“SnowFlower”1. 新建元件“SnowFlower ”类型为影片剪辑,记得勾选导出为ActionScript。2. 创建“雪花层”,在“雪花层”画一个圆X=0,Y=0,W=10,H=10并且在80帧处添加关键帧。3. 为“雪花层”添加运动引导层“Guide: 雪花”,在运动引导层“Guide: 雪花”用铅笔画从上至下画一条运动线,在第1帧将圆的拖到运动线的上端,在转载 2014-03-27 13:40:48 · 1434 阅读 · 0 评论 -
ActionScript实现喷泉效果
1)创建一个影片剪辑的原件(Ball)在里面绘制一个圆2)as代码如下import flash.events.Event;var count:Number = 100;//原件的个数var balls:Array=new Array();//数组用来存放原件var init_x = 200;//原件初始X坐标var init_y = 210;//原件初始Y坐标//实例化原件并将转载 2014-03-26 17:39:16 · 967 阅读 · 0 评论 -
ActionScript TileList
import fl.controls.TileList;import fl.data.DataProvider;import fl.controls.SliderDirection;import fl.containers.ScrollPane;import fl.events.ListEvent;var init_x:Number = 5;var init_y:Number = 5原创 2014-03-25 18:18:01 · 741 阅读 · 0 评论 -
ActionScript获取本地TEXT内容
1)创建test.txt并添加内容如下(提示:TEXT和flash文件在同一目录)myName=张三&myAddress=浙江嘉兴2)编写ActionScript代码如下import flash.net.URLRequest;import flash.net.URLLoader;import flash.events.Event;import flash.events.IOE原创 2014-03-26 14:25:47 · 1079 阅读 · 1 评论 -
ActionScript 正弦函数图像绘制
package { import flash.display.Sprite; import flash.text.TextField; import flash.text.TextFormat; import flash.text.TextFieldAutoSize; import flash.events.Event; public class Main extends Spri转载 2014-04-08 15:00:42 · 1099 阅读 · 0 评论 -
ActionScript实现长方形旋转
package { import flash.display.Sprite; import flash.events.MouseEvent; import flash.display.MovieClip; import flash.events.Event; import flash.utils.Timer; import flash.events.TimerEvent; pub原创 2014-04-18 17:01:49 · 984 阅读 · 0 评论 -
ActionScript 缓动类变换加载的本地图片
package { import flash.display.Sprite; import flash.display.MovieClip; import flash.net.URLRequest; import flash.display.Loader; import flash.events.Event; import flash.events.MouseEvent; impo转载 2014-04-03 15:33:01 · 1200 阅读 · 0 评论 -
ActionScript 遮罩层
package { import flash.display.Sprite; import flash.events.Event; public class Main extends Sprite { public function Main() { var rect:Sprite = drawRect(100,50,100,100); stage.addChild原创 2014-04-04 10:31:40 · 952 阅读 · 0 评论 -
ActionScript 实现放大图片功能
package { import flash.display.Sprite; import flash.events.MouseEvent; import flash.events.Event; public class Main extends Sprite { public function Main() { initPic(); } //3行4列 v转载 2014-04-02 15:43:09 · 948 阅读 · 0 评论 -
ActionScript不断旋转的椭圆
package { import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; public class Main extends Sprite { var my_x = stage.stageWidth / 2;//圆心X坐标 var my_y = stage原创 2014-03-28 11:01:13 · 1038 阅读 · 0 评论 -
ActionScript 委托传参
package { import flash.display.Sprite; import flash.display.MovieClip; import flash.events.MouseEvent; public class Main extends Sprite { public function Main() { var mc:MovieClip=new Mo原创 2014-04-16 18:06:21 · 886 阅读 · 0 评论 -
ActionScript Tween
import fl.transitions.Tween;import fl.transitions.easing.Regular;import fl.transitions.TweenEvent;var ball:Ball=new Ball();stage.addChild(ball);/*1.要制作动画的对象2.要改变对象的属性,注意这个值为字符串3.要用何种方式去用程序补间上诉转载 2014-03-31 17:24:41 · 864 阅读 · 0 评论 -
ActionScript 不断旋转的圆
package { import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; public class Main extends Sprite { var my_x = stage.stageWidth / 2;//圆心X坐标 var my_y = stage原创 2014-03-28 10:07:53 · 913 阅读 · 0 评论 -
ActionScript 不断放大的圆
package { import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; public class Main extends Sprite { var my_x = stage.stageWidth / 2;//圆心X坐标 var my_y = stage转载 2014-03-27 17:31:33 · 946 阅读 · 0 评论 -
ActionScript拖动元件
package { import flash.display.Sprite; import flash.display.MovieClip; import flash.events.MouseEvent; public class Main extends Sprite { private var white:uint = 0xffffff; private var blac转载 2014-04-10 11:16:27 · 1066 阅读 · 0 评论