Ghost in the preloader

Hi -
I'm trying to build a preloader into "master.fla" showing a
simple animation (loaderani_mc) and the progress % count
(loading_txt). This preloader is not for bringing in external
content but for preloading stuff on subsequent frames of
master.fla.
I've been messing with so many variations I may have gotten
lost ...but now I'm seeing double!
Using the attached code I'm seeing 2 of the same preload
animation with % text...even though there's only one mc on stage.
If I comment out the lines about loaderani_mc and loading_txt
- only the old graphic and % readout shows up on the screen.
Even without any instances of the loader_ani on the stage,
the old one shows up.
If I comment out all of the code I see nothing... so there's
a ghost in this code somewhere.
There is other actionscript on other frames in the file but
the only mention of loader_ani or stuff like "bytesLoaded" is in
the code I've attached.
What's worse is - the old preload animation isn't working
right - it appears after about 35% has gone by. The new one will
appear in 2 or 3%. So I have a real reason to replace the old with
the new ... but I can't figure out where it is.
Am I using this code correctly? Is there a mechanism in
actionscript or Flash I can use to flush out this ghost?
TIA some expert input.
JL

Found it! Duh!
OK - as I said, I'm using this code to build a loader in
master.fla. I want all it's content to load before any of it
appears. So I took put this code in master.fla and saved it as
"master+pre.fla", ...and proceeded to
"mcLoader.loadClip("master.swf", 1);"
So the ghost preloader was "hiding" in the file being loaded
in.
Sorry to bother all.
So -
Can I delete this entire thread?

