flex滚动字幕和图片效果
<!\[CDATA\[
*//**滚动条字幕*
**private****function** init():**void**\{
move\_up.yFrom = cs.height - 6;
move\_up.yTo = 0 - moveText.height + 6;
move\_up.repeatCount = 0; *//loop*
move\_up.repeatDelay = 0; *//loop time*
move\_up.duration = 10000; *//the time of scroll once*
move\_up.play();
\}
**private****function** move\_pause():**void**
\{
move\_up.pause(); *//pause*
\}
**private****function** move\_resume():**void**
\{
move\_up.resume(); *//start from the pause position*
\}
\]\]>
<mx:Canvas id="cs" width="100%" height="100%" left="0" top="0"
verticalScrollPolicy="off" mouseOver="move\_pause()" mouseOut="move\_resume()">
<mx:Text id="moveText" width="94%" horizontalCenter="0"
text="Ntt.cc was created br Minidxer in January of 2008 as a site dedicated to the prolification of Macromedia/Adobe Flex and JavaScript/Ajax." verticalCenter="0"
fontSize="13" color="\#aaaaaa">
</mx:Text>
</mx:Canvas>
还没有评论,来说两句吧...