A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: professional look

  1. #1
    Senior Member
    Join Date
    Nov 2000
    Location
    Queenstown, New Zealand
    Posts
    480

    professional look

    Let me explain the situation. I have a vast map that comes in as a loaded swf. It's only about 120k so not that heavy. I have some script that tell it to go to a certain x/y position after it has loaded. All is well.

    I did put a preloaded in with the movie. As the map is 3000X2000 in size I placed the preloaded up in the top left had corner. You see a few moments of the preloader then all it rushed to the x/y position which is miles away from the top left hand corner. Not very professional in look.

    Is there anyway of having a preloader on the base movie (the one that is loading the swf map), that indicates the progress of the download movie. And just maybe for the preloader to wait a couple of seconds after the movie has loaded to avoid the awful rush across the screen.

    with thanks

    Brian

  2. #2
    Senior Member Lys12's Avatar
    Join Date
    Feb 2001
    Location
    Munich, Germany
    Posts
    5,237
    hi,

    not quite easy to imagine without seeing the files.

    however the following method might work for you.

    let's say the movement of the map is controlled by an onenterframe() action. to avoid this from playing right away, check whether a necessary condition is true:

    onenterframe() {
    if (_root.blabla) {
    map._x=...
    map._y=...
    etc.
    }
    }

    the _root as part of the condition is necessary to make it available across scenes and loaded movies.

    make your preloader action go to frame x when all is loaded. at frame x, _root.blabla=true:

    on frame(x) {
    _root.blabla=true;
    }

    the higher the value of x, the later your map is going to move.

    see if it helps...?

  3. #3
    Senior Member
    Join Date
    Nov 2000
    Location
    Queenstown, New Zealand
    Posts
    480
    Many thanks Lys.

    I may come back with a sample if I stumble.

    Brian

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