Cannot use FlexGlobals.topLevelApplication.addEventListener

I had problems with application of the FlexGlobals.topLevelApplication.addEventListener method in Flash Builder Burrito.

If I create a desktop AIR application, then I have no problem but I can't get this to work as a mobile project.

I imported framework.swc and spark.swc in the project of the blackberry SDK folder - but addEventListener is not upward into the end of code topLevelApplication popup - and I get an cannot access a property or method of an object reference . null Error when I try to run the application

package
{
    import flash.display.Sprite;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.Event;

    import mx.core.FlexGlobals;

    import spark.components.Application;

    public class eNewTest extends Sprite
    {
        public function eNewTest()
        {
            super();

            // support autoOrients
            stage.align = StageAlign.TOP_LEFT;
            stage.scaleMode = StageScaleMode.NO_SCALE;

            FlexGlobals.topLevelApplication.addEventListener(Event.ENTER_FRAME, test);
        }

        public function test():void
        {
            trace ('doing something...');
        }
    }
}

Any thoughts would be appreciated. See you soon.

If this does not work, you can add the listener to the 'step' of the object. There is only one step that all elements have in common.

Tags: BlackBerry Developers

Similar Questions

  • MouseEvent on handling FlexGlobals.topLevelApplication

    Hey, I'd better manage MouseEvent on FlexGlobals.topLevelApplication, like this

    FlexGlobals.topLevelApplication.addEventListener (MouseEvent.MOUSE_DOWN, evidenceOut)

    It works fine, but when the modal dialog box is open, it is not triggered. It is perhaps characteristic, don't know. But y at - it an option for handling click anywhere on stage, when the modal dialog box is open?

    Thank you

    systemManager

  • FlexGlobals.topLevelApplication Gumbo data binding issues

    Hello

    What is the recommended way to bind a data source for a subitem to a collection that can be linked to the location of the top-level application.

    3, for this I would use {Application.application.instance_of_bindable_variable}, now I get a warning saying that the data binding will not be able to detect the assingments to {FlexGlobals.topLevelApplication.instance_of_bindable_variable}

    so, how to bind a data source for a subitem a variable instantiated at the Application level, in Flex 4?

    Thank you

    JED

    My bad, instead of Application, use the name of your application MainApp(FlexGlobals...). someProperty

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • cannot use three finger view Preview

    cannot use three finger check to open in the preview pdf

    If you mean that you can't have three fingers tap the trackpad for Quick Look, a file, I got that too. One of the best features of Mac OS x, so I hope they fix very soon!

  • Cannot use cards MBNA Web page Services: no account login button appears.

    Cannot use cards MBNA Online Services because no connection of the personal account button appears on the original Web page. However, I can access my MBNA card account using their site of Bank of America. Also cannot reserve National coach Express tickets because no key prosecution appears after have entered my details to the passenger. However, the same site operates using SAFARI. I have FIREFOX 15.0.1.

    Hello

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

  • I downloaded the new version and it says: you cannot use this application with this version of Mac os how can I download the older version?

    I downloaded the new version and it says: you cannot use this application with this version of Mac os how can I download the older version? My os is 10.4.11

    You can read this article: Firefox no longer works with Mac OS X 10.4 or PowerPC processors to read about the EOL for Mac 10.4 support and what the best options going forward.

  • Dislikes 8.0! Cannot use my 'screen capture' as I LOVE REALLY! How to return to an earlier version?

    Dislikes 8.0! Cannot use my 'screen capture' as I LOVE REALLY! How to return to an earlier version?

    I am having trouble finding a way to return a single step (version - or more) to get the add-on called "Screen Grab" (with a right click) working again!

    FireFox 8.0 we 'OK' but I don't really miss being able to use the screen saver! Honestly, I miss it a lot more than I like the new version of FF.

    Please understand I HAVE ALWAYS LOVE FIREFOX!

    Thank you all for your comments! Really very happy to be "more operational"! The new version of Screen Grab works great with Firefox 8 now!

    Hey John!
    We made a compatible version based on the latest version of screengrab (0.96.3).
    You can enter here.

  • Still cannot use e-mail on my iPhone 5s

    Still cannot use e-mail on my iPhone 5s since the 9.3.1 update.

    What happens exactly? We need more information to help you.

  • Tecra A10 - 13I (PTSB0E-01400XFR): cannot use 8 GB of RAM

    Hello

    I'm trying to upgrade the memory on my TECRA A10 - 13I with windows server 2008 R2, I am upgrading from 4 GB to 8 GB.

    My BIOS detect 8 GB, see Windows my 8GB (2 x 4 GB) of RAM, but I can see in "8.00 GB (3.87 GB usable)" system properties When I run the application you "Resource monitor", I see 4233 reserved material MB. Finally, if I use a VM with 4 GB of RAM, the virtual machine cannot use this reserved memory and crashes.

    I have read this thread: [http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=54112&tstart=0 | http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=54112&tstart=0]
    I tried to update my BIOS and changed Advanced Startup Option "Maximum memory", but no change to my memory.

    Thank you
    Jonathan

    PS: Sorry for my poor English :)

    Hi mate

    TECRA A10 - 13I is certainly capable of that means you can use 2 x 4 GB RAM RAM 8 GB.

    What is the report DirectX?
    Check the value of memory here. In order to access the DirectX, you must use the command * dxdiag *.

    Greetings

  • Camileo H30: cannot use the slow movement on playback

    Hello

    I'm new to the forum so forgive any errors.

    I recently bought a friend and: 30 and he says that he cannot use idle on playback.
    He says he can save in slomo.

    He wants to show playback return to idle normal.
    This is not possible on this unit or if he has not found the right way to do it again.

    Any help muchly appreciated.

    Bowler Hat

    As far as I know that's not possible.
    You can save in Slow Motion but can not playback of videos in slow motion
    You can play only movies that have been recorded in slow motion

    I ve got: 30 well and could not playback in slow motion too.

  • Re: Satellite L750-1XH - cannot use pre-installed Win7 Home Premium

    At the start of the laptop without accessing the past named screen user except in safe mode. User name of affected the screen goes black.

    Any ideas appreciated, wife is an attempt to do for College this week!

    Your ad is quite confusing and I don t understand exactly what is happening. If I understand right, you cannot use Windows, but you have full access in safe mode. Is this correct?

    In any case try to follow: start Windows in safe mode and try to roll back OS to an earlier time using System Restore tool. Do the first step, check what happens and post comments.

  • Cannot use GHOST - GHOST crashes when it starts.

    Cannot use GHOST. GHOST to hang when it starts.

    DUN worry, just disable the L2 cache is going to do.

    If still can not. disable the CPU cache.

    After completing the ghost. Activate it.

    Hello

    I have never had any problem with ghost from or use this application but thank you for this information.
    Perhaps this info could be useful if such question appears on a laptop s person.

    Thanks and greetings

  • Cannot use iPhone"because it requires a newer version of iTunes.

    Phone has been updated.  MAC is updated.  Cannot use "iPhone" because it requires a newer version of iTunes. How can I clear this error message?

    By upgrading the computer at least Mac OS X 10.8.5.

    (139661)

  • Cannot use the functions F1-12 on my Satellite C55 - A - 19 K

    Hello

    Satellite C55 - A - 19 K have a keyboard drivers?
    I cannot use the functions F1-12 and can not get the wireless since it s on the keyboard...
    Any 1 can help please?

    This function is not controlled by the driver keyboard, but with utilities and tools specific to Toshiba.
    What operating system do you use?

  • Dead zone near the top of the screen in Safari? Cannot use Safari to log even here, because the arear connection is at the top. Virtually all nearthe fields are dead. I have no problem going into the fields to halfway to the bottom of the screen. Chrome w

    Dead zone near the top of the screen in Safari? Cannot use Safari to log even here, because the login box is at the top. Virtually all of the fields near the top are dead. I have no problem going into the fields to halfway to the bottom of the screen. It comes to Chrome and it works very well.

    I suggest you only begin by taking the measures recommended in this support article.

Maybe you are looking for

  • HP 2545: Wifi password

    I bought the new printer todayWhen installed and try to print from my iPhone 6Ask for the wifi passwordWe are getting this password

  • I have to buy Windows after replacing my hard drive?

    I learned that my portable (HP DV-6) needs a new hard drive. Looking at the steps, I'm ready to do it myself, but I was also told that I have to buy another copy of windows? Is this true or can I use the key that came with my original disk?

  • Count when whole Exchange?

    Hello Hope somone can help me with this. I have a position of analog speed sensor, which generates a voltage between 0 and 10 v according to the machine is chosen. (I'm simulating the input voltage to the VI attached using a digital command, and leve

  • Wireless-G Access Point WAP54G & Thompson SpeedTouch ST585

    For the life of me, I can't get this device to work. I am trying to create a point of access to a device not pc a FTA Receiver. The FTA Receiver needs access to the internet and works very well with an ethernet cable. I had hoped to use the WAP54G as

  • Blocking ICQ traffic on router 2620

    I needed to block all ICQ traffic coming out of my network. Did a search on the Internet and found that ICQ uses two port numbers as possible for the 4000 and 5190. I set up both of these ports and it seemed to do the trick BUT... I discovered that I