dizzot / nativeapplicationupdater

Automatically exported from code.google.com/p/nativeapplicationupdater
0 stars 0 forks source link

0.0.2 StringUtil reference #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using this class in an AIR app written in AS3 rather than Flex. It worked 
great with 0.0.1, but with the new version, I'm getting the following error:

ReferenceError: Error #1065: Variable mx.utils::StringUtil is not defined.
    at com.riaspace.nativeApplicationUpdater::NativeApplicationUpdater/updateDescriptorLoader_completeHandler()[/Users/pwalczys/Projects/NativeApplicationUpdater/src/com/riaspace/nativeApplicationUpdater/NativeApplicationUpdater.as:240]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()

From what I understand, mx.utils.StringUtil does not exist for AS3. I'm also 
using as3corelib, and changing line 28 from

    import mx.utils.StringUtil;

to

    import com.adobe.utils.StringUtil;

fixes the problem.

I think you should consider including the StringUtil class from the as3corelib 
instead of using mx.utils.StringUtil.

Original issue reported on code.google.com by bradberg...@gmail.com on 31 Aug 2010 at 7:32

GoogleCodeExporter commented 9 years ago
This is good point I will change that, to either as3corelib or will find other 
solution.

Original comment by Piotr.Walczyszyn on 31 Aug 2010 at 8:47

GoogleCodeExporter commented 9 years ago
This is fixed in 0.0.3 version that I just published

Original comment by Piotr.Walczyszyn on 1 Sep 2010 at 11:19