Using Preloader But Content Not Loading

Hi.
Here's the Cliffs Notes version:
I've a 2 frame movie: Frame 1 is the preloader; Frame 2 a movie clip (web site).
Both work fine individualy, but the dynamic content I want pre-loaded is not loaded into the movie clip (web site) after the preloader animations.
Verbose version:
I'm have a preloader on frame 1 of the timeline. Here's the code:
stop ();
this.loaderInfo.addEventListener (ProgressEvent.PROGRESS, onLoading);
this.loaderInfo.addEventListener (Event.COMPLETE, onComplete);
function onLoading (evt:ProgressEvent):void
          var loaded:Number = evt.bytesLoaded / evt.bytesTotal;
          percent_txt.text = (loaded * 100).toFixed(0) + "%";
          var counter = (loaded * 100) * 3.6;
          masked_mc.mask = masking_mc;
          masked_mc.rotation = counter;
//          trace (masked_mc.rotation);
          if (masked_mc.rotation < 0)
                    masked_mc.mask = null;
function onComplete (event:Event):void
          this.loaderInfo.removeEventListener (ProgressEvent.PROGRESS, onLoading);
          this.loaderInfo.removeEventListener (Event.COMPLETE, onComplete);
          gotoAndStop (2);
On frame 2 is only a movie clip (a web site).
In this movie clip on frame 1, I have a dynamic text field into which gets loaded some external text, styled with HTML and CSS.
At the moment, when a visitor comes to the site for the first time, he can actually see the text load, then see the CSS styles get applied. I would like to use my preloader so that this text loading and styling is completed before they get to see the home page.
Trouble is the, while the preloader itself works, the HTML and CSS still does not get loaded until after the preloader. This makes sense as the code for calling and loading the HTML/CSS is in the movie clip.
So I thought, put the code....
//NEWS --------------------------
// Load the external .swf "navidNews.swf".
var navidNewsSWF:String = "assets/fla/navidNews.swf";
var navidNewsURLRequest:URLRequest = new URLRequest(navidNewsSWF);
var navidNewsLoader:Loader = new Loader();
navidNewsLoader.load(navidNewsURLRequest);
//Put "navidNews.swf" on the stage.;
newsContainer_mc.addChild(navidNewsLoader);
into frame 1, same as that for the code for the preloader. But because the empty movie clip into which navidNews.swf is loaded is not in the same frame as the preloader there are errors.
Okay, move empty movie clip newsContainer_mc into frame 1 with preloader, which will hide the news container.
What am I missing? Should I not put a movie clip of my web site on frame 2, but instead move the preloader into the web site movie clip, putting it on frame 1?
I've been playing musical frames with this thing for two days now.......

load the text and css in frame one (they need not be be used until frame 2) and incorporate those into your preloader.

