hi Uli,

from your description, it seems like your code is executed in the
second frame, not the first. you could try to verify that by setting
the framerate to 1, and see if the flashing in the beginning takes
longer. normally, in flash it's: execute code, display updated
graphics, move playhead to next frame.

there are various ways to call your init code, which one did you use?
do you have a Main.main() entry point and call it with <call/> or
mtasc's -main setting? or do you use the "natural entry point" method
(<http://www.flashant.org/index.php?p=408&more=1&c=1>)? do use the
latest mtasc (or at least 1.09 or later)?

> "Flash" is an awkward
> word to google for, and "load movie" and "mtasc" or "swfmill" added
> to it usually give me lots of stuff about the loadMovie()
> ActionScript command, but I'm not sure how I'd get this to do what I
> want.

in flashspeak, the term you're looking for is "preloader". :)

it's simple. one way to do it is to actually have two SWFs, and have
the first load the second. however, a common way to do it is to have
the actual content in a later frame (two or three, the latter in your
case since the code doesn't seem to execute in the first frame), stop
the movie in the beginning, and check onEnterFrame if
_root.getBytesLoaded() == _root.getBytesTotal(). if you have two SWFs,
also check if getBytesTotal() > 4, because it's 0 until the SWF header
is loaded.

hth,
mark


On 1/23/06, Uli Kusterer <[EMAIL PROTECTED]> wrote:
> Hi,
>
>   Although I'm a seasoned programmer, I only recently did my first
> Flash game using SWFMill and MTASC. While this game basically works,
> there are a few unpretty things that happen at startup that I'd like
> to avoid:
>
>   When the movie is loaded into the browser, all items show up as
> they are defined in the SWFMill file for a moment. Only then the code
> in my main function kicks in and hides and scales the objects. Since
> SWFMill doesn't let me specify items as scaled or hidden, I'm looking
> for a way to cause this resizing to happen *before* the clip is
> actually displayed.
>
>   I shortly tried to just define a huge graphic that is on the
> topmost layers and covers all the others, but this looks like crap on
> faster internet connections, as it flashes only shortly before the
> actual items show. Is there another way to "lock the screen" or
> otherwise delay drawing of the movie until I've done my
> repositioning? Maybe using one of those "loading..." movies most
> Studio-made Flash movies show? But how do I get that to not display?
>
>   Any clues (links to appropriate tutorials or previous discussions
> in newsgroups) would be greatly appreciated. "Flash" is an awkward
> word to google for, and "load movie" and "mtasc" or "swfmill" added
> to it usually give me lots of stuff about the loadMovie()
> ActionScript command, but I'm not sure how I'd get this to do what I
> want.
>
> Cheers,
> -- M. Uli Kusterer
> http://www.zathras.de
>
>
>
> _______________________________________________
> swfmill mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>


--
http://snafoo.org/
jabber: [EMAIL PROTECTED]

_______________________________________________
swfmill mailing list
[email protected]
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Reply via email to