Button in the App Menu events

Can I call a function that is in the main window of the application, the user interface of the App menu with an event listener in the main application to listen for a click of a button in the user interface of the menu?

Example:

(UI button in swipe-down menu in UI.as)
...
ResetButton = new LabelButton();
ResetButton.label = 'Reset view';
...

(code in MyApp.as)
...
private var ui:UI;
...
public function MyApp()
{

ResetButton.addEventListener(MouseEvent.MOUSE_DOWN, resetView);
...
}

Where resetView is a function to restore the default view of the application.

@tensioncore: PageViewStack.as stores its current page variable _current_page private and at least the version I uploaded, which I think is current, is not a function for this variable get accessor.  But it's easy to fix.  Simply add this code to your local version of PageViewStack.as:

public function get current_page():DisplayObject {
   return _current_page;
}

and then in your code where you need to check that your page view stack is currently on the page, just make reference

this.stack.current_page

Give that a try & let us know how it goes...

Tags: BlackBerry Developers

Similar Questions

  • When I click on the 'Get' button in the app store for El Capitan, the beachball cursor rises and crashes the app store (not responding) in the force quit window...

    When I click on the 'Get' button in the app store for El Capitan, the beachball cursor rises and crashes the app store (not responding) in the force quit window...

    How can I fix it?

    Nevermind, I restarted the computer and it was fixed

  • How to turn off the vibration in the three buttons on the lower menu

    Recently, I got the standard Z5, I turn off the vibration in the three buttons on the lower menu (Back, Home, recent applications)

    I can't turn off the vibration to write, but I Don t know how to turn off the vibration in the menu buttons. The keyboard is the native of SONY
    Help me, that vibrations do not like and they are frustrating for my...

    Settings > sounds and notifications > other sounds

    Chinolyn wrote:

    Recently, I got the standard Z5, I turn off the vibration in the three buttons on the lower menu (Back, Home, recent applications)

    I can't turn off the vibration to write, but I Don t know how to turn off the vibration in the menu buttons. The keyboard is the native of SONY
    Help me, that vibrations do not like and they are frustrating for my...

  • Abobe creative cloud does not display the app menu on Windows 10

    Hello, I use windows 10 and my creative cloud abobe does not display the app menu. Can you help me?

    WHITE cloud screen http://forums.adobe.com/message/5484303 can help

    - and http://helpx.adobe.com/creative-cloud/kb/blank-white-screen-ccp.html

    - and step by step http://forums.adobe.com/thread/1440508?tstart=0

  • System hanging when I click on the stop button on the start menu

    Hi everyone I use win xp professinal in my laptop of dell (Dell Latitude E5410) for a few days, I get some problems as when I click the button turn off in menu start my laptop get hung up and not unresponsive for 5 to 10 minutes due to problems of this I have every time with force shutdown my laptop. I also contacted with dell support they talked about some diagonstic even tests I did the test of all the problems is always the same and finally they told me that you must format your laptop, but I don't want to format my laptop because I recently bought this laptop with Genuine windows pls help me what should I do

    Thanks in advance

    Glance in the log events for possible clues.

    Install the Profile Hive Cleanup Services user

    John

  • How to restore the new tab button in the navigation menu when it is not available in the Customize?

    The new tab button disappeared from my navigation menu. None of the changes or upgrades have been made. While all subjects of support suggest going to customize the toolbar, the new tab button is gone either. There in the morning, disappeared in the evening without apparent reason. The + is at the end of the series of tabs, but not in the navigation toolbar and tab add + is NOT anywhere on a page it there is that a single label. I HIDE TAB BAR WITH ONE TAB 1.1 but have had for weeks, and the new tab button was always there. How to restore the button tab on the Navigation bar if it is not available in the choice to customize the toolbar?

    Don't you see the new tab button on the tab bar if you open the window customize?

    If you do not see an item on a toolbar in the toolbar palette and then click the button "Restore default" to restore the default toolbar configuration

    You can check the problems caused by a corrupt localstore.rdf file and try to delete this file.

  • How to force Windows 8.1 programmatically refresh/update the Apps menu after start lnk files manually editing menu

    I would like to know if there is a call to API or similar which will refresh the menu apps dynamically.  Because of the way that the applications menu groups of shortcuts by default, if you have multiple items of the same seller they will most likely be displayed together.  It becomes quite confusing when all the shortcuts have the same name.  This happens more often than I like.  To minimize confusion, I have a version icons to move to a different subfolder under start\program c:\programdata\Microsoft\Windows\Start.

    For example, two versions of IBM ODM are installed, they have almost identical shortcuts but both are needed by the developer, so we have:

    c:\programdata\Microsoft\Windows\Start Menu\Programs\IBM\ODM 8.5.1

    c:\programdata\Microsoft\Windows\Start Menu\Programs\IBM\ODM 8.7

    In the view menu apps, all will be grouped under "IBM."  I moved and renamed ODM 8.7 to:

    c:\programdata\Microsoft\Windows\Start Menu\Programs\IBM ODM 8.7.

    However, the menu apps will always show both sets of icons as everything under 'IBM' however a game does not work (because they have been moved).  without any other process, the only way I found to refresh, it's to open a session and return twice.  Reboot, restart explorer.exe (someone suggested that) or other tricks mentioned in the links down below has no effect.

    Steps to recreate:
    1 see the menu apps

    2. rename any existing subfolder which is directly under start\program c:\programdata\Microsoft\windows\Start

    3. open the menu of apps again.  the modified file should be not displaying and in the old group of folder shortcuts no longer work.
    4. open a session once and relog in.  Still, the change should not display.
    5. open a session once and relog again.  The change should now display.

    This delay in the update of behavior has been observed by several people, one that suits that I remember:

    Microsoft.com: how to change the name of one of the program groups that appear on the screen all applications? who asked several years without resolution.

    I asked several days regarding the exchange of Experts to see if anyone knew a method without a resolution so far other than workarounds: Experts-Exchange: Windows Apps Menu 8.1 will not update dynamically when you manually change the locations of shortcuts

    Any advice would be greatly appreciated I know I will run into this many times in the future when the native installer does not permit you to change the location of the shortcut.

    Hi Dan,

    Thanks for posting the query on Microsoft Community.

    This problem may be the best answer by MSDN, publish the query on the MSDN Forum.

    https://social.msdn.Microsoft.com/forums/en-us/home

    In the future, if you have problems with Windows, get back to us. We will be happy to help you.

  • How to remove the landing page button in the main menu in Muse?

    I created a landing page that precedes the real home page. After visitors have entered the site, there is however no reason to return to the landing page or make it featured in the menu.

    But the menu widget included automatically. I try to remove it and can't seem to be able to do. No idea how I can do this please? Thank you.

    In outlining, click (Windows) right-click on the page, select the Options Menu > Page exclude menu.  Or, use the menu manual option.

    John

  • I am getting a DOWNLOAD ERROR in the apps menu

    I get a DOWNLOAD ERROR in the center of apps in creative cloud. I need help to fix it, but I was suspended for 30 minutes, trying to get answers. Also all the apps that I have purchased in the past are now gone. How to make a comeback?

    Without good information system and other technical details no one can tell you a lot. as a first step, refer to this:

    Log, activation, or connection errors. CS5.5 and later versions

    Mylenium

  • HII... im able to reboot by pressing the menu and the "home" button but the individual menu, and the "home" button isn't respond.any idea?

    HII... I'm using Apple Tv 4th gen. Menu button and Home does not respond even after a reboot by pressing both button. Any idea?

    When you click the button, no light on the twinkling of an ATV?

  • Buttons for the S60 menu light does not work

    Hi all

    On Lenovo S60 menu button illumination does not work. Is this normal and supposed to be like this, or it's some sort of bug?

    Thank you!

    S60 is not backlit on the recent button, home and back.

    Thank you.

  • Since the last update with el capitan, imac won't stop with the stop button in the Apple menu

    Since the last update in el capitan my imac and my macbookair will not stop or recover on the regular basis. I have to press the power button to stop the hard wayanybody a response?

    If your Mac is not turned off, press and hold the power button for 5 seconds to force a shutdown. Read more in this article OS X El Capitan: disconnect you, sleep, restart, and stop down

  • How to remove or disable the voicemail button in the app phone.

    Don't use voicemail, I sometimes find myself hitting the voicemail button to my accident. the phone is on a prepaid plan, so I pay for every outgoing call, including access to voicemail. However, I don't want to use the jailbreak. also if she will be gone, because I still have no problem its gives me a huge pain.
    Thank you

    There is no way to remove it.

  • I've already paid for creative photography of cloud, but cannot install them. He showed only try in the App Menu.

    I've been trying for 5 hours do the work, but it is still could not install correctly.

    I'm subscribed to creative photography of cloud today. When I try to reinstall Photoshop that I installed and used in the past. I see even a button try not download one. When I install it, it will say that the period is already end.

    Help, please.

    Screen Shot 2015-05-12 at 9.39.58 PM.png

    Screen Shot 2015-05-12 at 9.37.35 PM.png

    Hi Vincent,.

    I advise you to contact support by calling/chat and get good Id Adobe figured out for your purchase.

    Contact the customer service

    Kind regards

    Sheena

  • Where is the button in the flash menu, it is normally in windows.

    Help!

    Windows > common libraries > buttons no longer exists in flash cc.

    If you need some of the prebulit buttons, use flash cs6 or cs6 copy and paste it into a flash cc application.

Maybe you are looking for

  • Firefox version 37.0.1 - "serious safety defect".

    I went to http://www.greenpasture.org/public/Home/index.cfm , and it displayed the following message is displayed: We see that you use as browser Firefox version 37.0. This browser presents a serious safety defect and is not recommended for use on th

  • Storing music only on iPhone.

    Hello Recently my hi-fi broken so I started to transfer my CD collection to digital and met with problem files. The thing is, I want to: (1) rip my CD to AAC format. (2) transfer the audio files to iPhone for Mac. (3) remove the audio from the Mac fi

  • 12.3.2 iTunes won't open...

    I recently noticed that iTunes no longer opens on my MacBook Pro after update. The operating system is Mavericks OSX 10.9.5 and the iTunes is 12.3.2. The app will bounce on the dock for about a second and then will crash without even opening. Restart

  • Changes to the login items does not take effect

    I deleted a program from the list of login items and saved the changes. Now, the changes are saved. However, when I stop and restart the system, program seems to return to the boot and login items list goes back to the original. No matter how many ti

  • How to make an alarm in VeriStand that checks the specific value?

    I need the alarm is triggered when the string value is 0x2C and only 0x2C.