Preloader not on frame 1

ok,so this is probably a stupidly simple fix, BUT - i have tinkered with it for a few hours now and im getting no where....
i have my site tween in a graphic ( my logo ), and then the preloader pops up......
the preloader is on frame 15 inside its own MC....
inside the MC is another MC named loadBar, and here is the code:
function loadProgress(root:ProgressEvent):void {
var percent:Number = Math.floor( (root.bytesLoaded*100)/root.bytesTotal );
loadBar.width = percent * 3;
function loadComplete(e:Event):void {
loadBar.width = 300;
MovieClip(root).gotoAndPlay("begin");
loaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
loaderInfo.addEventListener(Event.COMPLETE, loadComplete);
now, if you have the MC that has the preloader on frame 1, it works....but since its on frame 15, its not doing anything.....
what am i overlooking? im sure this question is on the newbie level  -  any help or direction is appreciated...
as always - thanks!
wr3ck

you're not out of luck.
there's just no point to having a preloader appear long after everything's loaded.  you can use the following if it makes you feel better:
var t:Timer=new Timer(500,1);
t.addEventListener(TimerEvent.TIMER,f);
t.start();
function f(e:Event){
    MovieClip(root).gotoAndPlay("begin");
function loadProgress(e:ProgressEvent):void {
    var percent:Number = Math.floor(  (e.bytesLoaded*100)/e.bytesTotal );
    t.stop();
    loadBar.width  = percent * 3;
function loadComplete(e:Event):void {
    loadBar.width  = 300;
    MovieClip(root).gotoAndPlay("begin");
this.parent.loaderInfo.addEventListener(ProgressEvent.PROGRESS,  loadProgress);this.parent.loaderInfo.addEventListener(Event.COMPLETE,  loadComplete);

Similar Messages

  • Preloader not going to frame 2 after 100% loaded

    Hello.
    I recently got help concerning a preloader error.
    Happy to say the error message got resolved here on the forum.
    However I now have new problem.
    After site is loaded a 100% it is stuck on the preloader image in frame one instead of going to frame to of my project.
    Can anyone help me with this please. I suppose further information about my project is needed so just say what to post and I´ll post it.
    Sincerely
    Ronny

    This resulted in a window opening with this filling it:
    2 2
    loaded
    2 2
    loaded
    2 2
    loaded
    2 2
    loaded
    2 2
    loaded
    2 2
    loaded.....
    Seamably infinate..
    And the swf is still stuck on frame 1...
    Now this is what I´ve got:
    Frame 1 of the preloader movieclip:
    var amountLoaded:Number = this.framesLoaded/this.totalFrames;
    loadText.text = Math.round(amountLoaded * 100).toString() + "%";
    Frame 2 of the preloader movieclip:
    trace(this.framesLoaded,this.totalFrames);
    if(this.framesLoaded == this.totalFrames) {
    trace("loaded");
    this.gotoAndPlay(3);
    else {
    this.gotoAndPlay(1);
    Frame 3 of scene one (the main timeline):
    trace("goto",this.currentFrame)
    (Below this there is a lot more actionscripting relating to some buttons).
    Preloder on frame 1 and rest of the content on frame 3 (scene 1).
    Is this about right?

  • Preloader Not Loading Until The Start of Lesson In Captivate 7

    I created a Scorm 2004 compliant lesson using Captivate 7. The file size is ~7MB. When I load and run the lesson on our LMS I don't see the preloader until 3-4 seconds before the file loads. I'm staring at a blank screen for about 45 seconds before anything happens. I have the preloader set at 10% but I can't get it to work.
    I loaded the file to one of our FTP sites and ran it on an html page and it does the same thing.
    Our customers are asking us why there is no indication that the lesson is loading and all I can say is it's a problem with Captivate 7.
    I upgraded to 7 because I was told the problem was fixed, but it's still bad.
    Any help is appreciated.
    Thanks

    Yes, it's set to look in the Cp7 preloader folder. I found this on a Captivate website and I think it answers the question.
    "As mentioned, preloaders are only really applicable for HTM/SWF output. But what you may not realize is that they will only work if the content is served from a web server over HTTP. Conversely, the preloaders will NOT work if the same content is served up from a LAN server drive over TCP/IP.  This is due to the fact that SWF preloaders need to communicate with the server to calculate and show the percentage of file currently loaded.  This communication works with web servers, but not with LAN servers."
    Unfortunately, Cp7 preloader is going to work on our LMS. I'm going to build a preloader class in Flash and call the Cp7 swf using that.
    Thanks for your help
    Date: Sat, 18 Jan 2014 00:34:37 -0800
    From: [email protected]
    To: [email protected]
    Subject: Preloader Not Loading Until The Start of Lesson In Captivate 7
        Re: Preloader Not Loading Until The Start of Lesson In Captivate 7
        created by RodWard in Adobe Captivate - View the full discussion
    If you still have Captivate 6 on your PC, then make sure that the preloader in this Cp7 project is not pointing at a folder in the Cp6 install directory.  It should be using a Cp7 preloader.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6026026#6026026
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6026026#6026026
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6026026#6026026. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Adobe Captivate at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • I can't drag an images between not floating frames

    Hello i have the newe Elements 12.
    It was working perfectly, but after the last up-date there was a problem.
    Ican't drag images between not floating frames anymore. this was possible before the up-date.
    now the images can only be draged if one is a not floating frame and the other one is a floating frame.
    does some one know how i can change this?

    No fix. It's a bug introduced with the update. Using floating windows is the only work-around.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • Use preloader for individual frames?

    I have followed this video on how to build a preloader and I was able to incorporate it into my own site.  Now, I'm wondering now how to build a preloader for individual frames.  For example, I have a link called "Videos" that, when clicked, jumps to frame 10.  This is where I have all the videos visible in the main content area of my site.  However, I'd like to add a preloader so that as the videos load, visitors can see the progress.  Is there a way I can reuse the preloader.swf file I have already built for individual frames of my main site?
    Here is the code for the preloader.swf file which consists of a single dynamic text field located in the center called preloaderTxt:
    var l:Loader = new Loader();
    l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop);
    l.contentLoaderInfo.addEventListener(Event.COMPLETE, done);
    l.load(new URLRequest("WebsiteTest.swf"));
    function loop(e:ProgressEvent):void
        var perc:Number = e.bytesLoaded / e.bytesTotal;
        preloaderTxt.text = Math.ceil(perc*100).toString() + "%";
    function done(e:Event):void
        removeChildAt(0);
        preloaderTxt = null;
        addChild(l);

    (1)Java class name should begin with a capital letter. See: http://java.sun.com/docs/codeconv/
            JButton save = new JButton("Save");
            JButton save2 = new JButton("Save and add another");
            // ... etc. ...(2)Don't redeclare class members in a method as its local variable. Your class members become eternally null, a hellish null.
    how to make them work when clicked on(3)Add action listener to them.

  • Can not start frame 11

    dear all
    i don't know what is wrong with my frame 11. until yesterday i had frame 10, 11 and 12 installed parallel on my win7 x64 machine. all of a sudden the creative cloud thingy came up and prompted me to login, etc. after that frame 10-12 didn't work anymore. i received the cryptic internal errors. happend already couple of times, i then ran the installers again and frame 10 & 12 worked after that. only frame 11 is still not functioning. i can start it, select wether structured or unstructred and that's it. it pops up quickly in the taskmanager but then disappears. latest updates are applied. deleting local maker.ini just brings the dialogue again. no effect after i made a decision. frame 11 refuses to start.
    i then deleted all frames and cleansed the registry by hand (i know what i am doing!), tried to reinstall just frame 11 - no success.
    now i start to wonder if my installer is corrupt somehow. can not find frame 11 or TCS4 anywhere to download. it's all gone.
    any clues or hints are highly appreciated.
    thanks.
    chris.

    According to any number of prior responses to questions like these, the answer is: "Call Adobe Support. Support calls regarding installation issues are free."

  • Could not fine frame,xd 17:undefined

    can you please help me i have 48/ 76 and i cant get back in because it keep on saying could not fine frame,xd  17:undefined and when i try to down lad flash player is to close   gplayer

    To get started on this, see #C9 in Pondini's excellent support document, Time Machine -- Troubleshooting.
    http://pondini.org/TM/Troubleshooting.html

  • Preloader Not Displaying In Simulate Download - White Screen

    Hello:
    I followed a tutorial on gotoandlearn.com and followed it to a "T," yet cannot troubleshoot this myself. I built a simple preloader in AS2, but when I simulate the download for a Flash website in Adobe Flash CS4, all I see is a white screen, then it continues to the website. I previewed the bandwidth profile and I can see that it's working it's preloading magic; I just can't see the animation.
    I looked through numerous forums and I am not using an components that are exported to the first frame -- at least that I know of. Has anyone experienced the same issue?
    My set up is the following (from Lee's tutorial):
    First Keyframe (action):
    var amountloaded:Number = _root.getBytesLoaded()/_root.getBytesTotal();
    preload._width = amountLoaded * 190;
    loadText.text = Math.round(amountLoaded * 100) + "%";
    Second Keyframe (action):
    if(_root.getBytesLoaded() == _root.getBytesTotal())  {
    gotoAndPlay(3);
    else {
    gotoAndPlay(1);
    Third Keyframe:
    stop();
    Any thoughts? Thanks!

    I'm still seeing a white screen
    I changed my code as you said to:
    Keyframe 1 (actions):
    var amountloaded:Number = _root.getBytesLoaded()/_root.getBytesTotal();
    preload._width = amountLoaded * 190;
    loadText.text = Math.round(amountLoaded * 100) + "%";
    Keyframe 3 (actions):
    if(_root.getBytesLoaded() == _root.getBytesTotal())  {
    gotoAndPlay(5);
    else {
    gotoAndPlay(1);
    Keyframe 5 (actions):
    stop();
    Also, what's NaN%? I'm not able to view the progress bar at all, because all I see is white, but I navigated through my site and accidentally returned to frame 1, and the progress bar read "NaN%."

  • Preloader - not loading movie

    Hi.
    I have a preloader on the first frame of my movie timeline.
    When i go to 'test scene', the preloader works and moves to the
    next frame to play the MC. When i go to 'test movie' the preloader
    sticks after all bytes have loaded. It does not move on to the 2nd
    frame.
    The same thing is happening when its loaded on the web, it
    sticks on the preloader but if you refresh the browser, the
    preloader moves onto the next frame as it should.
    Something weird is happening here and i need to know what i
    have done wrong.
    Help please.
    Thanks

    mfos wrote:
    > Hi.
    > I have a preloader on the first frame of my movie
    timeline. When i go to 'test
    > scene', the preloader works and moves to the next frame
    to play the MC. When i
    > go to 'test movie' the preloader sticks after all bytes
    have loaded. It does
    > not move on to the 2nd frame.
    > The same thing is happening when its loaded on the web,
    it sticks on the
    > preloader but if you refresh the browser, the preloader
    moves onto the next
    > frame as it should.
    > Something weird is happening here and i need to know
    what i have done wrong.
    > Help please.
    the preloader is incorrect but we can't say anything based on
    "does not work"
    description.
    Copy paste your exact code or upload the problematic file for
    us to check.
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Preloader export to frame scenario

    I decided to move my preloader to the main timeline of my SWF
    instead of it's own scene in an attempt to simplify things. As
    before, everything works fine other than the blank white screen for
    about 15 secs and then the progress bar hitting the scene at about
    50%. I see that this is a common surmountable issue. I am
    preloading an embedded font component which is taking up a little
    time. I tried to uncheck "Export in first frame" on the text
    component in the library and loading classes in publish settings
    into frame 2, (and also 3 when that didn't work, where the main
    movie event takes place.) The preloader is a standard 2-Frame
    breaking loop deal. Everything works great but my embedded font
    doesn't load at all when I do this. Everything else works. However,
    if I purposely comment out the embedded font for testing purposes,
    the preloader appears on the scene at about 20% so I know that the
    embedded font loading is bogging the preloader down. Of course I
    would like the preloader to start as close to the beginning as is
    possible as we all do. The font in question is in a nested movie
    clip starting on it's own Frame 1 where I build the first text
    field using AS. This embedded font is the only linkage "Export for
    Action Script" in the entire SWF. I can't get my text fade-in/out
    to work unless I use an embedded font. At least not the way that I
    am doing it. Here is the code for the textfield:
    //Create text field
    onClipEvent( enterFrame ){
    this.createTextField("textframe",this.getNextHighestDepth(),-92,-72,177,160);
    textframe.wordWrap = true;
    textframe.html = true;
    textframe.htmlText = "<p align = 'center'> First text
    string here. </center>";
    textframe.embedFonts = true;
    var textFieldFormat:TextFormat = new TextFormat();
    textFieldFormat.font = "textFieldFont"; // embedded font
    textFieldFormat.size = 16;
    textframe.setTextFormat(textFieldFormat);
    //End create text field
    I use this exact chunk of code repeatedly on the timeline of
    the movie clip and change the _alpha of the clip for the fade
    effects and change the .htmlText property to change the textfield
    itself after x amount of frames. Question is, How can I force my
    preloader to load first and have the embedded font preload before
    it is needed if not the way that I am doing it? Perhaps the movie
    clip being nested is my problem? Or, do I need to add another frame
    to the main timeline? This is all I need to wrap up my first SWF.
    Once I nail this down and can actually begin to approach
    "productiviosity". I know it's not a word, but it should be.

    I see that, I tested it online and the SWF locked on the
    preloader. It's all good now, thank you. I will try to figure out
    the preloader itself now. It seems that no matter what I do the
    preloader progress bar appears at about 50%. Otherwise everything
    is fine. If I uncheck "Export in first frame" on my embedded font
    component and load classes into the 3rd frame where my main movie
    starts on the 4th frame, my text never loads. I am going back to
    school :)

  • Preloader not preloading??

    Hello!  I have a preloader using this script:
    stop();
    addEventListener(Event.ENTER_FRAME, preLoad)
    function preLoad(e:Event):void{
         var bytestoLoad:Number = loaderInfo.bytesTotal;
         var numberLoaded:Number = loaderInfo.bytesLoaded;
         if (bytestoLoad == numberLoaded) {
              removeEventListener(Event.ENTER_FRAME, preLoad)
              gotoAndPlay(2);
         }else {
              preloader.loadingMask.scaleX = numberLoaded/bytestoLoad;
              preloader.percentage.text = Math.floor(numberLoaded/bytestoLoad*100) + "%";
    Basically, I want a mask to go over some words in relation to the percentage of the file loaded.  Below it I want text that says 1%, 2%, 3%, etc. (also in relation to the percentage loaded).  But when I test it and click "simulate download," the screen stays white for about 10 seconds then goes to frame 2 where my content starts.  ?!  I get no errors, either.
    PS: on Flash CS5, is TLF text the same as Dynamic?  For "percentage," the only two options are Classic and TLF...

    Check to make sure things are what you expect...
        else {
              preloader.loadingMask.scaleX = numberLoaded/bytestoLoad;
              preloader.percentage.text = Math.floor(numberLoaded/bytestoLoad*100) + "%";
              trace(preloader.loadingMask.scaleX, preloader.percentage.text);
    and make sure your textfield text color is not the same as whatever is behind it.

  • Flash Preloading - Not Simple

    I am new, but to the extent that I have a full flash site
    that works great. I cannot get any preloaders to work. Lets be
    honest, I cannot even begin. Everyone assumes an expert, even the
    'simple flash preloader' sites.
    Why not just use the component in Flash CS3? Why can't Adobe
    help with this instead of sending me to google to get preloader
    ideas? Why is the WMODE=transparent command not recommended if you
    want transparency (as a supposive fix to the white box)? Preloaders
    are not simple for non-developers.
    Simply, I have a background.jpg in an HTML document. I load a
    flash in a table on top. It shows white in the table before the
    flash loads. Adobe's answer is to use a preloader. OK. Great. I
    found several, all of which insert so many variables that I can't
    tell what is really a variable or not. I have no desire to become a
    preloader retailer....OK? I just need a preloader. Explicatives
    removed. I simply want to load literally "video1.swf" without
    getting a white box. A progress bar would be nice. Will this be a
    seperate flash (swf), or will it be inserted in the timeline as
    seperate layers in the timeline to play before the original frames?
    Must I combine my original video1 file into a movie symbol, then
    manipulate it in another timeline with a preloader?
    Please do not assume ANYTHING. I need to get this done once
    and for all.
    Please, just make it simple. Attached is some code I found.
    Can it be edited to work with the "ProgressBar" in CS3? If there is
    an option, a seperate swf would be better as I have several pages
    that are setup the exact same way.
    Thank you.

    Seeing white is nothing to do with a preloader - set the bg
    of your movie to
    other than white. If you're using something like SWFObject to
    embed your
    Flash in the HTML, make sure it's not set to a white bg also.
    Aside from that a preloader is not too difficult to build -
    and the code you
    gave as a sample is bad code, which is likely the source of
    your problems. I
    don't have Flash 9 yet, but in 8 you would want to use the
    MovieClipLoader
    class to load in your swf. It has an onLoadProgress method
    that you can make
    use of to build a progress bar.
    Try this for a tutorial:
    http://www.kirupa.com/developer/actionscript/moviecliploader.htm
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Preloader not working in AS3 when viewing in a browser

    Hi there, It's me again Ysong.
    I have a problem regarding PRELOADING.
    MY TIMELINE:
    • First frame -- dynamic text which is my preloader with AS3 in it. NO MORE OBJECT in the frame only text which is dynamic.
         stop();
         loaderInfo.addEventListener(ProgressEvent.PROGRESS, updatePreloader);
         function updatePreloader(evtObj:ProgressEvent):void
              var percent:Number = Math.floor((evtObj.bytesLoaded*100)/evtObj.bytesTotal);
              myLoadText.text = "Loading..." + percent+"%";
              if (percent==100){
                        nextFrame();
    • Second frame -- the whole site in MOVIE CLIP which will be loaded after the preloading ends.
    ***The whole SWF file is only 600KB when publishing.
    ***When simulating download the preloader is working.
    MY PROBLEM:
    Whenever I uploaded these two files: (1) index.swf and (2) index.html, the preloader doesn't work. When viewed in browser it apprears to be white screen. After a couple of minutes, the index.swf appears and the preloader is not appearing as it should be. With (2), I didn't change anything on Dreamweaver just upload the file published by Flash Professional CS4.
    WHAT IS THE PROBLEM? Can anyone help me with this. I've uploaded (PUT) the files through Dreamweaver with a testing server configured.
    Thank you & Regards,
    YSONG

    hi Ned,
    I currently downloading the tutorial link you posted.
    Do you have any idea what is really happening? Because I really wanted to have a loading text only before the whole site is loaded. The SIMULATED DOWNLOAD in Flash CS4 is working great but whenever copy it in my hosting server and view it in my browser the preloader is not working.
    Thank you for your immediate response.
    Regards,
    YSONG

  • Flash Preloader not working anymore

    The final and most crucial part to completing a project I
    have is the preloader. When I first developed this, the preloader
    worked fine. a 1.7MB file later, it shows a blank screen, and then
    the preloader shows 100% and the page loads.
    I was given advice to have the movie clips not be exported to
    the first frame, but have them elsewhere in the movie. Problem with
    that is that they stop working if I do that.
    Anyway, here's my code. Hopefully someone can figure out why
    it's not appearing while it loads!
    stop();
    loadingBar._yscale = 1;
    var loadingCall:Number = setInterval(preloadSite, 50);
    function preloadSite():Void {
    var siteLoaded:Number = _root.getBytesLoaded();
    var siteTotal:Number = _root.getBytesTotal();
    var percentage:Number = Math.round(siteLoaded/siteTotal*100);
    loadingBottle._yscale = percentage;
    percentClip.percentDisplay.text = percentage + "%";
    percentClip._y = loadingBottle._y + loadingBottle._height;
    bytesDisplay.text = "loaded " + siteLoaded + " of " +
    siteTotal + " bytes";
    if (siteLoaded >= siteTotal) {
    clearInterval(loadingCall);
    _root.gotoAndPlay("Movie", 1);
    }

    This is normally a hardware issue. You should contact Apple and discuss what options you have. As one last effort, you could attempt to Restore the iPhone and set it up as a new device. If the problem continues after doing this, then it is most likely a hardware issue.
    - Greg

  • HELP - preloader not working

    Using CS4 Actionscript 2.0
    Frame 1 of preloader:
    percent = Math.floor(getBytesLoaded()/getBytesTotal()*100);
    myOutput.text = percent+ "%";
    Frame 2 of preloader:
    if(percent== 100){
    nextScene();
    }else{
    gotoAndPlay(1);
    Check out what happens after percentage loaded. It just goes to Frame 1 of next scene but doesn't play it....  although if you right click and click PLAY it will indeed play it..
    How to get it to start upon 100% loaded??
    THANK you
    I SHOULD NOTE that the scene that won't play has an embedded FLV in timeline

    Hi Ned, and thanks
    I tried moving FLV to frame 3, and changed actionscript accordingly, but now the preloader only flashes quickly and the movie starts... so there is no counting of bytes any longer, just a quick flash of the preloader text and the movie starts

Maybe you are looking for

  • Vendor Reconciliation Account change issue

    Hi, I need to change the vendor reconciliation account. for that i created another reconcliation account and assigned in master records. After that i created adjustment account. After that i assigned this adjustment account for old and new reconcliat

  • Re: On 105 mbps plan but never get better than 22 mbps

    I am living in this SAME nightmare!  Help.  I spent ALL day yesterday 8 hours on the phone with many many different people, some who were just plain RUDE and others who all contradicted each other. Sent me to get a new modem and we did that, speed st

  • Appearing  for each page

    Hello ! There are three var windows. CARRIER                       VAR CONSGNEE                  VAR SHPOINT                      VAR  Their contents of these variable windows must appear for each page. How can it be managed ? Regards Ilhan

  • BPM Objects to XML

    Hello everyone, this could seem simple but even for me is not. I want obtain XML data coming out from my BPM Object. Basically what I want is something like the XML Object can do: use some sort of generateXMLFor() method but I cannot figure how to re

  • DATA STATUS

    Hi, I have query on Data status: If I migrate a application from Prod to QA both are in different environment and the data in prod is consolidated and status OK. After the data copy I see the data in QA is in Status OKSC. If I migrate a application f