Similar Messages

  • Pdf content not loading while printing using JavaScript

    In my web app, I am trying to print a doc using JavaScript, but content of the pdf is not getting loaded, this can be seen in the below link.
    https://drive.google.com/file/d/0B2nqjT-VxFWwVVhsQ1hLUnJ3MFU/view?usp=sharing
    Code:
    var printWin = window.open(this.lURL, '', 'top=100, left=500, width=900, height=800, titlebar=no');
    printWin.print();
    "this.lURL" is link which brings the pdf file/doc.
    Note: As soon as I click on cancel button of print, the content gets loaded.
    And if I click print blank page gets printed.

    ''guigs2 [[#answer-708101|said]]''
    <blockquote>
    I understand that the web app that your are developing has a function to print the contents of a pdf created with javascript, :
    Please first check these basic troubleshooting steps for printing:
    *[[Fix printing problems in Firefox]]
    Does this happen with the default pdf viewer or another?
    Next also check with stackoverflow.com:
    [https://support.mozilla.org/en-US/kb/where-go-developer-support Where to go for developer support]
    </blockquote>
    I want a solution which doesn't require to reset or change the settings of the browser.
    Once the app is available globally everyone should be able to use this functionality without altering the settings of the browser.

  • I switched on my PC and there was an update for realplayer. Since then firefox will not load. It is running according to Task Manager. I've downloaded a another copy of the programme using IE but whilst it loaded as a programme, does not open a window.

    I switched on my PC and there was an update for realplayer. Since then firefox will not open as a window. It is running according to Task Manager. I've downloaded a another copy of the programme using IE but whilst it loaded as a programme, does not open a window.

    Hi again,
    Helps if I give the correct link ! <br/>The press shift button appears to still work, but the option to start in safe mode from the programs listing of a standard install I do not think exists anymore.
    Safe mode will start from a command line, (or a shortcut) and in some circumstances you may need to enter the full path name on a command or shortcut detailed instructions are at http://kb.mozillazine.org/Safe_mode
    Remember (at least at this stage) do not make changes when you get the options list, just click on the continue button.
    If you think that RealPlayer is causing the problem you could uninstall that for now.
    Firefox recent versions are 3.6 4.0 (and 5.0 in beta). There is some debate as to whether creating new profiles or re-installing Firefox is the simplest method of troubleshooting and solving some of these problems, personally I use multiple profiles and multiple versions of Firefox, and tend to forget the required procedures are less than straightforward. For now at least try [[safe mode]] again.
    * see also Instructions for [[installing a previous version of firefox]]

  • I am using strobe player in flex builder 4.6 but its not loading.

    I am using strobe player in flex builder 4.6 but its not loading,
    I have made required change in compiler option as below: 
    -locale en_US -swf-version=11 -define CONFIG::LOGGING true -define CONFIG::FLASH_10_1 true -define CONFIG::MOCK false -define CONFIG::PLATFORM true
    There is no any error but player does not load, here is my code I am using;
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx"
          applicationComplete="init(event)" backgroundAlpha="0">
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
      <![CDATA[
       import mx.core.UIComponent;
       private const HTTP:String = "http://ec2-54-84-194-229.compute-1.amazonaws.com:1935/live/legacyLive/manifest.f4m?DVR";
       protected function init(event:Event):void
        var playerInstance:StrobeMediaPlayback = new StrobeMediaPlayback();
         var ui:UIComponent = new UIComponent();
        var parameters:Object = {
         src:HTTP,
         controlBarMode:"floating",
         controlBarAutoHide:"true"
        playerInstance.initialize(parameters, systemManager.stage, systemManager.loaderInfo, null);
        ui.addChild(playerInstance as DisplayObject);
        addChild(ui);
      ]]>
    </fx:Script>
    </s:Application>

    I am using strobe player in flex builder 4.6 but its not loading,
    I have made required change in compiler option as below: 
    -locale en_US -swf-version=11 -define CONFIG::LOGGING true -define CONFIG::FLASH_10_1 true -define CONFIG::MOCK false -define CONFIG::PLATFORM true
    There is no any error but player does not load, here is my code I am using;
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx"
          applicationComplete="init(event)" backgroundAlpha="0">
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
      <![CDATA[
       import mx.core.UIComponent;
       private const HTTP:String = "http://ec2-54-84-194-229.compute-1.amazonaws.com:1935/live/legacyLive/manifest.f4m?DVR";
       protected function init(event:Event):void
        var playerInstance:StrobeMediaPlayback = new StrobeMediaPlayback();
         var ui:UIComponent = new UIComponent();
        var parameters:Object = {
         src:HTTP,
         controlBarMode:"floating",
         controlBarAutoHide:"true"
        playerInstance.initialize(parameters, systemManager.stage, systemManager.loaderInfo, null);
        ui.addChild(playerInstance as DisplayObject);
        addChild(ui);
      ]]>
    </fx:Script>
    </s:Application>

  • I recently saved a draft email using mail, but now whenever I try to reopen it, it says loading but will not load. All my other drafts load fine except for this one. Is there a way to access the draft outside of mail?

    I recently saved a draft email using mail, but now whenever I try to reopen it, it says loading but will not load. All my other drafts load fine except for this one. Is there a way to access the draft outside of mail?

    Create a new profile as a test to check if your current profile is causing the problems. <br>
    See '''Creating a profile''':
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer files from a previously used profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over the problem <br>
    '''Profile Backup and Restore'''
    *http://kb.mozillazine.org/Profile_backup
    *https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Firefow will not open at all on one computer and on the other it opens but will not load. I just added a new wireless router, could this have anything to do with it, it had been working fine up until I installed it Tuesday night. Internet explorer won't

    I installed a new wireless router on Tues. (May4) up until that time I had no problems using Firefox. Now I cannot get it to open on one computer, and the other it will open but will not load. Wondering if it has anything to do with the router, my provider or our computers. Again, it had been working fine. I am also unable to open interent explorer now on either computer.
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; AOL 9.0; Windows NT 5.1; GTB6.4; AskTB5.6)

    Sounds like a problem with the router installation/configuration (likely) or a DOA router (very unlikely).
    Visit the forums for the router manufacturer (i.e., linksys, d-link, etc.) and ask for assistance there. There is probably a link to help listed in the router manual.

  • When I click on the iPhoto a gray appears along with the perpetual wheel but does not load.   Any recommendations?

    When I click on the iPhoto a gray appears along with the perpetual wheel but does not load.   Any recommendations?

    Assuming you're using iPhoto 09 or later:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Firefox does not fully load Barclaycard Authentication site. It loads as far as asking for certain letters in my pasword but does not load the "Submit" button so I cannot continue with my purchase and have to switch to IE8 browser to purchase anything ov

    Firefox does not fully load Barclaycard Authentication site. It loads as far as asking for certain letters in my pasword but does not load the "Submit" button so I cannot continue with my purchase and have to switch to IE8 browser to purchase anything over the internet. Any clues?
    == This happened ==
    A few times a week
    == Couple of weeks ago

    Your UserAgent string in Firefox is totally messed up by another program that you installed, and Barclays doesn't know you are using Firefox 3.6.6 - it probably looks like IE 6.0 to that website.
    [http://en.wikipedia.org/wiki/User_Agent]
    type '''about:config''' in the URL bar and hit Enter
    ''If you see the warning, you can confirm that you want to access that page.''
    Filter = '''general.useragent.'''
    Right-click the preferences that are '''bold''', one line at a time, and select '''''Reset''''',
    Then restart Firefox

  • I have an issue with Acrobat, after a few uses, the program will not load, the only way to fix it is to completely uninstall the CS suite wipe the drive and reinstall the software, then after a few uses it stops working, how do i fix this?

    after a few uses, the program will not load, the only way to fix it is to completely uninstall the CS suite wipe the drive and reinstall the software, then after a few uses it stops working, how do i fix this?

    Not sure of an answer to your basic question, but it may be that you can run a repair (on Windows --> Control Panel>Programs & Features and run the repair on Acrobat). If that fixes the issue, at least temporarily, at least you will not be reinstalling everything -- a real pain.
    Next, open Acrobat and go to the Help to run the updates and be sure you are current. On some OSs, the updates are critical.

  • ı have installed an application about lock system but the application isnt about lock systm this is an code reader. when ı see the application's pictures this is an lock application but content not same. I have got laid...what shoul I do?

    I have installed an application about lock system but the application isnt about lock system this is an code reader. When ı see the application's pictures this is an lock application but content not same. I have got laid...what should I do?

    semihtinas wrote:
    Please make something these fraudsters
    You're not addressing Apple here. This is a user to user technical support forum. You can submit feedback to Apple here:
    http://www.apple.com/feedback
    Other contact information can be found using the Contact Us link at the bottom right of every page.

  • HT201272 I bought a season pass for a TV series on my MAC. It shows up on my Apple TV but isI not loaded. I had to download on my MAC the wait again to download on the Apple TV. Is this really how it is done? It is very time consuming.

    I bought a season pass for a TV series on my MAC. It shows up on my Apple TV but isI not loaded. I had to download on my MAC the wait again to download on the Apple TV. Is this really how it is done? It is very time consuming. What am I doing wrong?

    If you downloaded it to your Mac you don't watch it on your ATV unless you are using home sharing. Otherwise, you can stream it from your ATV directly from the store... which means you somewhat download it twice.

  • Mac Pro early 2008 2 x 2.8GHz Quad Core 10.7.5, replaced 4 x 500ghds with 4 x 3Tb and Raid card Raid5 them OK but can not load time machine back up as it does not see any of the 4 drives, neither does disc utilities, any thoughts?

    On my Mac Pro, early 2008 2 x 2.8GHz Quad Core 10.7.5, replaced 4 x 500ghds with 4 x 3Tb. The Raid card Raid 5ed them OK but can not load time machine back up as it does not see any of the 4 drives, neither does disc utilities, any thoughts?

    You don't see drives when using a hardware RAID only the volumes.
    WD Green are not suitable for hardware RAID (or software RAID for that matter).
    USB2 and TimeMachine are a disaster waiting to happen. I've used SATA (internal) and eSATA (using SATA PCIe cards) trouble-free.
    I can't say I begin to understand your use or "choosing the install drive for the backup"
    Install what?
    You don't load TimeMachine. Maybe seems minor but that is not how to describe the behavior of software.
    You read FAQ and How To http://www.apple.com/support/timemachine
    Time Machine’s Gory Details:
    https://www.apple.com/support/timemachine/
    TimeMachine 101
    https://support.apple.com/kb/HT1427
    Lion Recovry & TimeMachine
    http://www.apple.com/support/lion/installrecovery/
    http://www.apple.com/support/lion/
    How To Restore Your System
    http://pondini.org/TM/14.htmlMac OS X v10.7 Lion
    Pondini's Blog: Time Machine - Troubleshooting -- B5.  Would you like to inherit (or re-use) the backup . . . ?

  • TS3274 How can I connect tv to ipad?  Want it to use netflex but will not connect using USB cable.

    How can I connect tv to ipad?  Want it to use netflex but will not connect using USB cable.

    http://store.apple.com/us/browse/home/shop_ipad/ipad_accessories/cables_docks
    You should find a solution here

  • I can't open my iphoto. When I click on it the screen opens but will not load.

    I can't open my iphoto. When I click on it it opens the screen but will not load. Can't see any of my pictures. HELP!

    It's Iphoto '11 version 9.2.1

  • Ever since I downloaded the new Firefox, when I right-click on a link to open it in a different tab, the tab will open but will not load anything, no matter what link I try.

    Ever since I downloaded the new Firefox, when I right-click on a link to open it in a different tab, the tab will open but will not load anything, no matter what link I try. The tab will show the website destination in the navigation bar, but will not automatically load it; I have to press the load button in the navigation bar instead of it instantly loading.
    == This happened ==
    Every time Firefox opened
    == The newest version, 3.6.6, of Firefox was downloaded

    It's not specific sites. I can middle-click on the same link 50 times and it will open it in a new tab 45 times and 5 of those times, it will randomly open it in an entirely new window. I don't know what's causing this.
    It happens so randomly that I don't know how to pin-point what it could be.

Maybe you are looking for