java - How to read data from local XML file in Flex -


i have java web application contains flash part.currently .swf file reading xml file project src folder. want access xml file local file system(in c:/ drive ).how access xml data c:/ drive.currently java web application accessing same xml file c:/ drive.can pass xml data through javascript .swf file. best practice.which best practice accessing xml file local file system in flex.

any appreciated.

if swf in web application, can't access freely hard drive. there nevertheless 2 options:

filereference

with command filereference.browse(), can allow user choose file local system , load it, or upload it. if choose load it, you'll have access data bytearray.

externalinterface

externalinterface allows communicate via javascript browser. can set responder externalinterface.addcallback(). check reference example.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -