网页里flash 中的TextInput自动获取光标方法
在网页中嵌入flash(如登录界面)时,有时需要默认自动将光标移动到相应的输入框中,如果只在Application的
creationComplete事件中写textinput.setFocus(),会发现虽然输入框获得了焦点,但是并没有将光标移动到输入框,因此
无法直接在里面输入。此时,只需要在setFocus()方法调用前回调一个js方法,也可以写成如下形式:
ExternalInterface.call('function
browserFocus(){document.getElementById(\'Login\').focus();}');
其中Login为嵌入网页的flash的id,这时你会发现,光标已被默认至于你想要的那个输入框中了
相关文档:
VB显示透明FLASH效果
演示效果:
代码如下:
公共声明区域
Option Explicit
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "user32" Alias "SetW ......
用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 ......
原理;用flash把书签相关信息写入剪贴板,用VC的程序读剪切板内容,写入硬盘。当flash读书签时,直接读取txt文件。写入或删除操作,用vc的程序。
=======================flash端:
按键设计: add | bookmark | del
限制:每本txt电子书只有一个书签。
src:
button add:
on(release){
//add
System.setClipboard ......
转自: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 ......
今天有人问到了怎么只用flex前端来计算用户访问本页的次数!!
其实这不难想 ,我们需要利用类似 cookie的东西
flash 里就是 SharedObject
下面就是利用SharedObject来确定用户访问本网站的次数
多次刷新页面进行测试demo :
http://56589.5c5 ......