A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: FLASH MX Preloader A/Script problem.

  1. #1
    Living Proof mave_the_rave's Avatar
    Join Date
    May 2002
    Location
    East Dulwich
    Posts
    1,006
    Hi,
    Can some one please help.

    I have followed a tutorial to make a Preloader.

    The movie has 4 layers:- 1. labels.
    2. actions.
    3. animate.
    4. bitmap.

    In the labels layer. frame 1 contains label 'preload'
    frame 24 contains label 'check'
    frame 50 contains label 'moviestart'

    In the actions layer. frame 50 contains the script:-
    stop();

    frame 24 contains the script:-

    ifFrameLoaded ("moviestart") {
    gotoAndStop("moviestart"); /movie would normally start here/
    }
    gotoAndPlay("preload");

    When I test the movie, and look at the progress using the
    Bandwidth Profiler, I can see the movie goes to frame 24 then redirects to frame 1 'preload' label , and then stops.
    It does not continue playing.

    Any ideas please.

    mave_the _rave.
    [Edited by mave_the_rave on 06-23-2002 at 10:54 AM]

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    ...
    frame 50 contains label 'startmovie'

    In the actions layer. frame 50 contains the script:-
    stop();

    frame 24 contains the script:-

    ifFrameLoaded ("moviestart") {
    gotoAndStop("moviestart"); /movie would normally start here/
    }
    gotoAndPlay("preload");
    ...

    You shouldn't be using the ifFrameLoaded action, it's been deprecated since Flash 5, but does anything else strike you in the above? How about the bold stuff?

  3. #3
    Living Proof mave_the_rave's Avatar
    Join Date
    May 2002
    Location
    East Dulwich
    Posts
    1,006

    preloader

    thanks old newbie:-

    The startmovie/moviestart was a typo. in my orig
    post which I have corrected.

    can you explain:-
    "You shouldn't be using the ifFrameLoaded action, it's been deprecated since Flash 5"

    The tutorial was from a book Osbourne The Complete Ref.
    Macromedia Flash MX

    It said to select ifFrameLoaded from the depreciated
    category.

    The problem is that the movie goes to frame 1 'preload'
    label as directed by the code in frame 24. but then just
    stops. There is no code in frame 1 in any of the layers.

    This does,nt make any sense...???

  4. #4
    Living Proof mave_the_rave's Avatar
    Join Date
    May 2002
    Location
    East Dulwich
    Posts
    1,006

    preloader

    Hi.

    PANIC over

    I have now used:-

    if (_framesloaded >= _totalframes) {
    gotoAndPlay ("moviestart");
    } else {
    gotoAndPlay("preload");
    }
    This seems to be working.

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