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的目录下
-
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.