- 浏览: 1428050 次
- 性别:
- 来自: 苏州
文章分类
- 全部博客 (564)
- 算法 (7)
- 流金岁月 (1)
- Javascript (30)
- actionscript (108)
- as3.0 game (14)
- flex (84)
- fms2 (27)
- 正则表达式 (7)
- 开源组件代码(as3.0) (1)
- Pv3d (13)
- Cairngorm (4)
- vbs (54)
- VB程序设计 (26)
- 计算机应用与维护 (4)
- 职场实用穿衣技巧 (3)
- 历史风云 (15)
- 淡泊明志,宁静致远 (12)
- 情感 (26)
- 杂谈 (41)
- 越南风 (14)
- DirectX (9)
- Dev-cpp (11)
- 回望百年 (2)
- 建站经验 (2)
- Python (24)
- 网络赚钱 (4)
- php (2)
- html (1)
- ob0短址网 (1)
- ob0.cn (1)
- wordpress (1)
- pandas logistic (1)
- haxe (1)
- opencv (1)
- 微信小程序 (3)
- vue (3)
- Flutter (1)
最新评论
-
GGGGeek:
第一个函数滚动监听不起作用,onPageScroll可以
微信小程序--搜索框滚动到顶部时悬浮 -
naomibyron:
解决办法:工具 -> 编译选项 -> 编译器 ...
dev-c++中编译含WINSOCK的代码出现错误的解决方法 -
haichuan11:
这个…… 代码不全真的是让人很憋屈的感觉啊
actionScript 3.0 图片裁剪及旋转 -
chenyw101:
老兄能留个QQ号吗?具体的我有些东西想请教下你
用VB制作网站登陆器 -
yantao1943:
貌似有点问题,只派发一次事件啊
使用ActionScript 2.0或ActionScript 3.0处理音频文件的提示点(cue
写了一个Flash的Transition
package
{
import flash.display.*;
import flash.geom.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import fl.motion.BezierSegment;
public class MarsFly extends Transition
{
private var _origin_x:Number;
private var _origin_y:Number;
private var _origin_zoom:Number;
private var _origin_alpha:Number;
private var _start_x:Number = 0;
private var _start_y:Number = 0;
private var _control_x:Number = 0;
private var _control_y:Number = 0;
private var _start_zoom:Number = 2.5;
private var _start_alpha:Number = 0;
private var _bezier:BezierSegment;
/**
* @private
*/
override public function get type():Class
{
return MarsFly;
}
/**
* @private
* @param transParams - 参数zoom,alpha,x 起始点x,y 起始点y,cx 控制点x,cy 控制点y
*/
function MarsFly (content:MovieClip, transParams:Object, manager:TransitionManager)
{
super(content, transParams, manager);
_origin_x = this.manager.contentAppearance.x;
_origin_y = this.manager.contentAppearance.y;
_origin_zoom = this.manager.contentAppearance.scaleX;
_origin_alpha = this.manager.contentAppearance.alpha;
_start_x = (transParams.x)?transParams.x:0;
_start_y = (transParams.y)?transParams.y:0;
_start_zoom = (transParams.zoom)?transParams.zoom:2.5;
_start_alpha = (transParams.alpha)?transParams.alpha:0;
_control_x = transParams.cx;
_control_y = transParams.cy;
_bezier = new BezierSegment(new Point(_start_x, _start_y),
new Point(_start_x, _start_y),
new Point(_control_x, _control_y),
new Point(_origin_x, _origin_y)
);
}
/**
* @private
*/
override protected function _render(p:Number):void
{
var point:Point = this._bezier.getValue(p);
this._content.x = point.x;//this._start_x + (this._origin_x - this._start_x) * (Math.sin(p*Math.PI/2));
this._content.y = point.y;//this._start_y + (this._origin_y - this._start_y) * (Math.cos((1-p)*Math.PI/2));
this._content.alpha = this._start_alpha + (this._origin_alpha - this._start_alpha) *p;
this._content.scaleX = this._content.scaleY = this._start_zoom + (this._origin_zoom - this._start_zoom) *p;
}
}
}
调用时
import fl.transitions.*;
import fl.transitions.easing.*;
btn1.addEventListener(MouseEvent.CLICK, function (event){
TransitionManager.start(img1_mc, {type:MarsFly, direction:Transition.OUT, duration:2, easing:Strong.easeOut, x:300,y:300, cx:300, cy: 0,zoom:5,alpha:0.1});
});
btn2.addEventListener(MouseEvent.CLICK, function (event){
TransitionManager.start(img1_mc, {type:MarsFly, direction:Transition.IN, duration:2, easing:Strong.easeOut,x:300,y:300, cx:300, cy: 0,zoom:0.1,alpha:0}); });
发表评论
-
haXe是什么?
2016-01-04 10:50 1022haXe是什么? haXe是一种编程语言,官方网站在 ... -
用EA类图生成AS3代码
2008-10-15 16:18 2691EA(Enterprise Architect)是支持多种流 ... -
变形实例-source
2008-10-15 12:46 1511涂抹原理 橡皮擦原理 import flash.geom.P ... -
actionScript 3.0 图片裁剪及旋转
2008-10-10 12:54 5900package com.wdxc { /** ... -
Flash(AS3)读取Excel文件
2008-10-09 13:29 5119var excelXml:XML; var loader=ne ... -
AS3 Loading的制作方法
2008-10-09 13:28 6041AS2的时候做LOADING有很多种方法,做起来也得心应手可是 ... -
让"Flash" 写文件(AS3)
2008-09-11 16:23 1768目前,出于安全考虑Flash不支持写文件的操作,在AS3的A ... -
AS3 中的 拖动 及 碰撞 检测
2008-09-11 16:11 2915没有press和release事件 hitTest()被分尸 ... -
As和js通信问题完全解析(解决addcallback失效的问题)
2008-09-11 16:10 3620as和js通信最早用的是fscommand,这个我就不说了,老 ... -
Flash CS3制作Fla形式的组件
2008-06-16 14:45 1350本文为大家介绍如何制作Flash CS3中的[*.fla]形 ... -
AS3图像处理之剪裁、动态选取
2008-06-15 23:25 2226和师傅写C#写的思维混乱,方法变量几乎第一反应就是大写,习惯都 ... -
从界面入手 划分类
2008-06-15 19:25 1250如何将一个项目细化成各个类呢? 1 从一个项目的界面入手,按照 ... -
AS3-DisplayEffect组件
2008-06-14 20:40 2035[AS3]DisplayEffect组件【组件版本】:0.5【 ... -
KTooltip 工具提示组件
2008-06-14 20:38 1009发布一个小工具KTooltip 。这是0.9beta版,出发日 ... -
AS3.0写的一个滚动条【缓动效果】
2008-06-13 16:10 6374package { import flash.d ... -
一个简单的文本滚动条类 as3
2008-06-13 16:04 4358最近一直做会议与AS3有关项目今天花了点时间写了一个可以选择套 ... -
自定义滚动条类
2008-06-13 16:01 2063在平常的开发中,经常需要用到滚动条,今天将滚动条类整理了下,有 ... -
AS3加载机制
2008-06-13 15:03 2178摸了好一阵子,才弄明白AS3.0的加载机制.还是坚持自己的原则 ... -
JavaScript与ActionScript函数相互调用
2008-06-06 15:07 22521、在JavaScript中调用Flex( ... -
传参之事件代理
2008-06-05 10:23 1083有时候我们在调用事件侦听器的时候,需要给它传进相应的参数,这个 ...
相关推荐
Flash transition effect.
[Flash.ActionScript.3.0动画教程]
Bootstrap弹窗动画效果组件:velocity,使用方法:$("#" + modalId + " .modal-dialog").velocity("特效名称"); //特效类型: //transition.fadeIn //transition.flipXIn、... //callout.flash //callout.pulse
前面我们在使用transition制作一个简单的transition效果时,我们包括了初始属性和最终属性,一个开始执行动作时间和一个延续动作时间以及动作的变换速率,其实这些值都是一个中间值,如果我们要控制的更细一些,比如...
Whether you are a designer or developer, this book will help you work with XML and make the transition from ActionScript 2.0 to ActionScript 3.0. It will also provide you with an excellent grounding ...
这是一个插件,可以使用安装: npm install --save-dev ember-flash-message-2000 演示 你可以在这里看到基本的虚拟应用程序: 基本API {{ flash-messages }} // From within a route, controller, or ...
实现flash效果 var currslid = 0; var slidint; function setfoc(id){ document.getElementById("focpic").src = picarry[id]; document.getElementById("foclnk").href = lnkarry[id]; document.getElementById...
YUGLTransition效果的库源码,源码YUGLTransition,YUGLTransition是一个可以为UIView和UIViewController创建基于GPU过渡效果的库。YUGLTransition渲染部分使用了GPUImage。YUGLTransition包含一些现成的过渡效果,...
在你的网页里面插入一个层,并且在这个层里面导入另一个页面的URL。 Transition.mxp 设置网页背景转换效果 Save Password Login form.mxp 保留登陆的姓名和密码,并且可以为其设置保留时间。 Scrolling Status ...
With SmartFlash you can create flash interface in your applications (flash forms, menus, controls and more). SmartFlash is intended for use with: Delphi 2009, 2010, XE, XE2, XE3, XE4 C++Builder ...
在你的网页里面插入一个层,并且在这个层里面导入另一个页面的URL。 Transition.mxp 设置网页背景转换效果 Save Password Login form.mxp Download 点击下载 保留登陆的姓名和密码,并且可以为其设置保留时间。 ...
如何在一个表单内通过ToolTips来返映一个错误 15.7节. 如何使用正则表达式去定位电邮地址 15.8节. 如何使用正则表达式去验证信用卡号码 15.9节. 如何使用正则表达式来验证ISBN号 15.10节. 如何通过指定字符类...
Laszlo in Action is the first comprehensive guide to the Laszlo system and its language LZX.... The dramatic emergence of Ajax over the past year was a first step in the transition from page-oriented ...
* Learn how states can smoothly transition your application interfaces between different data displays. Put quite simply, this book is all youll need to master Flex 2 and ActionScript 3.0 application...
WebGL视频过渡这是一个使用在两个不同的视频剪辑之间生成实时过渡效果的示例。转场鞭Pan 在古老的功夫电影和( 和( 的作品中都曾见过。 通常是在相机中完成的,但这是伪造的版本。 在应用较大的方向模糊时,两个...
fsbuttonlink (url):如果用户的flashplayer版本高于(9.0.28)播放器会自动的显示一个全屏按钮。通过设置该值,你可以链接到另外的页面用以全屏显示。服务端程可以设定将要播放的文件。 id (string): 播放器的唯一...
Connect Flex to Adobe's powerful ColdFusion application server, and start to work with Flex applications powered by dynamic server-side code. * Learn how states can smoothly transition your ...
Connect Flex to Adobe's powerful ColdFusion application server, and start to work with Flex applications powered by dynamic server-side code. * Learn how states can smoothly transition your ...
Build-in picture viewer, thumbnail viewer and fullscreen slideshow with transition effects will help you to preview and manage pictures (copy, print, set as wallpaper, send by e-mail, etc.). ...
在某个时间点,这可以通过但是在某个时候,React Router遇到了重大障碍,破坏了与它的集成,而作为一种解决方法,react-transition-group团队以一种对我来说是降级,因为它们很难使事情变得可定制(它们添加了一个对...