A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: [RESOLVED] Preloader Issue

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    4

    resolved [RESOLVED] Preloader Issue

    So I've designed a circular preloader that get filled according the percentage of loaded frames. Everything works great with a frame or two of content aside preloader. When I add the all site with a billion of frames and movie clips, the preloader won't work properly and I'm getting really bored with this because I spent like 4 days trying to understand what is wrong.

    Unfortunately, I couldn't find the problem I hope that the pro's can give me an explanation of what is going wrong. Thank you all.

    Code from preloader:

    import flash.display.*;
    import flash.events.ProgressEvent;
    import flash.events.Event;

    stop();

    this.loaderInfo.addEventListener(ProgressEvent.PRO GRESS, loading);
    this.loaderInfo.addEventListener(Event.COMPLETE, loaded);

    function loading(e:ProgressEvent):void{
    var porcent:Number = Math.floor((e.bytesLoaded / e.bytesTotal) * 100);
    porcent_txt.text = String(porcent) + "%";
    loader.gotoAndPlay(porcent);
    }

    function loaded(e:Event):void{
    this.loaderInfo.removeEventListener(ProgressEvent. PROGRESS, loading);
    this.loaderInfo.removeEventListener(Event.COMPLETE , loaded);
    gotoAndStop("enter");
    }

  2. #2
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Location
    Here, no there
    Posts
    1,813
    Looks like your preloader code is okay and if it works during testing before you overload it, then that confirms your code. It sounds like either a resource issue where you computer isn't updating the display information as quickly as it is trying to load the information. This is common and I've had it happen frequently, which is why my preloader LOADS a separate object a chunk at a time.

    Updating the displayList and validating the values isn't a top priority for flash when it has to load copious amounts of information. I would profile you loading (simulate it) and see what exactly is going on, it may have nothing to do with your code except how each piece is being loaded.

    Of course, I am far from an expect.
    Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.

  3. #3
    Junior Member
    Join Date
    May 2012
    Posts
    4
    I found out what the poroblem was...
    Somehow a text filed in a layer was giving me this truble.
    The solution I have found: removed it
    Thank you very much for your help.

  4. #4
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Location
    Here, no there
    Posts
    1,813
    No problem. Make sure to close this thread.
    Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.

  5. #5
    Junior Member
    Join Date
    May 2012
    Posts
    3
    please help..where can post a new thread?

  6. #6
    Junior Member
    Join Date
    May 2012
    Posts
    4
    Quote Originally Posted by samreenarif View Post
    please help..where can post a new thread?
    About what?

  7. #7
    Junior Member
    Join Date
    May 2012
    Posts
    3
    About flash websites ..I'm a newbie to flash and need some help with the scripting..

  8. #8
    Junior Member
    Join Date
    May 2012
    Posts
    4
    Quote Originally Posted by samreenarif View Post
    About flash websites ..I'm a newbie to flash and need some help with the scripting..
    What can I say I'm not an expert either...
    But try to get a good book an get some good classes on youtube there are very good tutorials out there.

    And google a lot the web is your biggest ressource!

    At the end everything resumes on what you want to do with flash...
    WEBSITES
    ANIMATIONS
    PRESENTATIONS

    Well, do you know an object oriented programming like java, c++?

    If (true){
    won't be difficult
    }else {
    start to learn it or you won't get far with flash.
    }

    youtube channel

    Books

    And of course flashkit is great

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center