易截截图软件、单文件、免安装、纯绿色、仅160KB

flash网站计数器 基于sharedObject

今天有人问到了怎么只用flex前端来计算用户访问本页的次数!!
其实这不难想 ,我们需要利用类似 cookie的东西   
flash 里就是 SharedObject  
下面就是利用SharedObject来确定用户访问本网站的次数
多次刷新页面进行测试demo :  
     http://56589.5c5c.info/swf/sharedObject.html
直接复制到你的 flash里测试:
/*注: sharedObject文件保存在
C:\Documents and Settings\Administrator\Application Data\Macromedia\Flash Player\#SharedObjects\您的计算机名\
*/
import flash.net.SharedObject;
import flash.text.TextField;
//显示文本
var showText:TextField= new TextField();
addChild(showText);
showText.x=200;
showText.y=150;
var so:SharedObject = SharedObject.getLocal("flashCookie","/",false);
if(!so.data.times){ //如果times未设置,则进行设置
    so.data.times=1;//设置次数
    }
else{
    ++so.data.times;   
   
    }
   
    so.flush();
    showText.htmlText="<bold>您已访问本页"+"<strong>"+so.data.times+"</strong>"+"次</bold>";


相关文档:

flash插入页面后在IE下stageWidth为0的bug

用SWFObject,将swf文件嵌入网页后,在IE浏览器中首次浏览正常,刷新后,stageWidth就为0了,swf中基于stageWidth定位的元素,就会错乱。
转自(ljhzzyx 2009-09-24 14:44:20)
首先区分一下stage的stageWidth和width属性。stage.stageWidth是flash player的宽度,stage.width是指stage里content的宽度,如果这个舞台(sta ......

解决div被flash遮挡问题


很多时候,当你有一个层是需要漂浮在页面之上显示的时候,而你的页面里又存在FLASH,这个时候,漂浮层会被FLASH遮挡住,那么解决办法就是给FLASH设置透明属性。
添加参数<param name="wmode"
value="transparent"> 
//可很好的被IE浏览器所支持
将 wmode="transparent"
加 ......

u boot 1.3.2 run in flash for at91rm9200

主要目的:移植u-boot-1.3.2到K9开发板,使其直接从FLASH

动,而不是通过boot.bin和u-boot

缩文件
启动。实现u-
boot的非压缩式的从FLASH的0x10000000地址处直接启动。
硬件资源:K9开发
板                  &n ......

在线制作FLASH,图片的网站集合

1. 首先说下中文网站:
     
 一: http://pic.sdodo.com/   
      这家可以做FLASH,大头贴以及一些常用的图片处理手法而且简单的狠!
    
 二:http://www.igogo8.com/
     这家主要是闪 ......

Install Ubuntu 10.04 LTS on a USB Flash Memory

转自:http://www.tutorialized.com/view/tutorial/Install-Ubuntu-10.04-LTS-on-a-USB-Flash-Memory/58358
Since the new release of Ubuntu 10.04 LTS came out i decided to make a
quick guide of how to Install Ubuntu 10.04 LTS on a USB Pendrive.
[While reading this tutorial
remeber some bios may be di ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号