"Shading" packages qnx.*

A different PlayBook related but effectively generic AS3 question for the experts:

Is this possible in ActionScript3 of components of "shadow" in the standard namespaces?  I use the term "shadow" in the sense of "replace/overwrite with another with the same name and signature, so all calls to the original go to the replacement.

This is entirely feasible and common for the purposes of testing in the Python world, because everything is dynamic.  You can replace, for example, the "time.sleep ()' by your own function, so that any code (your own, or even the code of the standard library) time.sleep () of appeals (which normally blocks for the specified number of seconds) to go to your function instead, which can do whatever, including return instantly, or changing the duration of sleep etc.

If it was possible in AS3, I imagine it would be quite possible to create a library of qnx.* of replacement for some of the elements that are not supported out of the Simulator.  Things like qnx.pps.PPSChannel, for example...

Does anyone know if this is possible and if yes, how would you do?  (I suspect that it is not possible for some reason any, because if it were then I think we would see a person having already and by releasing the package in open source.)

Peter,

There are a few options but without the source of its pretty much a shot in the water. I have advanced and tried a method and it worked for the classes that the error because of the PPSChannel. Basically, I added a qnx.pps.PPSChannel class for my project and did nothing then the error would go far.

Again, this will affect the functionality of QNX classes but it gives you at least the possibility to give the page/interface design user on the desktop instead of publish a bunch of times on the Simulator.

Here's the full entry on how do:

http://Renaun.com/blog/2011/02/workaround-for-ppschannel-error-when-running-QNX-PlayBook-specific-AP...

Tags: BlackBerry Developers

