【组件】控制程序的过期时间


One of the thing that is very handy useful is make a Flex Application expire in a certain period of time after 30 days or a specify counter for access and application.


手头有一件很有趣的事情就是,让自己的FLEX应用程序在一定的时间后超时,控制程序的可访问性是很有用的一个特性


Today I was reading at Flex-Brasil mail-list where a user request a kind of situation, how to limit for a certain time of period an execution of Flex application.


今天在阅读邮件列表的时候,看见了有一篇文章介绍如何控制应用程序的可访问性


Than after that he gives to me idea to develop kind of component with no existing before in the Flex community.


这让我产生了一个念头,制作一个组件,这个组件在FLEX社区绝对没有出现过,那就是控制程序的过期时间


It's pretty simple enough the component and works like a charm, you define how much of time this application will be used, than choose your own message to alert the user the application request already take too much time to be executed.


这个组件很好用,比起你自己来完成这一切,这是在是太令人感动了


Download and Instalation.
First download the .swc . Then put inside the lib folder of your Flex Builder 3.


How to usage?


用法:下载SWC文件将其放置到FLEX BUILDER3的目录下



XML:




  1. PrintText="Application Expired!"/>


Available properties:可用的属性


TimeToUse:int - represents the quantity of views that SWF will works.


可用时间:代表了这个FLEX应用能够被访问的实效


ContactInfoForSupport:String - represents the contact information after the expiration shows up.


支持信息:代表了过期后显示的联系信息


PrintText:String - The message you want to display to the user.


提示信息:


Requirements


I've tested only in Flex 3 beta 3. Don't know if is compatible with Flex 2 or earlier versions.FLEX3通过测试,其他版本的测试尚不知道


Bug and questions?


Please reply with comments. Also if you want do donate I much appreciate.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值