How do I get to the right Stage/Scene/root/graphic?

I have a program I'm putting together in FlashDevelop that will have several different windows, with buttons on the right side of each window that allow the user to go from one window to the next. The windows will not be open at the same time- essentially the background just needs to be redrawn and features added or deleted. The buttons on the right side of the windows will be the same.
Right now the bitmaps are being drawn from the top left corner of the button as opposed to the top left corner of the window. I am not using Flash, otherwise this would be simple- goToAndPlay. Basically I need to get back to the correct Scene or stage, but I'm not completely clear on how to do that or how to make this work.
Code is below, at this point I'm just drawing a black rectangle but things work the same when I do bitmaps:
From Main:
songbutton = new SongButton; addChild(songbutton); songbutton.x = 680; songbutton.y = 100;
From SongButton:
public class SongButton extends MusicPlay {      public var songsYellow:Loader;      public var songsWhite:Loader;      public function SongButton(): void {           songsYellow = new Loader();           songsYellow.load(new URLRequest("images/SongsYellow.jpg"));           songsWhite = new Loader();           songsWhite.load(new URLRequest("images/SongsWhite.jpg"));           addChild(songsWhite);           addEventListener(MouseEvent.MOUSE_OVER, mouseOver);           addEventListener(MouseEvent.MOUSE_OUT, mouseOut);           addEventListener(MouseEvent.MOUSE_UP, mouseUp);      }       private function mouseOver(e:MouseEvent):void { addChild(songsYellow); }      private function mouseOut(e:MouseEvent):void { addChild(songsWhite); }      private function mouseUp(e:MouseEvent):void { SetMusicScreen(); } }
From MusicPlay:
public function SetMusicScreen():void {      graphics.beginFill(0x0);      graphics.drawRect(0, 0, 800, 550);      graphics.endFill(); }
Message was edited by: tom_jeffries

OK, I found a way to do this.  Might not be the best way, but it turns out that I can put a addEventListener(MouseEvent.MOUSE_UP, gottaMouseUp) in the calling class, add a public variable in the button class that lets me know if the correct button has been clicked, and use that in the calling class to decide which button was clicked.  I knew it was something simple like that....