Similar Messages

  • How can I get a preloader to launch a main (external) swf file, and have the main file remove the preloader once it's fully loaded?

    Using Flash MX, ActionScript 2:
    I’ve been struggling for several weeks, trying to get a preloader to work on a large (~80 MB) photo portfolio file (using the method where the preloader is on frame 1 of the file, and when loading is completed, it jumps to the content).  I’ve done countless tutorials, and none seem to work on my presentation.  I even tried downloading a trial version of CS4 so I could export every one of the file’s library movie clips and images so that they load on Frame 2 (a feature MX doesn’t have).  It takes about 20 seconds for the .exe to load from a CD, and no matter which preloader construction I use, it always seems to appear in the last few seconds before the movie loads completely.  During the initial wait time, there’s no indication that anything is happening:  no hourglass on the mouse, and not even a blank screen. This is only true for the first time that the file is loaded from the CD; on subsequent loads, the file must already be in RAM, because it loads within a few seconds. 
    I decided that I’m going to try and make the file which the user clicks on (one named Windows_Portfolio.exe or another called Mac_Portfolio.hqx) the preloader so that it would be tiny, and would load instantly.  I want that file to launch the external huge portfolio file (renamed files.swf), keep track of its loading progress, and cycle through a slideshow (10 thumbnail images that transition into each other over 100 frames) proportionally, based upon the percentage of files.swf that had been loaded.
    I assume that there should be a loadMovie() or a loadMovieNum() command on the preloader’s timeline to launch files.swf, and that the initial code of files.swf should have some sort of this._parent._visible=false or other way of deleting the preloader on level0.  Can anyone explain the steps to me, or direct me to a good Flash MX tutorial that explains how to launch another external swf from a preloader .exe, keep track of its load progress, and delete the preloader .exe once the external swf had been loaded?
    Also, I’ve read that, using this construction on a CD, every file has to be in the same place, and that I can’t nest files.swf in a folder named “files,” and reference it with files/files.swf.  Is this true?
    Thanks for any assistance you can offer.

    If you know JavaScript (ECMA Script) then you might be able to get it done applying a for loop and a random function
    to the for loop if you know how to get a page-loaded request into JavaScript.
    But an easier solution, if you know ActionScript 3.0, and if your SWF's don't need to be recoded and can load into a "container" SWF would be to create a master FLA file that loads your SWF's in a random fashion using Math.random() as a multiplier, though you won't see much variation if you only have 2-3 SWF's to load--if you had more than that then you would begin to benefit from the random function's capabilities.  In ActionScript 3.0 use the load() method along with addChild() to load the SWF and add it to the stage.  You will be able to search for specifics on how to code the FLA properly by using Flash's Adobe Help tool and also using an internet search.
    -markerline
    P.S. Once you have the master FLA coded you can Publish it to an SWF and an HTML and if the container/master SWF needs to be in a page with other content you can simply copy and paste the object and embed tags for the container SWF from the published HTML into any place on your master HTML that you need it to reside.  You can then use CSS to control placement of the SWF object if it is in a div tag.

  • I need the info of the preloaded songs that came with my Zen Vision:M

    I accidentally deleted the preloaded tracks on my Zen Vision:M. I've read other posts and realize that since they are copyrighted the only way i can get them back is to buy them, and Ive even gone and checked out Naxos.com, but i think they have specific tracks, and I think the one track I want back is a medley. Im not sure if this was obtained by Creative from Naxos.com or not, but either way I cant find it on Naxos.com. I was hoping someone could post some info on this specific track so I can do a better search or even find it on itunes or something. I dont know much about it but I believe the file was called symphony.mp3 and I belei've it was a medley of John Williams songs. Does anyone have any info on this and what I can do to locate this song, whether I have to purchase it again or not?
    Thanks!!

    blkhwks9 wrote:
    I accidentally deleted the preloaded tracks on my Zen Vision:M. I've read other posts and realize that since they are copyrighted the only way i can get them back is to buy them, and Ive even gone and checked out Naxos.com, but i think they have specific tracks, and I think the one track I want back is a medley. Im not sure if this was obtained by Creative from Naxos.com or not, but either way I cant find it on Naxos.com. I was hoping someone could post some info on this specific track so I can do a better search or even find it on itunes or something. I dont know much about it but I believe the file was called symphony.mp3 and I belei've it was a medley of John Williams songs. Does anyone have any info on this and what I can do to locate this song, whether I have to purchase it again or not?
    Thanks!!
    the songs on the player are bound to the machine as I recall, you can't copy them off and still have them work.
    I would suggest simply buying a few john williams albums

  • Install windows 8 64bit on 64bit architecture tablet(acer iconia w4-820) by removing the preloaded 32bit windows 8.1 or dual boot

    Hi,
    I need to install windows 8 64bit on a 64bit architecture Tablet(acer iconia w4-820) by removing the preloaded 32bit windows 8.1 or should make it as dual boot. For a project purpose.
    I tried booting the tablet from windows 8 64bit DVD for installation but it does't even detect the DVD Drive. when i insert the recovery DVD which came with acer it gets detected. 
    The windows 8 64bit DVD which am trying to install is volume licensed which we use to install on our laptops. That works fine with Laptops.
    Is their any different version of windows 8 do i need to try for installing on Tablet(acer iconia w4-820) or where am i going wrong.
    Thank for your help. 

    SM
    DISCLAIMER.  I would contact Acer about this to be safe, but if you only have one HD in the tablet you are going to have to do a clean install by formatting the HD.  You cant run 64 bit & 32 bit on the same drive AFAIK.
    Wanikiya and Dyami--Team Zigzag

  • Why isn't the preloader in Captivate 6 working?

    I just find that file has to load 100% before anything plays irrespective of the preloader setting!

    Adobe has acknowledged that there is an issue with preloaders in Cp6:
    http://forums.adobe.com/message/5456349
    The best solution appears to be to upgrade to Cp7.

  • Why the preloader doesn't work in IE 8 but works in FireFox?

    Why the preloader doesn't work in IE 8 but works in FireFox?
    Please see the attached files.  Thanks in advance.

    Why doesn't the preloader work in IE8?
    What's "virtual sandbox"?

  • How do I program the preloader in a fluid swf from another fluid swf?

    I have built a fluid swf(preloader.swf) which is like an intro-cum-preloader screen to a flash site which is stored in main.swf. How do I program the preloader.swf to show the preload percentage of main.swf ?
    All the swf files used here are fluid,so there is an actionscript file which loads the movieclips onto stage dynamically,please give me a solution to this keeping this in mind. Please do ask for clarifications if needed.

    You want to use the Loader class in Actionscript 3. If you look at the example in the online help, you'll see that there are, among others, a progress event and a complete event. You can use this progress event, to track the progress of the loading of the file. The complete event occurs when the file has completely loaded.
    Have a look at this: http://help.adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/WS5b3ccc516d4fbf351e63e3d1 18a9c65b32-7fa4.html it explains how to use a Progress Bar component to show the loading of a file.

  • How do i get the preloader to stay in the center of the screen.

    im trying to get my preloader to stay in the center of the screeen. So that when I change the screen resoultioon from 1920x1080 to 1360x768 to preloader stays centerd instead of off screen.

    Hi Sabermaster,
    Here are 3 example
    http://dealsdrizzle.com/preload_stage_center/type1.html
    http://dealsdrizzle.com/preload_stage_center/type2.html
    http://dealsdrizzle.com/preload_stage_center/type3.html
    Download link
    http://dealsdrizzle.com/preload_stage_center/preload_stage_center.zip
    Please note that in some cases i have set the stage to 100% and in some in px.
    Case 1 - In this I have set the position of loading image of the preloader in % and stage as 100%. You can see that the image is almost in center.. but not exactly.. resize the window and see the error magnify with higher screen resolutions.
    Case 2 - In here I have made a little modification to the type2_edgePreload.js file
    I have added these line in there somewhere. (inside type2_edgePreload.js file)
    pow = (window.innerWidth)/2;
    poh = (window.innerHeight)/2;
    preloaderImgHeight = 18; //Add your Image height here manually everytime once you are done finally with your entire composition else edge will change this file again when you save
    preloaderImgWidth = 62; //Add your Image Width here manually
    rect:[pow-(preloaderImgWidth/2),poh-(preloaderImgHeight/2),'62px','18px','auto','auto'],
    this keeps the preloader image centered to the page... resize the window to different sizes and compare.. It will be exactly in the middle.
    Case 3 - In advancement to Case 2 - I have added these statements in compositionReady event of stage.
    sym.$("Stage").css('margin','auto');
    sym.$("Stage").css('position','relative');
    sym.$("Stage").css('left','0');
    This centers the stage.. (For this case refer to type3_edgePreload.js; which is same as type2_edgePreload.js)
    Remember - if you open the compostion in edge the changes made to edgePreload.js will be reverted.
    If you happen to revert these files by any chance. Close Edge. Make changes to edgePreload.js file and open the .html file directly to see the result.
    I hope this helps.
    - Vinay

  • Relationship between the "Stage" and the "preLoader"

    Other than the "preLoader" loading the project what is the relationship between the 2 elements in the project. Is the "preLoader" on the stage? is there a "stage" for the preloader ?
    In css markup in my html file to I need to deal with them seperately if I want to move there loaction?
    I use...
    sym.$("#Stage").css({"margin": "auto"})
    in compReady to center my stage. I tried do this with the preloader but it doesn't work. The stage is centered but the preloader off to the left.  Is there some code I can add to the project so my preloader will allways center in the same location where my stage is placed?
    If I'm using html css markup to place my "stage" how do I address the preloader so it's goverened by the same markup ?
    Also maybe this should be a seperate post question, but how would i add a timer to report preload times to the console ?
    Thanks
    Joel H

    That doesn't work all the time and sometimes it works with stage but not the preloader, especialy if I want to center vertically also like
    <style>
    #Stage {
            width:350px;
            height:350px;
            position:absolute;
            left:50%;
            top:50%;
            margin:-175px 0 0 -175px;
    </style>
    this doesn't work. But if I apply the same markup to a wrapper div it does work. like
    <style>
    #StageWrapper {
            width:350px;
            height:350px;
            position:absolute;
            left:50%;
            top:50%;
            margin:-175px 0 0 -175px;
    </style>
    then in the <body>
    <div id="StageWrapper">
    <div="Stage"  class="EDGE-blah-blah">
    </div></div>
    this works great, you just can't open your html file in edge again cause it screws your project all up.
    I was just wondering why if I was centering my stage with js in the project file why the preloader wasn't doing the same thing or how to do the same thing with js in the project file
    thanks
    Joel H

  • Flex 4 - is it possible to load xml data into the preloader and pass it to the application?

    or is there a similar method to load XML data while the preloader is active, so the XML data will be ready when the main application loads?

    i'm having great difficulty finding any relevant info from the forum and the web about accessing preloader variables from the application.
    is there a way to access the preloader itself from the application?
    It seems logical that the systemManager garbage collects it. If that's the case, how can i access the systemManager from the preloader and possible pass variables to it, then later access them from the application? this seems to be the best direction to tackle this problem. but maybe i'm overlooking another way?

  • Unable to load content, it halts on the preloader half way.. anyone know what might be the problem..

    I posted the html code here, I’m not sure where I could be getting a problem, the preloader keeps loading half-way then stops and nothing loads up.. any ideas anybody?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <title>Boyancy The Official Website</title>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <meta name="google-site-verification" content="KwHoy610LOdM8rIsTXAHWk63mBpgLw2tosjHxZUL74o" />
            <meta name="author" content="Site created by Boyancy" />           
            <meta name="robots" content="all" />
            <meta name="keywords" content="Boyancy official website, Facts, Pictures, Photo's, Gallery, images, Videos, news" />
            <meta name="description" content="Boyancy's official website" />
            <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
            <script type="text/javascript" src="/_Client/Scripts/Font/cufon-yui.js"></script>
            <script type="text/javascript" src="/_Client/Scripts/Font/Rawlinson_400.font.js"></script>
            <script type="text/javascript" src="/_Client/Scripts/Font/Freight_400.font.js"></script>
            <script type="text/javascript">
                Cufon.replace('.errorTemplate h1')('h2, #slideShowOverlay h1, #siteNavigation li a, #secondNavigation li a, #slideshowNavigation li a', { hover: true })('h4, h5', { fontFamily: 'Rawlinson', hover: true });
            </script>
            <link type="text/css" rel="stylesheet" media="screen" href="/_Client/Styles/Master.css" />
            <link type="text/css" rel="stylesheet" media="screen" href="/_Client/Styles/Themes/Blue.css" />
            <!--[if lte IE 6]><link type="text/css" rel="stylesheet" media="screen" href="/_client/ie6/style/master.css" /><![endif]-->
            <!--[if IE 7]><link rel="stylesheet" type="text/css" href="/_Client/Styles/Browser/IE.css" media="screen"/><![endif]-->
            <script type="text/javascript" src="/_Client/Scripts/Global.js"></script>
            <link type="image/x-icon" href="/_Client/Styles/Images/favicon.ico" rel="shortcut icon" />
            <link type="image/x-icon" href="/_Client/Styles/Images/favicon.ico" rel="icon" />
            <link rel="canonical" href="http://www.Boyancy.com/" />
        </head>
        <body>
            <div id="Boyancy">
                <div id="headerWrapper">
                    <div id="headerContent" class="clearfix">
                        <h1 id="logo">
                            <a href="/" title="Go to the Boyancy official homepage">Boyancy official</a>
                        </h1>
                        <ul id="siteNavigation" class="clearfix">
                            <li class="selected"><a href="/">Home</a></li>
                            <li class=""><a href="/en/Boyancy/">Boyancy</a></li>
                            <li class=""><a href="/en/Latest/">Latest</a></li>
                            <li class=""><a href="/en/Screen/">Screen</a></li>
                            <li class=""><a href="/en/Fashion/">Fashion &amp; Editorial</a></li>
                            <li class=""><a href="/en/Projects/">Projects</a></li>
                            <li class=""><a href="/en/Slideshow/">Slideshow</a></li>
                        </ul>
                        <span class="headerSideBg"></span>
                    </div>
                </div>
                <div id="wrapper">
        <div id="homeOuter">
            <div id="homeInner">
                <div id="pageContent">
                    <div class="fullScreenContent" id="homePageContent">
                        <ul class="sect1">
                            <li id="home1"><a href="/en/Screen/"><img src="/_Client/Flash/images/home1.jpg" alt="Boyancy &amp; SCREEN" width="100%" /></a></li>
                            <li id="home2"><a href="/en/Fashion/"><img src="/_Client/Flash/images/home2.jpg" alt="Boyancy &amp; FASHION" width="100%" /></a></li>
                        </ul>
                        <div class="sect2">
                            <div class="floral"><img src="/_Client/Flash/images/latest-news-vector.png" alt="Boyancy" width="35%" /></div>
                            <div class="sect2_inner">
                                <h2><img src="/_Client/Flash/images/latest-from-Boyancy.png" alt="Boyancy print now available to purchase" width="100%" /></h2>
                                <h5><a href="/en/Latest/Projects/Boyancy/Boyancy-print-now-available-to-purchase/">Boyancy print now available to purchase</a></h5>
                                <p class="date"><em>7 June 2011</em></p>
                                <p>
                                Due to popular demand, Boyancy has released a print.
                                </p>
                            </div>
                        </div>
                        <ul class="sect3">
                            <li id="home3"><a href="/en/Boyancy/Picture-Book/"><img src="/_Client/Flash/images/home3.jpg" alt="Boyancy NEW LOOK" width="100%" /></a></li>
                            <li id="home4"><a href="/en/Fashion/Burberry/SpringSummer-2010/"><img src="/_Client/Flash/images/home4.jpg" alt="BURBERRY" width="100%" /></a></li>
                            <li id="home5"><a href="/en/Fashion/Editorial/"><img src="/_Client/Flash/images/home5.jpg" alt="EDITORIAL" width="100%" /></a></li>
                            <li id="home6"><a href="/en/Projects/"><img src="/_Client/Flash/images/home6.jpg" alt="PROJECTS" width="100%" /></a></li>
                        </ul>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
            <img src="/_Client/Styles/Images/spacer.png" class="spacer" alt="Boyancy" width="100%" />
        </div>
        <script type="text/javascript">Cufon.now()</script>
                </div>
                <div id="footerWrapper">
        <ul id="flashControls">
            <li><a id="grid" class="flashModeLink selected" href="javascript:changeLayout('grid');"></a></li>
        <li><a id="grill" class="flashModeLink" href="javascript:changeLayout('grill');"></a></li>
        <li><a id="fullScreen" class="flashModeLink" href="javascript:changeLayout('fullscreen');"></a></li>
        </ul>
        <script type="text/javascript">
            function getFlashMovie(movieName) {
                var isIE = navigator.appName.indexOf("Microsoft") != -1;
                return (isIE) ? window[movieName] : document[movieName];
            function updateIcon(s) {
                $j('.flashModeLink').each(function() {
                    var item = $j(this);
                    item.removeClass('selected');
                switch (s) {
                    case "grid":
                        $j('#flashControls #grid').addClass('selected');
                        break;
                    case "grill":
                        $j('#flashControls #grill').addClass('selected');
                        break;
                    case "fullscreen":
                        $j('#flashControls #fullScreen').addClass('selected');
                        break;
                    default:
                        break;
            function changeLayout(s) {
                getFlashMovie("BoyancyFeature").changeLayout(s);
                updateIcon(s);
    </script>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
    <script type="text/javascript">
        function getFlashVersion() {
            var agent = navigator.userAgent.toLowerCase();
            flashVersion = 0;
            if (agent.indexOf("mozilla/3") != -1 && agent.indexOf("msie") == -1) {
                flashVersion = 0;
            if (navigator.plugins != null && navigator.plugins.length > 0) {
                var flashPlugin = navigator.plugins['Shockwave Flash'];
                if (typeof flashPlugin == 'object') {
                    for (i = 25; i > 0; i--) {
                        if (flashPlugin.description.indexOf(i + '.') != -1) { flashVersion = i; };
            if (flashVersion == 0 || (navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || navigator.userAgent.match(/iPad/i)) {
                $j('#flashControls').css('display', 'none');
        getFlashVersion();
        // $j(document).ready(function() {
        var swfVersionStr = "10.0.0";
        var xiSwfUrlStr = "/_Client/Flash/playerProductInstall.swf";
        var flashvars = {
            contentUrl: '/_Client/services/homepagexml.aspx',
            swfUrl: "/_Client/Flash/BoyancyFeature.swf"
        var params = {};
        params.quality = "high";
        params.bgcolor = "#ffffff";
        params.allowscriptaccess = "sameDomain";
        params.allowfullscreen = "true";
        params.wmode = "transparent";
        var attributes = {};
        attributes.id = "BoyancyFeature";
        attributes.name = "BoyancyFeature";
        attributes.align = "middle";
        swfobject.embedSWF(
            "/_Client/Flash/Preloader.swf", "pageContent",
            "100%", "100%",
            swfVersionStr, xiSwfUrlStr,
            flashvars, params, attributes);
        // JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. -
        swfobject.createCSS("#pageContent", "display:block;text-align:left;");
    </script>
        <!-- END: external scripts / flash embed -->
                    <div id="footerContent" class="clearfix">
                       <ul class="socialNaviation">
                            <li class="twitterIcon"><a href="http://twitter.com/eBoyancy/" rel="external">Boyancy official Twitter</a></li>
                            <li class="facebookIcon"><a href="http://www.facebook.com/boyancy/" rel="external">Boyancy official Facebook</a></li>
                        </ul>
                        <ul id="footerNavigation">
    <li><a href="/en/SignUp/">Sign Up</a></li>
                            <li><a href="/en/Messages/">Messages</a></li>
                            <li><a href="http://www.addthis.com/bookmark.php?v=250&username=xa-4bbdb05f1cff21e6" onclick="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()">Share</a></li>
                            <li><a href="/en/Terms/">Terms</a></li>
                            <li><a href="/en/Privacy/">Privacy</a></li>
                            <li><a href="/en/Contact/">Contact</a></li>
                            <li><a href="/en/B/">Boyancy</a></li>
                        </ul>
                        <span class="footerSideBg"></span>
                    </div>
                </div>
            </div>
            <!--[if lte IE 6]><script src="/_Client/IE6/Scripts/warning.js" type="text/javascript"></script><![endif]-->
            <script type="text/javascript">
            Cufon.now();
            fullScreenPage();
    </script>
        <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4bbdb05f1cff21e6"></script>
        </body>
    </html>

  • Today is the day the preloading will work! Help...

    I've tried and tried to find different ways to make the preloading work correctly but there is always something that doesn't seem to work with each way. Could someone dumb it down for me and help me understand how to make this work. I've read everything on the safeloader and at this link:
    http://www.stevensacks.net/2010/05/28/flash-cs5-tlf-engine-causes-errors-with-loaded-swfs/
    I've also browsed all blogs and adobe tech notes and just had no luck getting a way that always worked. Here is what I'd like to do:
    Create a preloader swf that contained a movie clip to display the percent.
    Allow the preloader swf to call functions inside of the loaded swf. (this is for stage resizing, usually)
    Be able to use the tlf textengine in my loaded swf's.
    Keep my reference to the stage or pass it from the preloader swf to the loaded swf.
    Every way I've tried seems to lose at least one of these items. Right now I have a file that uses the tlf textfield and a stage reference. It works fine as a standalone swf but it needs a preloader. In the as 3 settings the tlf is merged into the code. The extra size isn't that big of a deal, for now. However, I would love to not do that and point the preloader away from adobe's stock preloader to my own in the as 3 settings. However, I can never get it to work correctly.
    Can anyone point me in the right direction? Thanks!

    Kglad, I created a system
    that works. I will post it here so others can use it if needed.
    Outline: I'm using a custom preloader.swf to load another swf file. The loaded swf file contains a document class and the tlf textfield. I am able to load this correctly, track the percent loaded, pass the stage reference, use the tlf textfield and use the stage resize functions to dispatch listeners for sites that are 100% of the browser.
    THE PRELOADER SWF
    This file simply contains the preloader movieclip in the library and code in frame 1. I guess a doc class would work here but I have not tested. The AS 3.0 settting are the default settings for player 10.
    Code:
    //======================================================================================== =================================================
    //     import classes
    //======================================================================================== =================================================
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.Event;
    import flash.filters.BevelFilter;
    import flash.display.MovieClip;
    import flash.display.Loader;
    //======================================================================================== =================================================
    //     set stage alignment
    //======================================================================================== =================================================
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT;
    stage.addEventListener(Event.ACTIVATE, activateHandler);
    stage.addEventListener(Event.RESIZE, resizeHandler);
    //======================================================================================== =================================================
    //   variables
    //======================================================================================== =================================================
    var pre_loader:Preloader;
    var this_page:String = "sbBackground.swf";
    var load_bar_width:Number = 150; // make this the width of your image
    //======================================================================================== =================================================
    //    variables
    //======================================================================================== =================================================
    function activateHandler(event:Event):void {
    trace("here");
    //======================================================================================== =================================================
    //    variables
    //======================================================================================== =================================================
    function resizeHandler(event:Event):void {
    trace("resizeHandler: " + event);
    trace("stageWidth: " + stage.stageWidth + " stageHeight: " + stage.stageHeight);
    //======================================================================================== =================================================
    //    variables
    //======================================================================================== =================================================
    var background_ldr:Loader;
    var background_mc:MovieClip;
    var background_holder:MovieClip = new MovieClip();
    addChild(background_holder);
    //======================================================================================== =================================================
    //    init site
    //======================================================================================== =================================================
    function init():void{
    // show preloader
    pre_loader = new Preloader();
    addChild(pre_loader);
    pre_loader.x = Math.round(stage.stageWidth/2) - Math.round(pre_loader.width/2);
    pre_loader.y = Math.round(stage.stageHeight/2) - Math.round(pre_loader.height/2);
    pre_loader.load_bar.width = 1;
    // load page
    loadThisPage(this_page);
    //======================================================================================== =================================================
    //    load called page
    //======================================================================================== =================================================
    function loadThisPage(thisPage:String):void{
    // load new page
    background_ldr = new Loader();
    var pageRequest:URLRequest = new URLRequest(thisPage);
    background_ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, pageCompleteHandler);
    background_ldr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, pageProgressHandler);
    background_ldr.load(pageRequest);
    function pageCompleteHandler(loadEvent:Event){
    background_mc = MovieClip(background_ldr.content);
    background_holder.addChild(background_mc);
    removeChild(pre_loader);
    function pageProgressHandler(e:ProgressEvent){
    var loaded:Number = e.target.bytesLoaded;
    var total:Number = e.target.bytesTotal;
    var pct:Number = loaded / total;
    trace(pct);
    pre_loader.pct_txt.text = String(Math.round(pct * 100)) + "%";
    pre_loader.load_bar.width = Math.round(pct * load_bar_width);
    THE LOADED SWF
    This file also used the default settings for Flash player 10. Therefore, I am not merging into the code my tlf library so no increase in file size.
    The doc class:
    package com {
    // core
    import flash.display.MovieClip;
    import flash.display.Stage;
    import fl.text.TLFTextField;
    import flash.events.Event;
    // import custom classes
    import com.main.BuildStageClass;
    // initialize class
    public class DocClass extends MovieClip {
      // custom classes
      // variables
      public static var build_stage_class:BuildStageClass;
      // stage containers
      public static var main_stage:MovieClip;
      // private toggle var
      private var init:Boolean = false;
      // main constructor
      public function DocClass() {
       addEventListener(Event.ADDED_TO_STAGE, stageAddedHandler);
      private function stageAddedHandler(e:Event){
               // trace("Document Class Stage: " + this.stage);
       // initialize classes
       build_stage_class = new BuildStageClass();
       // wait until second added to stage call to initialize application
       if(init == false){
        init = true;
       else{
        removeEventListener(Event.ADDED_TO_STAGE, stageAddedHandler);
        // add containers to stage
        main_stage = new MovieClip();
        addChild(main_stage);
        // start app
        startApplication();
      public function startApplication():void{
       //trace("here at start");
       // build stage
       build_stage_class.buildStage();
    This works 100% for me without using the safeloader in the preloader.swf. I've experienced some issues with the safeloader before so not using it is a blessing.
    I hope this helps someone! Enjoy.

  • Question about the preloader

    Hi, All,
    I just find a problem in my Flash builder generated .swf file. We used "Merged into code" option when I compiled the project, My preloader was showed just fine.
    But if I use "RSL" and also use some exteranlly loaded library files, the preloader will not be shown until near the end of the application downloading. This will make the screen blank during the downloading time. And this will make the Preloader nonsense.
    Just wonder someone has experience on it? I cannot find a good soultion on internet. So want to try to post the questions here.
    Thanks a lot.

    The preloader should show a countdown of the RSLs loading, but then the
    actual application won't be as big so the preloader won't show.
    There is also an issue where if you put a # in the URL, the preloader will
    not be shown.

  • Do I really need to keep all the preloaded apps that came with my MacbookPro 13'' mid 2010

    Do I really need to keep all the preloaded apps that came with my MacbookPro 13'' mid 2010? Which one are necessary to keep from your experience. Thanks

    Lots of apps are preloaded on a new MBP. Tell us which ones you don't think you need, and we'll tell you whether you can safely get rid of them.
    However,  the total space used on your hard drive by all the apps that are preinstalled is very small, and if there's any chance at all that you may eventually want to use them, you might as well keep them handy.
    By way of example, my own Applications folder contains everything that came from the factory preinstalled in it, plus 2.5 years of subsequent additions totalling 196 applications of all kinds and sizes. Still, it only occupies 12.5GB of my 500GB hard drive.

  • Whats up with the Preloader?

    Im having trouble compiling my Preloader properly?
    This is what ive done:
    1) Unzipped StrobeMediaPlayback_1.5-full.zip to a folder called SMP
    2) Loaded Preloader and StrobeMediaPlayer projects into FlashBuilder
    Changed Config::Logging false for both projects
    3) Changed the path for OSMF.swc to SMP\src\framework\OSMF\bin\OSMF.swc for both projects
    4) In the StrobeMediaPlayer Project I navigated to:
         src > org.osmf > player > configuration and modified JavaScriptBridge.as and added to line 237
         exposeProperty(strobeMediaPlayback.configuration, "hdAvailable", true);
         src > org.osmf > player > configuration and modified PlayerConfiguration.as and added to line 131
         public var hdAvailable:String = "false";
    5) In Preloader Project I modified Preloader.as and added some custom business rules and created a new parameters object to inject a new src file on the fly as well as inject a new parameter called hdAvailable.
    6) Built StrobeMediaPlayer Project
    7) Built Preloader Project
    When I navigated to SMP\src\samples\preloader\bin and inspect the contents I find:
    Preloader.html
    Preloader.swf
    swfobject
    I click on Preloader.html and the swf runs okay.
    But when I copy the three files to a another location say to my desktop, the swf does not load.  I just get the background color showing.  Why is that?
    Shouldn't I be able to copy the Preloader.swf to wherever I like and have it just run ... ?
    Regards,
    Rob

    Hi Siliviu,
    > Usually, SMP and the preloader are compiled with the default build flag -use-network=true. This will prevent access to the local file system.
    Okay thanks.
    I uploaded to my webserver:
    - Preloader.swf (357kb)
    - SwfObject.js
    - Preloader.html
    And everything worked correctly :-)
    Where or how do I set -use-network=true??
    I tried this in my compile arguments:
    -define CONFIG::LOGGING false -define CONFIG::FLASH_10_1 true -use-network=false
    but it didn't work? Is my declaration correct Siliviu?
    Regards,
    Rob

Maybe you are looking for

  • How do I add a Bing to my search bar?

    When I try to add Bing to my search bar in FF 35.0.1, I get the following message: Firefox could not install the search plugin from "https://addons.mozilla.org/firefox/downloads/latest/10434/addon-10434-latest.xml?src=search" because an engine with t

  • Switch from AppleTalk to IP Address not working well in Quark 7.5

    Knowing I have to switch from AppleTalk to IP Address printing with two new MACs coming online with Snow Leopard, and updates I plan to do to three MacPros, I started testing by turning off AppleTalk on a MacPro running Leopard. I then set up our two

  • Pages does not open anymore after the latest update

    I did all suggested problem solving steps, but after the last update Pages does not open anymore. It opens a window and immediately crashes again. I paid for it, and I used it for my business - and I'm so angry, that there is no support for apps in f

  • Restoring old white imac

    i'm giving my Mom my old white 'bubble' computer and put in the restore cd's--there were three of them and then put in the OSX install which I remember came with the computer when we bought it in 02--but when everyting was reinstalled there was no ip

  • What happened to the Swing Tutorial?

    How should one be able to launch the Java Web Start demos, if they require 6 (which is beta...). Should one be forced to install a beta version of software to browse a website? Dude, bring it back to 1.5.x or make the 6 the official (and easily insta