A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: MX 2004 Pro Slides and Preloader

  1. #1
    Junior Member
    Join Date
    Jun 2004
    Location
    Seattle, WA
    Posts
    1

    MX 2004 Pro Slides and Preloader

    Hi,

    I'm a vetern of Flash 3 and 4 attempting to get up to speed on the new version... I know how to build a prelaoder but am a bit perplexed as to how to do so with a slideshow created with the new screen based format.

    Access to the main timeine is limited, my understanding is that it can be targeted, but not modified directly, so I can't put it there. I tried embedding the .SWF of the slideshow in a parent movie and installing the loader in frame 1 but the .SWF showed up as a single frame only. I also tried to load the SWF into a container clip in frame 2 with the loader being in frame 1, but of course it only read the size of the container clip, not the SWF being loaded.

    I must be missing something horribly obvious, any help is appreciated. Here's the code from the preloader..

    myInterval =setInterval(preloader, 10);
    function preloader() {
    if (getBytesLoaded() >= getBytesTotal()) {
    play();
    clearInterval(myInterval)
    }
    bar._xscale = (getBytesLoaded()/getBytesTotal())*100;
    myTextField.text = Math.round(getBytesLoaded()/getBytesTotal()*100)+ "%"
    }

    Here is that code in action before a non slide-based clip

    www.liveeyetv.org

  2. #2
    Junior Member
    Join Date
    Sep 2003
    Location
    Vienna, Austria
    Posts
    9

    Preloader with slides / Flash MX Pro

    Hy!

    Is there any solution for this problem? I also have a Flash MX Slide Presentation where I want to put a preloader before - and found no clue how to do this.

    Please help if anyone knows a solution.

    Yours,
    Andreas

  3. #3
    Senior Member
    Join Date
    Apr 2000
    Location
    Minneapolis
    Posts
    2,127
    Hi,
    I am not sure exactly what your problem is, still using flash mx, but sounds like this might help, go to
    http://www.moock.org/asdg/codedepot/
    take a look at the "onClipEvent(Data) preloader". under "chapter10"

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