Similar Messages

  • TS3988 my user name (email address) is no longer a valid email address.  How do I get around the verification stage or change my username to be my current email address?

    How can I change my user-name for ITunes?  My user name was my old work email address and is no longer valid. When I try to create an iCloud account, I am having trouble due to the fact that the username is not a good email address.

    How are you trying to do it ? You can change the rescue email address on your account by, from http://support.apple.com/kb/HT5312 :
    Navigate to appleid.apple.com using your web browser.
    Click "Manage your account"
    When prompted, sign in using your Apple ID and password.
    Click Password & Security
    You'll be asked to answer 2 of your 3 security questions before you can make any modifications. If you are unable to remember your answers, you can choose to send an email to your rescue email to reset your security questions.
    After you've validated your identity by correctly answering your security questions, click Edit to the right of your rescue email address.
    Once you've finished editing your rescue email address, click the Save button directly below the email field.
    You can then try using your current rescue email address as your primary email address - you may need to log out of that page and back in. Or you can then try changing the primary email address via the Store > View Account menu option on your computer's iTunes
    If you have an iPhone, iPad and/or iPod Touch you may then need to log out of your account on them by tapping on it in Settings > iTunes & App Store and log back in for the account to be 'refreshed' on it.

  • When try to update apps  its says need to go to Bavarian store  Do not have account.   How do I get to the right store. (United States)

    When try to update apps  it says do not have account need to go to Bavarian store.  Need jot get to United States store. How?

    Can you post the exact message you get please. As far as I know, there is no "Bavarian" store (unless you are talking about an import store with merchandise from Bavaria).
    Are you trying to go to the Mac App Store (for Mac OS) or the app store for iPhones, iPads, etc???
    And, we need to have more information: what Mac computer or i-Device are you on? What version of the OS?

  • HT204406 HOW CAN I GET BACK MY RIGHT SIDE SCROLL BAR?

    how can I get back the right side scroll bar in I-Tunes?

    I am missing the right scroll bar in mail only i need help to get it back

  • How do I get back the 'open new tab' button (+ sign at right end of tabs) in Firefox 4 ?

    How do I get back the 'open new tab' button (+ sign at right end of tabs) in Firefox 4 ? I realize there is a 'new tab' button at the right end of the toolbar but I like the new tab function placed next the tabs ?

    See also:
    *Tools > Options > Privacy > History: "Remember search and form history"
    *https://support.mozilla.org/kb/Form+autocomplete
    The "Use custom settings for history" setting allows to see the current history and cookie settings, but selecting that setting doesn't make any changes to history and cookie settings.<br />
    Firefox shows the "Use custom settings for history" setting as an indication that at least one of the history and cookie settings is not the default to make you aware that changes were made.<br />
    If all History settings are default then the custom settings are hidden and you see "Firefox will: (Never) Remember History".<br />

  • How do I get all the songs from an album to show in the album view?  Currently, if an album lists the artist plus a guest artist, those are shown separately and appear to be two different albums on my iPod.  How do I get all the songs on that album togeth

    How do I get all the songs from an album to show in the album view?  Currently, if an album lists the artist plus a guest artist, those are shown separately and appear to be two different albums on my iPod.  How do I get all the songs on that album together on my iPod?  If the album is a collaboration wtih many artists, each sond may appear as a separate album.

    I used to have this problem.
    First, you need to go back on iTunes
    you need to go to each of the songs that are having this problem
    Click the album so all the songs drop down
    Right click the songs that have this problem
    Click ' Get info '
    Click the tab that says " info '
    The box that says ' album artist ' should probably be empty (correct me if I'm wrong)
    Click it and type the artist of the entire album, NOT the songs guest artist
    as such,
    ARTIST
    JAY-Z Feat. Justin Timberlake
    ALBUM ARTIST
    JAY-Z
    These should be separate for each artist
    If you write the same album artists for each song by that artist, all the songs should be on 1 album

  • How can I get all the stuff from my old iPad 2 to my new iPad 2? I have an apple id and have synced and backed up my old iPad 2 regularly.

    How can I get all the stuff from my old iPad 2 to my new iPad 2? I have an apple id and have synced and backed up my old iPad 2 regularly.

    Sky is right you can restore the old backup and it will not affect the old iPad
    To make sure do this:
    1. If you have the old one then just turn off wi-fi and the iPad (that's just for your peace of mind)
    2. Put new iPad on airplane mode (just for no interruptions )
    3. Connect it (while it's on, don't shut it down)
    4. Follow prompts and when it asks if you want to setup as new or restore CHOOSE: RESTORE
    5. It will make its magic (just wait for it to sync, restarts, and finishes) it might ask you to update software if it does just accept
    6. You can rename your new iPad like that you can have a fresh back up
    7. ENJOY your new iPad
    ----------OR-----------
    1. Do the above steps 1, 2, 3.
    2. On step 4 you can choose to set up as new
    3. Then you can choose what to sync on it (click on iPad on the left panel then the tabs on top you choose what you want on it (you can also do that if you restore)
    4. Follow steps 5, 6, 7.
    ****If you don't have your old iPad you can remove it from your account ****
    ****Also when they sync it to a new computer it will setup as new unless they had an old one then they will restore it their old one****
    ****if you have it connected with your MobileMe or iCloud and you have the find my _____ you can also wipe it as soon as it comes online****
    LET ME KNOW IF YOU HAVE ANY QUESTIONS OR CONCERNS
    AGAIN ENJOY YOUR NEW IPAD!!!

  • Downloaded 3.6 version of firefox and it changed my favorites, quicken, other files back to 1.5 yrs ago. How do I get back the info it has erased or hidden from me???

    Question
    Today downloaded 3.6 version of firefox and it changed my favorites, quicken, other files back to 1.5 yrs ago. How do I get back the info it has erased or hidden from me???

    What do you mean by '''''"changed my favorites, quicken, other files back to 1.5 yrs ago"'''''? More detail please.
    <br />
    You have an item installed that is considered malware/spyware/adware. To see the plugins submitted with your question, click "More system details..." to the right of your original question post.
    *Ask Toolbar Plugin Stub for 32-bit Windows
    Unfortunately, it is becoming more and more common for these kinds of "extras" (toolbars, security scanners, etc.) to be added to your browser/system/desktop when adding or updating other software, some from very well-know software vendors. You must carefully read information before downloading any "free" software and be very alert during the install process for any opportunity to opt-out of "extras" being installed.
    '''<u>If you have the Ask Toolbar</u>'''<br />
    * First try to disable or uninstall the Ask Toolbar in Firefox via "Tools -> Add-ons -> Extensions". See: [[Uninstalling add-ons]]<br />
    *In some cases, you may need to uninstall the Ask Toolbar using Windows Control Panel .
    **See [http://support.mozilla.com/en-US/kb/Cannot+uninstall+an+add-on#Uninstall_from_Windows_Control_Panel Cannot uninstall an add-on - Uninstall from Windows Add/Remove Programs].
    '''<u>You '''MAY''' need to reset your homepage</u>''' if an Ask search page opens when first starting Firefox. Firefox can open multiple home pages. Home pages are separated by the "|" symbol.
    *See: http://support.mozilla.com/en-US/kb/How+to+set+the+home+page
    '''<u>You ''MAY'' need to reset a preference</u>''' if searches from the URL/location bar take you to an Ask search page.<br />
    To reset the preference related to Ask search from the URL/location bar via about:config, specifically the keyword.URL preference -<br />
    *Open a new tab or window.
    *Type '''''about:config''''' in the URL/address bar and press the Enter key
    *If you see a warning, accept it (promise to be careful)
    *Filter = keyword.url
    *Right-click on the preference below the Filter, and choose Reset
    *Restart Firefox (File > Restart Firefox)
    *See: http://kb.mozillazine.org/Keyword.URL for details.
    Also see:<br />
    * http://kb.mozillazine.org/Problematic_extensions#Ask_Toolbar
    * http://kb.mozillazine.org/Uninstalling_toolbars
    <br />
    '''Other issues that need your attention'''
    The information submitted with your question indicates that you have out of date plugins with known security and stability issues that should be updated. To see the plugins submitted with your question, click "More system details..." to the right of your original question post.
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.3"
    **New Adobe Reader X (version 10) with Protected Mode just released 2010-11-19
    **See: http://www.securityweek.com/adobe-releases-acrobat-reader-x-protected-mode
    *Shockwave Flash 10.1 r82
    *Next Generation Java Plug-in 1.6.0_19 for Mozilla browsers
    **4 updates behind
    #'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**Use the links below to avoid getting the troublesome "getplus" Adobe Download Manager and other "extras" you may not want
    #**Use Firefox to download and SAVE the installer to your hard drive from the appropriate link below
    #**Click "Save to File"; save to your Desktop (so you can find it)
    #**After download completes, close Firefox
    #**Click the installer you just downloaded and allow the install to continue
    #***Note: Vista and Win7 users may need to right-click the installer and choose "Run as Administrator"
    #**'''<u>Download link</u>''': ftp://ftp.adobe.com/pub/adobe/reader/
    #***Choose your OS
    #***Choose the latest #.x version (example 9.x, for version 9)
    #***Choose the highest number version listed
    #****NOTE: 10.x is the new Adobe Reader X (Windows and Mac only as of this posting)
    #***Choose your language
    #***Download the file
    #***Windows: choose the .exe file; Mac: choose the .dmg file
    #*Using either of the links below will force you to install the "getPlus" Adobe Download Manager. Also be sure to uncheck the McAfee Scanner if you do not want the link forcibly installed on your desktop
    #**''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
    #**Also see: https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox (do not use the link on this page for downloading; you may get the troublesome "getplus" Adobe Download Manager (Adobe DLM) and other "extras")
    #*After the installation, start Firefox and check your version again.
    #'''Update the [[Managing the Flash plugin|Flash]] plugin''' to the latest version.
    #*Download and SAVE to your Desktop so you can find the installer later
    #*If you do not have the current version, click on the "Player Download Center" link on the "'''Download and information'''" or "'''Download Manual installers'''" below
    #*After download is complete, exit Firefox
    #*Click on the installer you just downloaded and install
    #**Windows 7 and Vista: may need to right-click the installer and choose "Run as Administrator"
    #*Start Firefox and check your version again or test the installation by going back to the download link below
    #*'''Download and information''': http://www.adobe.com/software/flash/about/
    #**Use Firefox to go to the above site to update the Firefox plugin (will also install plugin for most other browsers; except IE)
    #**Use IE to go to the above site to update the IE ActiveX
    #*'''Download Manual installers'''. Note separate links for:
    #**Plugin for Firefox and most other browsers
    #**ActiveX for IE
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)
    #*Also see "Manual Update" in this article: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • I restored my phone but it restored to the only back up i had which was 2 months ago. Now none of the settings i have are up to date on what i had. How do i get all the text messages from that backup up to today?

    I tried to update my phone, but it died so i had to restore it. The only back up i had was from 2 months ago. How do i get all the settings back from that huge gap of me not syncing it?

    Please read before going through with this procedure.
    If you really want your contact back and you did not do another iCloud backap since you deleted some of your contacts, you can do a hard reboot on both devices with iClouded contacts by holding down the home and lock buttons on each of them for 10 seconds ignoring the slide to turn off thing. Make sure you have iCloud contact services off before doing so. You can then go through the whole set up process until you get up to the backup part. You then press to restore from an iCloud backup (make sure you choose the right backup for the right phone). If you didn't make an iCloud backup before the contact incident, you will have to use your two-month-old iTunes backups. Each phone should have their contacts the way they were from your last backup. You then go into Settings>iCloud>and turn off contacts. You then can choose if you want to keep your current contacts or not. Turn this off on both phones just incase you add another iCloud device to the mix later on. Now your contact lists are no longer linked (Caution: side effect may include lack of edit button). You may now add and delete contacts as you please without it happening on your other phone.
    Thank you for choosing Apple.

  • How do I get to the start page when I'm not on it currently? there used to be a buttom for it

    I recently updated to version 6.0.2 of Firefox. This version doesn't seem to have a "home page" button. How do I get to the home page when I'm currently not on it? I shouldn't have to press the "backpage" button until I get there or type it in to get there.

    You can find the toolbar Home button at the far right end of the Navigation Toolbar.
    You can drag the Home button from its current position at the right to the previous position at the left of the location bar if you do not like that new position.
    * http://kb.mozillazine.org/Toolbar_customization

  • HT201178 I have a Mac mini with Magic Trackpad and wireless keyboard. The keyboard and track pad got wet so I have purchased new ones. Problem is how do I get past the log in screen to set up the pairing of the devices? The old ones do not work

    How do I get past the login screen to pair my new wireless keyboard and trackpad when the old ones are water damaged and don't work

    Have you tried pulling the batteries out of the damaged ones so that they are completely off; then shutdown your Mac Mini via the power button on the back right. Turn on your new keyboard and trackpad then power your Mini back up? The auto detection should find your new keyboard and trackpad.

  • When I changed to IOS 6 the name of the vidieos in the video app disapeared, now i onl have the bitmaps of the videos how ca I get back the titles?

    When I changed to IOS 6 the name of the vidieos in the video app on my iPAD 2 disapeared, now i onlly have the bitmaps of the videos how can I get back the titles?

    I can still access my favorites in the mobile site using Safari. Go here and sign in.
    http://m.youtube.com/
    Tap on the rectangles at the top on the right side - across from the YouTube logo and then tap
    The Favorites icon - the heart icon.

  • I have a new ipad.  How do I get to the old apps I had to download them?

    I have a new ipad.  How do I get to the old apps I had to download them?

    Sign out of the App Store, close the App Store app and reboot the iPad, sign in again and then go back and try again.
    Settings>iTunes and App Store. Tap your Apple ID and sign out.
    Close the App Store. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the App Store app and then swipe "up" on the app preview thumbnail to close it.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    Go go back to Settings>iTunes and App Store. Sign in again. Go to the App Store and see if the apps appear for downloading now.

  • When I go to Apple TV menu and click on Settings, nothing happens. How do I get into the settings menu?

    Hi, I can't get past the setup stage with my Apple TV box. It takes forever trying to set the date and time and never seems to achieve this. When I select menu and then select Settings, nothing whatsoever happens. If I can't access the Settings menu, then clearly I can't set the network and password. Can anyone tell me how to get into the Settings menu please? Thanks

    Honestly, I have never heard of this issue. The only thing that i can recommend is obtaining a Micro-USB cord and restoring the device. That's probably your only way out of this.

  • How do I get past the pass code on iPad running on Ios7.1 because j have forgotten it and I don not own a computer so it has to be with our a computer

    How do I get past the pass code on iPad running on Ios7.1 because j have forgotten it and I don not own a computer so it has to be with out
    a computer

    Use a friend's computer. Your iPad will be erased.
    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    You may have to do this several times.
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just canceling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

Maybe you are looking for