Nothing but a Blank Screen/ TimerClass problem? EventListener?

When I test the code below nothing happens. I just get a blank screen.
What is supposed to happen?
When the program opens a splash screen should be added for 3 seconds and then fade out. Then some main screen movie clips should be added to the stage.
package
    //**************** IMPORT STATMENTS *********************
    import flash.display.MovieClip;
    import com.greensock.TweenLite;
    import flash.utils.Timer;
    public class Main extends MovieClip
        //***************** Variables ***************************
       private var MainScene:Main = new Main();
        private var PopUp_MoreApps:MoreApps_mc = new MoreApps_mc();
        private var PopUp_About:About_mc = new About_mc();
        //*****SPLASH SCREEN ***
        private var mc_timerSplash:Timer;
        private var splashScreen:mcSplashScreen;
        //*****************CONSTRUCTOR CODE ********************************************************************* **************
        public function Main()
            mc_timerSplash = new Timer(3000,1);
            mc_timerSplash.addEventListener(TimerEvent.TIMER,  StartTimer);
            //When timer is finished stop the timer;
            mc_timerSplash.addEventListener(TimerEvent.TIMER_COMPLETE, timerCompleted);
            splashScreen = new mcSplashScreen();
            //Adds the splash screen
            addChild(splashScreen);
            splashScreen.x = stage.stageWidth / 2;
            splashScreen.y = stage.stageHeight / 2;
            mc_timerSplash.start();
        //*********** FUNCTIONS *********************************
        private function timerCompleted(e:TimerEvent):void
                mc_timerSplash.stop();
                mc_timerSplash = null;
        private function StartTimer(e:TimerEvent):void
            TweenLite.to(splashScreen, 1, {alpha:0, onComplete: SplashScreen});
        private function SplashScreen():void
            removeChild(splashScreen);
            addMainScene();
     //adds the main screen movieclips  
      private function addMainScene():void
            addChild(MainScene);
            MainScene.x = 489;
            MainScene.y = 350;
            //TweenLite.from(MainScene.wbbIntro_mc, .5, {alpha: 0});
            TweenLite.from(MainScene, 1, {alpha:0});
            TweenLite.to(MainScene.girls_mc, 1, {y:395, delay:.3});
            TweenLite.to(MainScene.boys_mc, .5, {y:396, delay: .6});
            TweenLite.to(MainScene.Joe_mc, .5, {y:339, delay: 1});
            TweenLite.to(MainScene.Paul_mc, .5, {y:322, delay:1.2});
        private function removeMainScene():void
            removeChild(MainScene);
            TweenLite.to(MainScene.girls_mc, .1, {y:690});
            TweenLite.to(MainScene.boys_mc, .1, {y:693});
            TweenLite.to(MainScene.Joe_mc, .1, {y:636});
            TweenLite.to(MainScene.Paul_mc, .1, {y:619});

