dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: FlashMX Preloader problem??

  1. #1
    Join Date
    Oct 2005
    Location
    Oakland
    Posts
    7

    Question FlashMX Preloader problem??

    Help! I am loading a submovie into in my host movie. I set my preloading animation in the first 60 frames of the submovie, the rest of the movie plays in frame 61.(correct so far?) Then I added a "stop(); waiting = true" in frame 1 of my preloader(loader starts on frame2). This is all in my submovie.
    In my host movie I have a button with actionscript attached:
    on (release) {
    loadMovie("submovie.swf", "theClip");
    }
    Holder (on the host movie,"theClip") has:
    onClipEvent (enterFrame) {
    percent = Math.floor(_framesloaded/totalframes*100);
    if (waiting == true && percent == 100) {
    play();
    waitng = false;
    }
    }
    When I test my movie it is stuck on frame one and reads "Infinity." What am I doing wrong?? Is there an easier way to do this??
    Last edited by 02design; 12-01-2005 at 05:34 PM. Reason: message ending got cut off

  2. #2
    Join Date
    Jul 2005
    Location
    India
    Posts
    145
    it should be:

    Math.floor(_framesloaded/_totalframes*100);

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles