[Air ANE Java]How use FREObject in Thread? -
i want new thread load file.when complete call dispatchstatuseventasync , push frebytearray.but trigger frewrongthreadexception.
only single thread?
you can use fre* functions on main thread except dispatch status event function. normal process background operations following:
- trigger working thread frefunction
- store data in native types
- dispatch status event when working thread complete
- call frefunction retrieve native data freobjects
any conversions between native , freobjects have done on main thread try keep minimum.
michael
Comments
Post a Comment