Flex 文本内容循环滚动效果
来源:互联网 发布:魔镜街拍vip淘宝 编辑:程序博客网 时间:2024/05/06 12:38
- <?xml version="1.0" encoding="utf-8"?>
- <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
- creationComplete="complete()" viewSourceURL="srcview/index.html">
- <mx:Script>
- <![CDATA[
- private function complete():void
- {
- move_up.yFrom = cs.height - 6;
- move_up.yTo = 0 - tt.height + 6;
- move_up.repeatCount = 0; //loop
- move_up.repeatDelay = 0; //loop time
- move_up.duration = 6000; //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:Script>
- <mx:Move id="move_up" target="{tt}" />
- <mx:Panel width="250" height="200" layout="absolute" title="Anouncement"
- fontSize="13" horizontalCenter="0" verticalCenter="0">
- <mx:Canvas id="cs" width="100%" height="100%" left="0" top="0"
- verticalScrollPolicy="off" mouseOver="move_pause()" mouseOut="move_resume()">
- <mx:Text id="tt" width="94%" horizontalCenter="0"
- text="Ntt.ccwas created br Minidxer in January of 2008 as a site dedicated to theprolification of Macromedia/Adobe Flex and JavaScript/Ajax." verticalCenter="0">
- </mx:Text>
- </mx:Canvas>
- </mx:Panel>
- </mx:Application>
这个效果以前看过,以为记住了,结果又忘了,是用的move这个标签的属性,在此记载,以前自己做过一个滚动的效果,是用的textarea中的滚动条的值做的,感觉不好,这个终于找到了。
(From)
http://ntt.cc/2008/04/14/simple-tips-to-realize-the-marquee-effect-in-flex-with-source-code.html
- Flex 文本内容循环滚动效果
- JS实现文本内容上下滚动效果
- 鼠标经过链接文本内容滚动效果
- 文本内容超过TextView的长度时,实现文本内容水平滚动效果
- 文本滚动效果
- UIPickerView 内容循环滚动
- 循环滚动得效果
- 图片循环滚动效果
- Web_JavaScript_JS循环滚动效果;
- 图片循环滚动效果
- Android 文本内容滚动显示
- 文本滚动效果 [已实现]
- WindowsPhone8 实现文本滚动效果
- android 实现在文本内容超过固定宽度可手动左右滚动查看效果
- Flex 字幕滚动效果 网站公告效果
- 基于jquery循环滚动效果
- js文字循环滚动效果
- NGUI 相片循环滚动效果
- POC [Proof of Concept] 原型 / 概念证明
- 急求高手写个简单算法,线上等
- 什么是webservice
- Struts中Tiles标签简介
- .net下帮助文件生成程序对比(NDoc、Sandcastle、Sandcastle Help File Builder)
- Flex 文本内容循环滚动效果
- -1和0xFFFFFFFF
- 递归创建文件和文件夹
- 奇怪的Timer Service问题。
- 好人!谁能修改一下这个顺序表类的实现问题!急!
- Linux 2.4.x内核软中断机制(转)
- 我开源了(兼结束“OGREFont的研究与OGRE的中文显示”系列)
- 什么是报文交换?
- F7增加值改变事件。