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
Post a Comment