  | |  | Loading fonts = Movie not responding | Loading fonts = Movie not responding
2004-02-20 - By Marc-Andr? Lavoie
Back Seems to be a problem with the initialization on frame 1... Flash must
initalize fonts, classes, components etc. And during that time, a
loaded Flash may not be available.
The workaround I 've found was to put an action on frame 2 (of the
loaded swf) that sets a variable, and have the caller wait for that
variable before doing any actions.
So, at frame 2 of your loaded SWFs:
var imReady = true;
And in the shell:
onEnterFrame() {
if(main.imReady) {
main.gotoAndPlay( "startApp ");
}
}
You could use a loop or a setInterval instead of EnterFrame...
M-A
On 04-02-20, at 05:19, David Pérez Ortuño wrote:
> I have a shell movie that loads a main movie.
> When main movie is loaded, I do main.gotoAndPlay( "startApp ")
>
> The main movie uses some dinamically-library-loaded fonts.
>
> At local, everything goes well. When in the server, the main movie
> doesn 't
> respond to gotoAndPlay.
>
> It seems that there is a lapse between the moment in which main.swf is
> loaded, and the moment in which the imported symbols are available. The
> result - > the movie doesn 't respond to gotoAndPlay.
>
> If I put a button to order the gotoAndPlay, and press it afterwards,
> it goes
> ok.
>
> It 's a real problem for me, as I 've planned all the site contents with
> a
> similar layout, with many content movies that use shared fonts... but
> it
> seems that it will be impossible to start them as they get loaded.
>
> Have you got any ideas? Thank you.
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
> -- --
> ----
> David Pérez Ortuño
> Diseño y programación
> Ideas 'Sshop S.L.
> david@(protected)
> http://www.ideas-shop.com
>
>
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> Supported by Fig Leaf Software
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> Be sure to check the archives and the wiki:
> http://chattyfig.figleaf.com/
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104838
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> To unsubscribe send a blank e-mail to:
> Normal Mode: flashcoders-unsubscribe@(protected)
> Digest Mode: flashcoders-digest-unsubscrive@(protected)
>
>
Marc-Andr? Lavoie > Pixel Nickel
8277 saint-denis / montréal / québec / H2P 2G7
514-844-9997 / malavoie@(protected)
http://www.pixelnickel.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104857
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |