佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1639|回复: 4

简单的 fade in fade out, script 做的到吗?

[复制链接]
发表于 13-3-2008 12:45 PM | 显示全部楼层 |阅读模式
我再 timeline 里做了这个简单的 fade in fade out effect
但我手里要放很多 照片,如果我用我的方法
1 张照片 播放 3 秒,100张 就的 300秒(5分钟)
我的timeline 里 就很长了

试问各位 可以用script 写吗 (read from library or file or ....)
以后更改 照片也容易一点

http://ice.ueuo.com/sample.html
回复

使用道具 举报


ADVERTISEMENT

发表于 13-3-2008 11:56 PM | 显示全部楼层
可以做到,应该也有的download source file。

keyword 是 dynamic photo gallery. 就用google找找吧。
回复

使用道具 举报

 楼主| 发表于 14-3-2008 03:55 PM | 显示全部楼层
有 keyword "dynamic photo gallery" 就比较容易找
谢谢你
回复

使用道具 举报

发表于 15-3-2008 01:47 AM | 显示全部楼层
MovieClip.prototype.fade = function(i:Number) {
        delete this.onEnterFrame;
        if(this._alpha != i) {
                this.onEnterFrame = function() {
                        this._alpha += (i - this._alpha) * 0.3;
                        if(Math.ceil(this._alpha) == i) {
                                this._alpha = i;
                                delete this.onEnterFrame;
                        }
                }
        }
}


mc.fade(0); //參數 0 ~ 100
回复

使用道具 举报

 楼主| 发表于 18-3-2008 10:09 AM | 显示全部楼层
原帖由 super-tomato 于 15-3-2008 01:47 AM 发表
MovieClip.prototype.fade = function(i:Number) {
        delete this.onEnterFrame;
        if(this._alpha != i) {
                this.onEnterFrame = function() {
                        this._alpha += (i - this._alpha) * 0.3;
                        if(Math.ceil(th ...


超级番茄
我沉水一段时间了 没想到 出水时有见到你了
谢谢 你的 sample, 等下我会试一试

但是 你和我的 编写 方式 是不同等级的

[ 本帖最后由 旌洋-君 于 18-3-2008 10:18 AM 编辑 ]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 2-1-2026 12:44 AM , Processed in 0.128974 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表