Similar Questions

  • problem importing qnx.display

    I can't seem to import the package qnx.display for IowWindow assistance for an alert dialog that I want only appear in my application and without the IowWindow the alert takes longer and pretty much freezes the Simulator... I was wondering if there was something I had to do it... I also work in a mxml file idk if this has something to do with it

    NVM... I forgot to add libs/air

  • Using the two PB 2.0 + SDK & BB10 Air SDK in Flash Builder 4.6

    Hello

    Any of you have experience creating applications using the PB2 + and BB10 Air SDK in Flash Builder? How do you change the build configuration between two SOFTWARE development kits? So let's say you make apps for Playbook and at the same time you are doing apps for BB10...

    Where do you set your IDE with these settings?

    Looking forward to your answers.

    There is essentially only one way to do it: you first install the 2.0 + SDK, then the BB10 Beta SDK. This is how you make sure that you have the data of these two software development kits installed on your pc. The Flash Builder plugin will be the BB10 sdk.

    I tested some of the components of the SDK BB10 on PlayBook OS 2.0.1. Needless to say that some features are not supported.
    Note: When I talk about libraries and 'ane's, I mean those provided by the SDK BB10. The following findings are valid with a pre-BB10 PlayBook OS 2.0.1 is the last one I think. PlayBook OS 2.1 can be considered BB10, although some features don't work there either.
    Here's what I found: you can use fuse controls, but the classes in the package "qnx.fuse.ui.dialog" do not work because the classes in the package "qnx.fuse.ui.window" do NOT work.
    You cannot use "QNXDevice.ane" because "NavControl" class which is indispensable to the actions of the bezel does not work and the notifications do not work either.
    If you use "fuse" components, you must also use 'QNXSkins.ane '.
    The "QNXLocale.ane" does not work. 'QNXNetwork.ane' no test however. The framework of the call does not work.

    Phew, that was some writing. If I missed something or you have any other questions, feel free to ask.

  • NetworkManager missing in the SDK

    I found a very important in the Documentation package: qnx.net-, but it is absent in the development kit SDK is available now... I think it's sort of a misunderstanding.

    It is in the QNXNetwork.ane that is included in the SDK. It is not added by default with other libraries because Flash Builder doesn't support auto, adding files to the DONKEY.

  • Capture and display of errors

    Hello world

    I have 3 questions:

    1. How can I check if the user has pressed the button submit without entering any data?

    2. is there a way to ensure that the user enters only a certain type of data into a single number of field for example?

    3. after finding an error how can I tell the user "you entered X bad. Please change ". Is there some sort of a pop up function in AS3 that can do?

    Thank you.

    1. on the callback function when the button is pressed, check that the required values have something in them.  For example:

    If (this.username.text == ")

    {

    display alert

    return;

    }

    2. for the fields of text on the textField, you can restrict the keys that are allowed.  If you just want you would with numbers:

    this.username.textField.restrict = ' 0-9'; Only numbers

    If you want to also decimal,

    this.username.textField.restrict = '. 0-9 ";

    3. place an alert.  Alerts only work in the Simulator.  If you want alerts for work in the AIR, I heard there is a magnificent library that mimics the package QNX alert that you can download and use.  Simple alert is like this:

    var alert: AlertDialog = new AlertDialog()

    Alert.title = 'error ';

    Alert.message = ' you have entered wrong x.  Please change ";

    alert.addButton ('OK');

    Alert.Show ();

  • QNX Momentics error: package failed: 2

    When you try to run a version of my device BB 10 via QNX Momentics, I get this error:

    Package failed: 2
    Info: Package created: C:... (the path)

    [ERROR] Unable to parse the attribute: \n

    When you try to start a debugging session, I get a similar error:

    Error in the final launch sequence
    Impossible to prepare and upload the binary file
    Package failed: 2

    Info: Package created: C:... (the path)

    [ERROR] Unable to parse the attribute: \n

    I'm looking through my race setups, but I can't find anything wrong. I searched on this forum. the Momentics help section and the web, but can't find anything that explains how to fix the error.

    Thank you.

    Found what was wrong. There was a newline character in the description field in the file descriptor bar * sigh *.

  • Could not import the qnx package

    Hi all.

    I downloaded the SDK of the Tablet OS... I started playing with development PlayBook, but I seems I can't import QNX package for use in Actionscript...

    Any thoughts?

    Thank you

    P.S.: using Flash Builder 4.5

    A quick search forum came up with this solution:

    http://supportforums.BlackBerry.com/T5/Tablet-OS-SDK-for-Adobe-Air/unable-to-import-QNX-libraries-FB...

  • Error on the packaging: error 103: application.qnx is an unexpected element/attribute

    Hi all

    A week ago, I sent my application the second time signed, now I do this third time because accidentally I sent the request with the word "debug" on the icon.

    I'm trying to do anything with the process of signing using the excellent How - to's here here , but unfortunately I'm stuck on the first step, when I try to package I have strange error "error 103: application.qnx is an unexpected element/attribute" on the file my - app.xml.

    What is c? What should do?

    Thank you very much

    Because you have qnx tag in the file. Remove and everything in it - this tag and content belongs to blackberry - tablet.xml. Validator of Adobe (which gives you an error) air does not recognize as a first class citizen, then put all of the additional tags in the additional xml file.

  • Installed Vista Update 1 package and now windows will not start

    I have a laptop Acer Aspire 4520 with a 32-bit system 64 x 2 dual core processor with Windows Vista Home Premium and just installed explorer8 updates Vista I get the package. Installed successfully, took about 45 minutes. Tells me to restart my computer. Click on restart. It restarted with goin' through bunch of # s as the first part 24 390 / 74 280 in growing in order to achieve the final number that it stopped at about 34 761 or something like that for over an hour.  I assumed that it froze. I did a hard closed down and after reboot door top, unable to start Windows.  A recent hardware or software change might be the cause and options to start windows normally or start the reboot system (recommended).  I chose normally, microsoft corporation logo came on screen with progress/cargo in addition to this box, and then it turns off and rebooted itself.  This time I chose the launch startup repair and he went to remove some threads or something and add as 9 things that did not file names.  He said he was doing a CLNDSK?  It was the only time he's done this. Now, either you the hit button brings up a blue screen that says "a problem has been detected and windows has been shut down windows to avoid damaging your computer."  If this is the first time you've seen this stop error screen, restart your computer.  If this screen appears again, follow these steps: ensure that new anuy hardware or software is properly installed.  If it is a new installation, ask your hardware manufacturer or software, the windows updates, you might need.  If problems continue, disable or remove any newly installed hardware or software.  Disable the BIOS memory options such as implementing caching or shading.  If you need to use Safe Mode to remove or disable components, restart your computer, press F8 to select advanced startup options, and then select Safe Mode.  Technical information: * STOP: 0x0000C1F5 (0x00000000, 0x00000000, 0 x 0000000 0x00000000) is once again this whole message on a blue screen in which you can proceed to any other, but to stop the machine.  I even tried the advanced, including Boot Options: repair your computer, safe mode, safe mode with networking, safe mode with command prompt Mode Mode Mode, boot logging, enable video low resolution (640 x 480), last good known Configuration (Advanced), Directory Services Restore Mode, Debug Mode and start Windows normally.  Disable the automatic restart on system failure works.  Another option is the F2 key on startup.  I CAN'T go near a window to start it's totally out!  And I do NOT have a disk of Vista, that it came with it.  Need solutions before I go out my hair.  (Good operating system until the download and I only downloaded this because I download Adobe Flash Player 11.2 problems and I thought about updating my Windows can help)  Ready to take this computer back unless it is quickly fixed.

    .. .just for a future heads up what should I update on a new system from Microsoft.

    All the day of security offered by Windows Update/Automatic Updates. See http://windows.microsoft.com/en-us/windows7/Updating-your-computer

  • Cannot package App when upgrade webworks 1.0.2.9

    I could package app within the ripple with webworks 1.0.0.17, but failed for packing when upgrade to 1.0.2.9.

    Got the msg of error as below. I hope someone can help. Thank you.

    I use win7 64 bit, installed 1.6e 64-bit java, ripple v0.9.10.

    Because of Java veriosn?

    =====================

    departures:
    C:\Users\feng75\AppData\Local\Google\Chrome\User Data\Default\Extensions\cnijnna
    imeaacneklcndcafbnkeicckh\0.9.10_1\services\node\node_modules\rbd>"C:\Program Fi
    les\Research in Motion\BlackBerry 10 1.0.2.9\dependencies\node\node WebWorks SDK
    .exe""C:\Program research in Motion\BlackBerry 10 SDK WebWorks 1.0.2.9\li
    b\bbwp.js' 'C:\BBProj\output/iLoveCook.zip' o 'C:\BBProj\output' d

    2012-10-09 17:05:26 GET/ripple/build_status/3993 200
    2012-10-09 17:05:27 GET/ripple/build_status/3993 200
    2012-10-09 17:05:27 GET/ripple/build_status/3993 200
    2012-10-09 17:05:28 GET/ripple/build_status/3993 200
    2012-10-09 17:05:28 GET/ripple/build_status/3993 200
    2012-10-09 17:05:29 GET/ripple/build_status/3993 200
    2012-10-09 17:05:29 GET/ripple/build_status/3993 200
    2012-10-09 17:05:30 GET/ripple/build_status/3993 200
    out: source application Populating [INFO]

    2012-10-09 17:05:30 GET/ripple/build_status/3993 200
    2012-10-09 17:05:31 GET/ripple/build_status/3993 200
    2012-10-09 17:05:31 GET/ripple/build_status/3993 200
    2012-10-09 17:05:32 GET/ripple/build_status/3993 200
    2012-10-09 17:05:32 GET/ripple/build_status/3993 200
    2012-10-09 17:05:33 GET/ripple/build_status/3993 200
    2012-10-09 17:05:33 GET/ripple/build_status/3993 200
    2012-10-09 17:05:34 GET/ripple/build_status/3993 200
    2012-10-09 17:05:34 GET/ripple/build_status/3993 200
    2012-10-09 17:05:35 GET/ripple/build_status/3993 200
    out: [INFO] Parsing config.xml

    out: [WARN] build ID defined in the file config.xml [version], but the signature key file was not
    t found: author.p12

    out: [WARNING] build ID defined in the file config.xml [version], but no signature password was
    provided [-g]. Bar will be unsigned

    out: [WARNING] can't find the feature with id: blackberry.message.sms

    out: [WARNING] can't find the feature with id: blackberry.ui.menu

    out: [WARNING] can't find the feature with id: blackberry.system.event

    out: [WARNING] can't find the feature with id: blackberry.app.event

    out: build output files [INFO]

    out: [WARNING] can't find the debugging token

    2012-10-09 17:05:35 GET/ripple/build_status/3993 200
    2012-10-09 17:05:36 GET/ripple/build_status/3993 200
    2012-10-09 17:05:36 GET/ripple/build_status/3993 200
    2012-10-09 17:05:37 GET/ripple/build_status/3993 200
    2012-10-09 17:05:37 GET/ripple/build_status/3993 200
    2012-10-09 17:05:38 GET/ripple/build_status/3993 200
    out: [ERROR] java.lang.UnsupportedClassVersionError: com, qnx, bbt, nativepackage
    r/BarNativePackager (unsupported major.minor version 50.0)

    out: [INFO] at java.lang.ClassLoader.defineClass0 (Native Method) at java.
    lang. As ClassLoader.defineClass (unknown Source) at the java.security.SecureClassLoad
    er.defineClass (unknown Source) at java.net.URLClassLoader.defineClass (unknown S
    ource) to $100 (unknown Source) at the java.net.URLC java.net.URLClassLoader.access
    lassLoader$ 1.run (unknown Source) at the java.security.AccessController.doPriv
    inhabitants (Native method) at java.net.URLClassLoader.findClass (unknown Source)
    at java.lang.ClassLoader.loadClass (unknown Source) at the Sun.misc.Launcher$appclassloader$ App
    ClassLoader.loadClass (unknown Source) at java.lang.ClassLoader.loadClass (exercise
    WN Source)

    out: [INFO] at java.lang.ClassLoader.loadClassInternal (unknown Source)

    2012-10-09 17:05:38 GET/ripple/build_status/3993 200
    out: [INFO] Exception in thread "main".

    out: [ERROR] Native package exception has occurred

    2012-10-09 17:05:39 GET/ripple/build_status/3993 200
    out: [WARNING] can't find the debugging token

    2012-10-09 17:05:39 GET/ripple/build_status/3993 200
    out: [ERROR] java.lang.UnsupportedClassVersionError: com, qnx, bbt, nativepackage
    r/BarNativePackager (unsupported major.minor version 50.0)

    out: [INFO] at java.lang.ClassLoader.defineClass0 (Native Method) at java.
    lang. As ClassLoader.defineClass (unknown Source)

    out: [INFO] at java.security.SecureClassLoader.defineClass (unknown Source)
    at java.net.URLClassLoader.defineClass (unknown Source) at the java.net.URLClassLoad
    St. $100 (unknown Source) at the java.net.URLClassLoader access$ 1.run (Unknown Source)
    at java.security.AccessController.doPrivileged (Native Method) at java.
    NET. URLClassLoader.findClass (unknown Source) at the java.lang.ClassLoader.loadCla
    SS (unknown Source) at the Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (Unknown So
    extended) at java.lang.ClassLoader.loadClass (unknown Source) at the java.lang.Cla
    ssLoader.loadClassInternal (unknown Source)

    out: [INFO] Exception in thread "main".

    out: [ERROR] Native package exception has occurred

    2012-10-09 17:05:40 GET/ripple/build_status/3993 200
    Built
    error response - {"code": 1, "msg": "[ERROR] java.lang.UnsupportedClassVersionErr}
    or: com/qnx/bbt/nativepackager/BarNativePackager (unsupported major.minor versio
    50.0 n) \n [INFO] java.lang.ClassLoader.defineClass0 (Native Method) \tat ja \tat
    java.security.SecureClassLoa \tat va.lang.ClassLoader.defineClass (unknown Source)
    der.defineClass (unknown Source) \tat java.net.URLClassLoader.defineClass (unknown
    (Source), $100 (unknown Source) java.net.URLClassLoader.access \tat \tat java.net.URLC
    java.security.AccessController.doPrivileged \tat lassLoader$ 1.run (unknown Source)
    (Native Method), java.net.URLClassLoader.findClass (unknown Source) \tat \tat java.l
    Ang. Sun.misc.Launcher$appclassloader$ AppClassLoader.l \tat ClassLoader.loadClass (unknown Source)
    oadClass (unknown Source) \tat java.lang.ClassLoader.loadClass (unknown Source) \n [I
    NFO] \tat java.lang.ClassLoader.loadClassInternal (unknown Source) \n [INFO]
    [' Exception in thread Buda "occurred\n \n[ERROR] exception Native Packer [WA
    RN] could not find debugging token\n [ERROR] java.lang.UnsupportedClassVersionEr
    MMR: com/qnx/bbt/nativepackager/BarNativePackager (unsupported major.minor version
    on 50.0) \n [INFO] \tat java.lang.ClassLoader.defineClass0 (Native Method) \tat j
    ava.lang.ClassLoader.defineClass (unknown Source) \n [INFO] \tat java.security.S
    java.net.URLClassLoader.defineC \tat ecureClassLoader.defineClass (unknown Source)
    Lass (unknown Source) \tat java.net.URLClassLoader.access$ 100 (unknown Source) \tat
    java.security.AccessController java.net.URLClassLoader \tat $1.run (unknown Source)
    .doPrivileged (native Method) \tat java.net.URLClassLoader.findClass (unknown source
    (e) \tat java.lang.ClassLoader.loadClass (unknown Source) \tat Sun.misc.Launcher$appclassloader$ App
    ClassLoader.loadClass (unknown Source) \tat java.lang.ClassLoader.loadClass (Unknow
    Source n) \tat java.lang.ClassLoader.loadClassInternal (unknown Source) \n [INFO]
    Exception in thread Buda ' \n[ERROR] occurred\n exception Native packer. "
    {'data': null}
    2012-10-09 17:05:40 GET/ripple/build_status/3993 200

    ==================

    solved. updated JRE 1.6 (win32) then fine.

  • How to package a native application and install it on a PlayBook?

    I've seen links to download an emulator and test applications here, but I have a physical device and test this way.

    What should I do to package a native application built for BlackBerry, and how do I install it on the device?

    I'm looking for simple advice on a file structure or command-line package tool. I'm not interested in integrating IDE of any kind.

    Thank you very much for your help!

    This site will probably give you some tips: http://wiki.qt-project.org/QNX

    Fr.

    Fredrik

  • Package ID is required for all .bar file.

    Hello

    The error I got is

    Package ID is required for all .bar file. If this is an upgrade, Package ID must match Package ID in original file bundle.
    

    I know that if this error occurs I sign with the wrong keys. I have 2 signature keys, but have backed them up. I chose the file correct author.p12 but it seems that the CSK (Code signing key) is wrong. He always takes the CSK of my other file author.p12 or something. How can I install the correct CSK in QNX Momentics... I'm really desperate...

    I managed to get my key to signature (barsigner.csk and barsigner.db) with Recuva! So if you lost your key, download software and it will get them in 20 minutes.

  • 10 questions with Ant Build QNX BlackBerry + PhoneGap (Córdoba)

    Hello;

    I am experienced in creating applications for the BlackBerry platform and am currently deploy a sample application with PhoneGap (Córdoba) with BlackBerry WebWorks for the BlackBerry 10 Beta (QNX) , without great success. I'm following the instructions in the guide of PhoneGap Getting Started Guide for BlackBerry , linked to their developers blog.

    The sixth step of the guide mentioned above, I get a few questions where theorg.apache.cordova function is not found, as well as all the features of blackberry.* :

    D:\Work\Development\PhoneGap\workspace\sample>ant qnx build
    Buildfile: D:\Work\Development\PhoneGap\workspace\sample\build.xml
    
    qnx:
    
    build:
    
    generate-cod-name:
         [echo] Generated name: cordovaExample.bar
    
    clean:
       [delete] Deleting directory D:\Work\Development\PhoneGap\workspace\sample\build
    
    package-app:
        [mkdir] Created dir: D:\Work\Development\PhoneGap\workspace\sample\build\widget
         [copy] Copying 24 files to D:\Work\Development\PhoneGap\workspace\sample\build\widget
         [copy] Copying 1 file to D:\Work\Development\PhoneGap\workspace\sample\build\widget
         [copy] Copying 1 file to D:\Work\Development\PhoneGap\workspace\sample\www\js
          [zip] Building zip: D:\Work\Development\PhoneGap\workspace\sample\build\cordovaExample.zip
    
    build:
         [exec]
         [exec] D:\Work\Development\PhoneGap\workspace\sample>"C:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.2.9\dependencies\node\node.exe" "C
    :\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.2.9\lib\bbwp.js" D:\Work\Development\PhoneGap\workspace\sample\build\cordovaExample.zip -o D:\
    Work\Development\PhoneGap\workspace\sample\build
         [exec] [INFO]    Populating application source
         [exec] [INFO]    Parsing config.xml
         [exec] [WARN]    Build ID set in config.xml [version], but no signing password was provided [-g]. Bar will be unsigned
         [exec] [WARN]    Failed to find feature with id: org.apache.cordova
         [exec] [WARN]    Failed to find feature with id: blackberry.find
         [exec] [WARN]    Failed to find feature with id: blackberry.identity.phone
         [exec] [WARN]    Failed to find feature with id: blackberry.pim.Address
         [exec] [WARN]    Failed to find feature with id: blackberry.pim.Contact
         [exec] [WARN]    Failed to find feature with id: blackberry.io.file
         [exec] [WARN]    Failed to find feature with id: blackberry.utils
         [exec] [WARN]    Failed to find feature with id: blackberry.io.dir
         [exec] [WARN]    Failed to find feature with id: blackberry.app.event
         [exec] [WARN]    Failed to find feature with id: blackberry.system.event
         [exec] [WARN]    Failed to find feature with id: blackberry.widgetcache
         [exec] [WARN]    Failed to find feature with id: blackberry.media.camera
         [exec] [WARN]    Failed to find feature with id: blackberry.media.microphone
         [exec] [INFO]    Generating output files
         [exec] [INFO]    Info: Package created: D:\Work\Development\PhoneGap\workspace\sample\build\simulator\cordovaExample.bar
         [exec] [INFO]    Info: Package created: D:\Work\Development\PhoneGap\workspace\sample\build\device\cordovaExample.bar
         [exec] [INFO]    BAR packaging complete
    
    BUILD SUCCESSFUL
    Total time: 8 seconds
    
    D:\Work\Development\PhoneGap\workspace\sample>
    

    Note that the org.apache.cordova function is not found, as well as all the features of blackberry.* .

    Ignoring the warnings and deployment on the BB10 Simulator results in this error: http://i.imgur.com/aUcPM.png

    It is worth noting that none of the warnings above or the runtime error occurs when you deploy to the PlayBook instead of 10 of BlackBerry.

    It would be appreciated if no guidance can be given to help solve this problem.

    Thank you very much.

    It is fully supported, it uses just a different implementation internally (that's why he needs different compared to the PB and BB7 and below feature identifiers).
    I did remove the org.apache.cordova line because it doesn't cause any damage to my application.
    I think the WebWorks Packer tries to find an org.apache.cordova in the folder SDK WebWorks to copy into the folder bar, while in reality org.apache.cordova already exists in your folder www is also copied in the file bar. (Yet I still think that this line is always necessary to access the API of Cordoba on the device)

  • Application package load error: permission denied

    Hello

    I develop on the alpha 10 blackberry dev and yesterday during the deployment of app I started getting this message from QNX Momentics IDE:

    "Synchronization and application startup" has encountered a problem.

    Application package load error: permission denied

    After I started getting this error, I noticed that I couldn't run any application, I already installed on the device, even the example apps provided no longer works (by clicking on the icon was moving the desk on the right for a moment as he normally does, but then the application does not run)

    I tried to set the mode of development, change the debugging token, restart the device and my pc, but it did not help. So I decided to wipe the device and today I reinstalled the operating system. I was able to run the application a couple of times tonight, but the problem started to appear again.

    The error is exaclty the same as before and he does not say much. What can I do to fix this?

    I had the same problem tonight, so I investigated further. I went to settings-> Security-> development mode and I noticed the debugging token has been installed, but it was not valid. the expiry date line said "edition invalid date or in the future." I noticed the time on my phone was incorrectly, I put it properly and now it works again.

  • qnx.callExtensionMethod call back

    Hi all

    Is there someone who successfully return call of QNXStageWebView.

    I tried for the most part any implement to get the call back but no luck.

    web_view = new QNXStageWebView() ;
                web_view.stage = sp.stage ;
                web_view.viewPort = new Rectangle(0 , 100 , 768 , 1180 ) ;
                web_view.enableJavaScript = true ;
                web_view.enablePlugins = true ;
                web_view.addEventListener(JavaScriptCallbackEvent.JAVA_SCRIPT_CALLBACK , onCallBack ) ;
                web_view.loadString("" +
                    "
    ") ;

    I wrote qnx.callExtensionMethod function closed, which I call you to help to run javascript.

    web_view.executeJavaScript('closed();') ;
    

    But I'm not able to retrieve the call on my call back caller.

    As I used it

    JavaScriptCallbackEvent.JAVA_SCRIPT_CALLBACK
    

    Thanks in advance

    Ahh ok, it seems that qnx javascript isn't loaden by injecting code. You must load from url.

    Try this concept:

    package
    {
        import flash.display.Sprite;
        import flash.display.StageAlign;
        import flash.display.StageScaleMode;
        import flash.events.Event;
        import flash.filesystem.File;
        import flash.geom.Rectangle;
    
        import qnx.events.JavaScriptCallbackEvent;
        import qnx.events.WebViewEvent;
        import qnx.media.QNXStageWebView;
    
        public class TestWeb extends Sprite
        {
            private var wk:QNXStageWebView;
            public function TestWeb()
            {
                super();
    
                // support autoOrients
                stage.align = StageAlign.TOP_LEFT;
                stage.scaleMode = StageScaleMode.NO_SCALE;
    
                this.addEventListener(Event.ADDED_TO_STAGE, init);
            }
    
            protected function init(e:Event):void{
                wk=new QNXStageWebView("test");
                wk.stage=this.stage;
                wk.viewPort=new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);
                wk.addEventListener(JavaScriptCallbackEvent.JAVA_SCRIPT_CALLBACK, callback);
                wk.addEventListener(WebViewEvent.DOCUMENT_LOADED, doLoaded);
                wk.loadURL("file://"+File.applicationDirectory.nativePath+"/index.html");
    
            }
            protected function doLoaded(e:WebViewEvent):void{
                wk.executeJavaScript("displayDate()") ;
            }
            protected function callback(e:JavaScriptCallbackEvent):void{
                trace("CALLBACK RECEIVED "+e.name);
            }
        }
    }
    

    And create your html on file src file:

    
    
    
    
        
        

Maybe you are looking for