文章分类 | 推荐文章 | 最新文章 | 热点文章 | 最新软件 | 精品软件 | 下载排行 | 推荐下载 | 免费看大片 | WPS | 杀毒软件
清风网络
首 页 软件下载 网络学院 数码学院
QQ 电脑入门 游戏 操作系统 图形处理 办公软件 媒体动画 精文荟萃 工具软件 网络编程 程序开发 网络技术 认证考试 网站建设 文章专栏
当前位置:清风网络学院媒体动画DirectorLingo应用之repeat while
精品推荐
特别推荐
·Director中几种Scirpt
·【Director教程】属性列表应用一则
·用Director制作不规则窗口
·Director 动画技术
·Director 3D 基础(之五)
·DIRECTOR去背技法步步高
·director应用技巧
热点TOP10
·Director MX 2004教程-- Director MX 2004简介
·Director MX 2004教程--导入演员
·用Director制作不规则窗口
·Director MX 2004教程--为什么选择Director
·Director MX 2004教程--Director MX 2004都支持些什么?
·Director Lingo 语言入门(1)
·Power Director 3快速上手
·Director 动画技术
·director应用技巧
·Director Lingo 语言入门(7)
·Director Lingo 语言入门(2)
·Director MX 2004教程--常用多媒体编著软件
·Director Lingo 语言入门(9)
·DIRECTOR去背技法步步高
·Director 3D 基础(之五)
·Director MX 2004教程--用Lingo语法和JavaScript实现同一功能
·Director MX 2004教程--创建一个新电影
·Director Lingo 语言入门(5)
·Director Lingo 语言入门(8)
·Director 8.5 简单基础实例教程(八)

Lingo应用之repeat while

日期:2007年7月4日 作者: 查看:[大字体 中字体 小字体]



  Lingo应用之repeat while
    repeat while (条件式循环)


播放,以上示例,需下载此插件。 点击下载插件

语法:

repeat while 条件式

命令句 1
命令句 2
命令句 3
...

end repeat

说明:

反复执行 repeat while 及 end repeat 间的命令行,直到条件式的值为真时退出循环

--------------------

the rect of sprite (矩形值)

语法:
the rect of sprite spriteNumber

说明:
存取 sprite 的 bounding box 的左,上,右,下的值

示例:
在 message window 检测图象 sprite 1 矩形边的值
put the rect of sprite 1

--------------------

inflate

语法:
inflate (任何rect,宽度的改变值,高度的改变值)

说明:
改变 rect 的大小,其大小的改变为改变值的两倍

示例:
inflate ( rect ( 0 , 0 , 100 , 100 ), - 10 , - 10 ) --原來的矩形长宽各为 100

rect ( 10 , 10 , 90 , 90 ) --inflate后的矩形长宽各为 80

--------------------
范例: 改变图片的大小

效果:

放置一個变大的按钮及一個变小的按钮,再放置一张图片在舞台上,当变大及变小按钮按住不放时,图片持续变大或变小

制作步聚:

1. 放置一张图片在 Channel 1,在 Channel 2、3 插入两个 Push Button 分别起名为变大和变小

2. 在 Frame 中加入 go to the frame 语句使之循环播放

3. 选择"变大"按钮,设置 Lingo,如下所示

on mouseDown
repeat while the mouseDown
set the rect of sprite 1 = inflate ( the rect of sprite 1 , 1 , 1 )
updateStage
end repeat
end

4. 选择"变小"按钮,设置 Lingo,如下所示

on mouseDown
repeat while the mouseDown
set the rect of sprite 1 = inflate ( the rect of sprite 1 , - 1 , - 1 )
updateStage
end repeat
end

相关附件

(出处:清风网络学院






上一篇:常见的Director MX 2004全屏问题

下一篇:Director FAQ

Lingo应用之repeat while 相关文章:
·ASP.NET:Repeater控件的详解
·使用嵌套的Repeater控件
·真没想到VB也可以这样用之指针技术
·Director Lingo 语言入门(1)
·网络安全应用之VPN技术详细说明
·Photoshop画笔应用之工具预设
·JFC/Swing活学活用之JLabel文字魔法
·Director Lingo 语言入门(7)
·Director Lingo 语言入门(2)
·Google Picasa应用之博客篇
Lingo应用之repeat while 相关软件:
·杰克.韦尔奇与通用之路
·LingoWareV4.42 简体中文版

特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
[打印本页] [关闭窗口] 转载请注明来源:http://www.vipcn.net
| 帮助(?) | 版权声明 | 友情连接 | 关于我们 | 信息发布
Copyright 2007 www.vipcn.net All Rights Reserved. 鄂ICP备05000083号Powered by:viphot