then your problem is with Main.
what's your document class?  what's the class of your MainScene variable?   (and, those can't be the same.)

Similar Messages

  • Whar do you do if you go to the app storee on your iphone 5c and get nothing but a blank screen?

    What does one do if you go to the app store on an iphone 5c and all you get is a blank
    screen?

    Hi hs from sc,
    Thanks for visiting Apple Support Communities.
    You may find the steps in this article helpful if you only see a blank screen when you visit the iTunes Store or App Store:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Regards,
    Jeremy

  • When I open up a 2nd tab from my gmail I get nothing but a blank screen & no search bar

    When I open firefox I go into gmail right away or renew my session. When I go to open a 2nd tab to search for something on the interenet I get a blank white screen w/no search bar. I then tried going to the orange firefox dropdown box and click on find. This does no good either.

    I would just like to add to this thread. I have tried everything and every way listed here and found my own solution, for those of you who were having the same issue as me.
    1. Type "'''about:config'''" in your search bar
    2. Click "'''I'll be careful, i promise'''"
    3. Type "'''newtab'''" in the search bar
    4. Find "'''avg.userPreferences.newtabDisabledByUser'''"
    5. Set value to '''true''' by either '''doube clicking''' or '''right click > toggle'''
    This immediately deactivated the AVG new tab feature and reset my browser to it's default settings.
    Hope this helps!

  • TS2771 Updated settings in iPod now I have nothing but a blank screen

    MY son update his settings in his iPod he now has a blank screen

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • HT201412 I phone won't power on.   I have nothing but a black screen

    I phone won't turn on.   I have nothing but a blank screen.   Has been charging for over an hour.  

    do a reset, hold down the home/sleeep button together until you see the apple log oand then release, then wait for hte phone to boot back up

  • My ipod wont charge ive try everthing when i plug it in to the computer nothing happen but before that it was full charge and 5 mins after that it was 10% and tried charging it nothing but now the screen is blank...So what should i do?

    My ipod wont charge ive try everthing when i plug it in to the computer nothing happen but before that it was full charge and 5 mins after that it was 10% and tried charging it nothing but now the screen is blank...So what should i do?

    - See:
    iPod touch: Hardware troubleshooting
    - Try another cable
    - Try another charging source
    - Look at the dock connector on the iPod. Look for abnormalities like bent or corroded contacts, cracked or broken plastic.
    - Make an appointment at the Genus Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • Hi, I downloaded Yosemite this evening. I downloaded o.k., it installed o.k. and then it restarted the Macbook and now it seems frozen. There is nothing but a grey screen, the apple logo and a bar that is half black

    Hi, I downloaded Yosemite this evening. It downloaded fine, it installed fine and then it restarted the Macbook. Now it seems to be frozen. I have nothing but a grey screen with the apple logo and a bar that is half black and half grey. It's been like this for over an hour. Should I worry or is it still working at something? How do I fix this if it's not still working at installing something. Thank goodness for this poor old pc as backup.

    Take each of these steps that you haven't already tried. Stop when the problem is resolved.
    To restart an unresponsive computer, press and hold the power button for a few seconds until the power shuts off, then release, wait a few more seconds, and press it again briefly.
    Step 1
    The first step in dealing with a startup failure is to secure the data. If you want to preserve the contents of the startup drive, and you don't already have at least one current backup, you must try to back up now, before you do anything else. It may or may not be possible. If you don't care about the data that has changed since the last backup, you can skip this step.
    There are several ways to back up a Mac that is unable to start. You need an external hard drive to hold the backup data.
    a. Start up from the Recovery partition, or from a local Time Machine backup volume (option key at startup.) When the OS X Utilities screen appears, launch Disk Utility and follow the instructions in this support article, under “Instructions for backing up to an external hard disk via Disk Utility.” The article refers to starting up from a DVD, but the procedure in Recovery mode is the same. You don't need a DVD if you're running OS X 10.7 or later.
    b. If Step 1a fails because of disk errors, and no other Mac is available, then you may be able to salvage some of your files by copying them in the Finder. If you already have an external drive with OS X installed, start up from it. Otherwise, if you have Internet access, follow the instructions on this page to prepare the external drive and install OS X on it. You'll use the Recovery installer, rather than downloading it from the App Store.
    c. If you have access to a working Mac, and both it and the non-working Mac have FireWire or Thunderbolt ports, start the non-working Mac in target disk mode. Use the working Mac to copy the data to another drive. This technique won't work with USB, Ethernet, Wi-Fi, or Bluetooth.
    d. If the internal drive of the non-working Mac is user-replaceable, remove it and mount it in an external enclosure or drive dock. Use another Mac to copy the data.
    Step 2
    If the startup process stops at a blank gray screen with no Apple logo or spinning "daisy wheel," then the startup volume may be full. If you had previously seen warnings of low disk space, this is almost certainly the case. You might be able to start up in safe mode even though you can't start up normally. Otherwise, start up from an external drive, or else use the technique in Step 1b, 1c, or 1d to mount the internal drive and delete some files. According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation.
    Step 3
    Sometimes a startup failure can be resolved by resetting the NVRAM.
    Step 4
    If a desktop Mac hangs at a plain gray screen with a movable cursor, the keyboard may not be recognized. Press and hold the button on the side of an Apple wireless keyboard to make it discoverable. If need be, replace or recharge the batteries. If you're using a USB keyboard connected to a hub, connect it to a built-in port.
    Step 5
    If there's a built-in optical drive, a disc may be stuck in it. Follow these instructions to eject it.
    Step 6
    Press and hold the power button until the power shuts off. Disconnect all wired peripherals except those needed to start up, and remove all aftermarket expansion cards. Use a different keyboard and/or mouse, if those devices are wired. If you can start up now, one of the devices you disconnected, or a combination of them, is causing the problem. Finding out which one is a process of elimination.
    Step 7
    If you've started from an external storage device, make sure that the internal startup volume is selected in the Startup Disk pane of System Preferences.
    Start up in safe mode. Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Post for further instructions.
    Safe mode is much slower to start and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know the login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    When you start up in safe mode, it's normal to see a dark gray progress bar on a light gray background. If the progress bar gets stuck for more than a few minutes, or if the system shuts down automatically while the progress bar is displayed, the startup volume is corrupt and the drive is probably malfunctioning. In that case, go to Step 11. If you ever have another problem with the drive, replace it immediately.
    If you can start and log in in safe mode, empty the Trash, and then open the Finder Info window on the startup volume ("Macintosh HD," unless you gave it a different name.) Check that you have at least 9 GB of available space, as shown in the window. If you don't, copy as many files as necessary to another volume (not another folder on the same volume) and delete the originals. Deletion isn't complete until you empty the Trash again. Do this until the available space is more than 9 GB. Then restart as usual (i.e., not in safe mode.)
    If the startup process hangs again, the problem is likely caused by a third-party system modification that you installed. Post for further instructions.
    Step 8
    Launch Disk Utility in Recovery mode (see Step 1.) Select the startup volume, then run Repair Disk. If any problems are found, repeat until clear. If Disk Utility reports that the volume can't be repaired, the drive has malfunctioned and should be replaced. You might choose to tolerate one such malfunction in the life of the drive. In that case, erase the volume and restore from a backup. If the same thing ever happens again, replace the drive immediately.
    This is one of the rare situations in which you should also run Repair Permissions, ignoring the false warnings it may produce. Look for the line "Permissions repair complete" at the end of the output. Then restart as usual.
    Step 9
    If the startup device is an aftermarket SSD, it may need a firmware update and/or a forced "garbage collection." Instructions for doing this with a Crucial-branded SSD were posted here. Some of those instructions may apply to other brands of SSD, but you should check with the vendor's tech support.  
    Step 10
    Reinstall the OS. If the Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade.
    Step 11
    Do as in Step 9, but this time erase the startup volume in Disk Utility before installing. The system should automatically restart into the Setup Assistant. Follow the prompts to transfer the data from a Time Machine or other backup.
    Step 12
    This step applies only to models that have a logic-board ("PRAM") battery: all Mac Pro's and some others (not current models.) Both desktop and portable Macs used to have such a battery. The logic-board battery, if there is one, is separate from the main battery of a portable. A dead logic-board battery can cause a startup failure. Typically the failure will be preceded by loss of the settings for the startup disk and system clock. See the user manual for replacement instructions. You may have to take the machine to a service provider to have the battery replaced.
    Step 13
    If you get this far, you're probably dealing with a hardware fault. Make a "Genius" appointment at an Apple Store, or go to another authorized service provider.

  • HT204400 Light is flashing continueously on the front of the apple tv. No picture and no sound. Does anyone know what is wrong? Everything is plug in correctly. When I disconnect everything and re plug it in the apple icon comes up, but then blank screen

    Light is flashing continueously on the front of the apple tv. No picture and no sound. Does anyone know what is wrong? Everything is plug in correctly. When I disconnect everything and re plug it in the apple icon comes up, but then blank screen with no sound and no picture. Does anyone know what is wrong?
    l have an apple tv  2 generation please help me

    Welcome to the Apple Community.
    If your problem persists get yourself a micro USB cable (sold separately), you can restore your Apple TV from iTunes:
    Remove ALL cables from Apple TV. (if you don't you will not see Apple TV in the iTunes Source list)
    Connect the micro USB cable to the Apple TV and to your computer.
    Reconnect the power cable (only for Apple TV 3)
    Open iTunes.
    Select your Apple TV in the Devices list, and then click Restore.
    (You may already have a micro USB cable if you have a camera or other digital device)

  • TS3274 My ipad2 is not responding..I want to restart it but i can get nothing but a black screen with only the apple logo and a small gear icon. It occasionally beeps but no other response.  Any ideas as to what may be wrong and what I can do?

    My ipad2 is not responding..I want to restart it but i can get nothing but a black screen with only the apple logo and a small gear icon. It occasionally beeps but no other response.  Any ideas as to what may be wrong and what I can do?

    Try:
    - iOS: Not responding or does not turn on
    - If not successful and you can't fully turn the iPad fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • MacBook pro won't power up! Acting asleep, black screen, fans don't fire up. Light nr catch pulsing, have taken batt out and reset but still blank screen, help!!

    MacBook pro won't power up! Acting asleep, black screen, fans don't fire up. Light nr catch pulsing, have taken batt out and reset but still blank screen, help!!

    You may want to try this.
    Solution A
    Start up your MBP while pressing Option (alt)|, Command, P, R until your hear 3 chimes rather than 2 as indicated by apple. This worked for me the first time.
    Solution B
    Start your MBP while pressing Option (alt), Command, S
    Hold until you see the computer automatic routine. When it finally stops type the following followed by "return":
    fsck -fy
    It will probably indicate some problem related to "pcscd.pub" (should be 16 instead of 17). I haven't figured out what this means but somewhere in the Internet i read it is related to scan cards...
    More importantly this routine will fix any problems with your HDD similarily to disk repair. When it ends, it will tell you if it has fixed/modified anything. If it has, run the routine again by typing again "fsck -fy"
    Lastly, reboot by typing "reboot" (followed by "return")
    Solution C
    Start up your MBP while pressing option (alt), command, S
    hold keys until you see computer commands scrolling
    when the routine stops type the following, each line followed by the "return" key:
    mount -uw /
    chmod 775 /
    chmod 1775 /
    reboot
    After which your computer should reboot on it's own.
    Each of the above has worked for me at one time or another. Once your computer has rebooted from the DVD you can reinstall OS X. If your problems started after installing 10.5.6, then I don't suggest updating until 10.5.5.
    I'm very very disappointed with my 2007 MBP, it started to give me problems after 1 year. had to change the HDD and lately when I isntalled 10.5.6 it suddenly refused to start up., My previous Mac laptop (2003 866Mhz) worked for 4 years without a hitch. Ironically I've had to use it to access the internet and find solutions for my current MBP.
    best of luck

  • When updating to the new iOS my ipod died and now I have nothing but a white screen that won't turn off and itunes now doesn't recognize it

    When I was updating my ipod touch to the new iOS last night it died and now I have nothing but a white screen. iTunes no longer recongnizes the device and it won't turn off when I hold the power button or when I hold the power and home screen button.

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • I'm using a macbook and recently cant access my Hotmail account. Normally it comes up as my home page. The address bar shows what looks like my account but a blank screen. Help

    Question
    I'm using a macbook and recently cant access my Hotmail account. Normally it comes up as my home page. The address bar shows what looks like my account but a blank screen.
    I have disabled Silverlight after seeing that suggested somewhere. That didnt help.

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    See also:
    * [[Troubleshooting extensions and themes]]

  • HT2538 I get nothing but a grey screen at startup

    When I turn on my 2008 iMac, I get nothing but a grey screen . . . put in the rescue disk (and held down the "C") and got the Apple logo and the little spinning think, but then to black screen?  What to do?  What is causing this?

    Hello,
    Have you blown the dust out lately?
    If you boot up holding Option or alt key, how long will it set on that screen without going black?

  • L505 - nothing but a white screen

    Hello everyone,
    I need help. My L505 is displaying nothing but a white screen. I turn it off, turn it back on and there's nothing but a white screen. I can't do anything to get rid of it. I am unable to access my home screen. All I have is a white screen. Any help or suggestions would be greatly appreciated
    Thanks,
    Steve

    Try these suggestions:
    What can I do if my Windows 7 or Windows Vista laptop won't start?
    - Peter

  • When I download a document, I get a message saying download was successful, but a blank screen where the document should be. What am I doing wrong?

    When I download a document, I get a message saying download was successful, but a blank screen where the document should be. What am I doing wrong?
    I go to an internet company and try to download a document from it. A tab pops up saying the download was successful, but all I see is a blank screen with UI at the top. I don't understand where the download is going.

    Thanks so much for your reply fanboy20. 
    Yes, just made sure of that.  I do have the latest version of Flash player.  But I have just staggered upon the answer.  Chalk it up to being a newbi.  I was not putting my apple tv to sleep and it would not allow me to see
    you tube on my computer while it was still operating on my TV.  When I realized that, I put the apple tv to sleep and bingo, my computer runs you tube fine.   Thanks again for your response.

Maybe you are looking for

  • BAPI for Search Help

    Hi Experts!! How to create Search help using BAPI ? My scenario is: In webdynpro same bapi can be called to find possible f4 value. How to do that ? Any Idea pls share ... Thanks In Advance.

  • Jerky video - slow responses using Premiere Elements 9

    I just bought a new laptop (desktop) replacement, specifically to create videos on DVD.  I am using video footage that was originally in the AVCHD format but were converted to MP4's.  All videos appear fine on the workspace.  But when dragging the cl

  • TWO WEEKS for an engineer call out??? Ridiculous!

    Hello everyone Today we had some bad weather and a very short powercut. When the power came back on, BT Vision did not. I went through all the procedures - unfortunately I know them having had to go through it all not too long ago - and still nothing

  • Com.apple.ichat files missing

    My iChat hasn't been opening. I've been trying to follow the advice posted by other users and putting the /Users/macbookprompls/Library/Preferences/com.apple.iChat.AIM.plist file in the trash. It worked a couple months ago, but this morning, when my

  • Running External Program

    Hi All I really hope that some one can help ,e with my problem as i have no idea. OK i am calling an external program that outputs documents. This program uses control files and for each job there are 5 control files. Thus i call this program 5 times