Go Back   OpenLaszlo Developers Forums > Programming in OpenLaszlo > General OpenLaszlo Programming

General OpenLaszlo Programming Questions and discussions about coding in OpenLaszlo. Please include the release of OpenLaszlo you are developing in.

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-13-2011, 07:16 PM
lixucheng lixucheng is offline
Community Member
 
Join Date: Feb 2009
Posts: 2
lixucheng is on a distinguished road
how to use FileReferenceList

Hello all,

May be anybody know how to use FileReferenceList in Laszlo? The source code as below:
==================================================
<button text="upload file">
<passthrough>
import flash.events.Event;
import flash.net.FileReference;
import flash.net.FileReferenceList;
</passthrough>
<handler name="onclick">
var fileRef:FileReferenceList = new FileReferenceList();
fileRef.addEventListener(Event.SELECT, selectHandler);
fileRef.browse();
</handler>
<method name="selectHandler" args="event">
Debug.write("on select..");
</method>
</button>
================================================== ===

When I select files from file select dialog box, the method of selectHandler do not be invoked. Somebody can help me? Thanks in advance.
Reply With Quote
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:15 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.