flash 小技巧

      flash 2003-10-13 18:56
转自http://www.blogcn.com/User3/magicwind/index.html

#authoring
trace( "this should never execute!") ;
#authoring 可以取代/* */ 不过不实用

function photoTransition(mc:MovieClip) {
mx.transitions.TransitionManager.start(mc, {type:mx.transitions.Photo, direction:0, duration:5, easing:mx.transitions.easing.None.easeNone, param1:empty, param2:empty}) ;
}
var cmc;
cmc = photoTransition(mc) ; 在场景中命名一个叫"mc"的movie clip,你会看到flash 2004中的transaction animation。

i=6;
while (i--) {
//do action here
trace("countdown "+i) ;
}
你可以这样使用while循环,但记住i不要为负数。

( x == 1) ? trace( "x == 1") : trace( "x != 1") ;
这种语法在c和java里常有,简单明了。

标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}

注册5D通行证,立刻拥有自己的博客发表留言

用户:  密码: 匿名
内容:
加粗 下划线 文本颜色 居中 插入链接 建立Google搜索链接 插入图片 引用文本
 
汗 喜欢 骄傲的笑 哭 酷! 愤怒 黑线 什么? 猥琐 偷笑 无语 晕 吃惊 诱惑
smile frown redface biggrin wink rolleyes mad eek 禁止笑脸转换
zoom inzoom out
验证: checkcode 换一个