Has anyone ever gotten the LibSpark QRCodeReader library to work with Flex 4.6 
on a mobile device?

The LibSpark library I'm talking about can be found here:
www.libspark.org/wiki/QRCodeReader/en

I'm trying to get this thing to work in Flex 4.6 as part of a mobile project, 
and when I run it on the desktop emulator, it seems to work fine...  But when I 
run it on the device itself, I get the following error on line 63 of the file 
AdaptiveThresholdFilter.as

"Error #1010: A term is undefined and has no properties."

Now, I'm pretty certain this is being caused by the fact that said term should 
be imported from a file called adaptiveThreshold.pbj that is part of an Embed 
statement located earlier in the AdaptiveThresholdFilter.as file.  For whatever 
reason, said file is not being included in the package when I export the app to 
the device, and thus can't be found when I run the program on the device, and 
the app fails...

The Embed statement on line 40 looks like this:
[Embed(source="adaptiveThreshold.pbj", mimeType="application/octet-stream")]

So -- what I need is one of three things:
1) tell me how to force Flash Builder 4.6 to include that file in the packaging 
of the whole mobile app, or
2) tell me how to force Flash Builder 4.6 to actually embed the file within the 
program itself.  Is there something wrong about the above Embed statement that 
would be causing the app to look for the file during run-time? or
3) tell me I'm completely wrong in what I've assumed about this .pbj file 
embed-statement, and you've gotten this LibSpark QRCodeReader stuff to work on 
a mobile device, and you have source-code that I can look at.

Thanks for any help y'all can give,
Laurence MacNeill
Mableton, Georgia, USA


Reply via email to