A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Added pre-loader and movie doesn't play- if/then script problem?

  1. #1
    Junior Member
    Join Date
    Jul 2002
    Posts
    16

    Added pre-loader and movie doesn't play- play, loop both checked off?

    I have modified two different flash files I found at flashkit to make a wedding date movie for my wedding website (yeah- I'm a dork). But it took so long to load I looked for a preloader and added that. The loader runs fine and when I check the scene with my date movie that runs fine too. But when placed online it doesn't go from the preloader to the movie correctly. It's like it goes to the first frame and stops. Hope someone can help. When it works right I'll post it so others can use it. Hope someone can help me.

    After playing with this for hours I see that both "play" and "loop" are checked in the Flash player. When you uncheck one it goes into the next scene just fine.

    I'm using the basic version of Flash 8.

    A page with the flash file playing

    MY FILE
    Last edited by forttrell; 01-19-2006 at 10:40 PM. Reason: better to update than pull out my hair!!!!!!!!

  2. #2
    if($<0){WelcomeToMyWorld} joshchernoff's Avatar
    Join Date
    Jul 2005
    Location
    Portland
    Posts
    321
    Your first problem was that you published in the wrong player.
    Second you should use a simple preloader, such as:

    Code:
    stop();
    onEnterFrame = function(){
    	if (_root.getBytesLoaded() == _root.getBytesTotal()){
    		delete onEnterFrame;
    		play();
    	}
    }
    Last edited by joshchernoff; 01-22-2006 at 07:11 PM.

  3. #3
    if($<0){WelcomeToMyWorld} joshchernoff's Avatar
    Join Date
    Jul 2005
    Location
    Portland
    Posts
    321
    Your file is heavly loaded down, it comes from the snow FXs you should look at some action script that can do the same thing with well over half the file size

  4. #4
    Junior Member
    Join Date
    Jul 2002
    Posts
    16
    I have gotten the file- thanks so much for A. fixing it and B. hosting it

    I will post it soon for others should anyone else be getting married and find it usable.

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