其他语言

本类阅读TOP10

·基于Solaris 开发环境的整体构思
·使用AutoMake轻松生成Makefile
·BCB数据库图像保存技术
·GNU中的Makefile
·射频芯片nRF401天线设计的分析
·iframe 的自适应高度
·BCB之Socket通信
·软件企业如何实施CMM
·入门系列--OpenGL最简单的入门
·WIN95中日志钩子(JournalRecord Hook)的使用

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
[Flash]*a typing effect

作者:未知 来源:月光软件站 加入时间:2005-5-13 月光软件站

yesterday very night,a guy call me on the QQ and ask how to make this effect,but it's such a long time since I use Flash last time,so I anwser that maybe frame by frames will fit u,But when I was on bed,i have a comand of myself to try it out,at least in mind,so today I'mhere programming now ,and blows are my codes:

import mx.controls.Label;
import mx.controls.Button;
import mx.controls.TextInput;
createClassObject(TextInput,"input",4{text:""});
createClassObject(Label,"lab",3{text:" "});
createClassObject(Button,"btn",2,{label:"Oops"});

btn.onPress = function() {
 var n = 0;
 var s:String = input.text;
 var ID = setInterval(showText, 1000);
 function showText() {
  n++;
  lab.text = s.substr(0, n-1);
  trace("ok"+s.substr(0, n-1));
  if (n>=s.length+1) {
   clearInterval(ID);
  }
  updateAfterEvent();
 }
};

~~~~~~~~~~~~~~~I HOPE IT WILL WORK JUST FINE ~~~~~~~~~~~        WILLIAM YUAN我是客傢人




相关文章

相关软件