2 msgRemoting - url encoded text
1 msgAdmin - how to unsub???
2 msgFlash Developers
1 msgSwitch back
6 msg[AS3] Timers behaving erratically
1 msgHelp - Are keyboard shortcuts possible forMenuB...
1 msgInternet Explorer and CTRL keyboard trapping
1 msgRead a website in a projector file
2 msgAdmin - list update, part deux
9 msgXPathAPI recursive XML search
1 msgText Rendering in 9

Problem when loading swf a second time
\ Jay Bibby (23 Feb 2007)
. \ Harris, Mike (23 Feb 2007)
. . \ Hans Wichman (23 Feb 2007)
. . . \ Hans Wichman (23 Feb 2007)
. . . . \ Jay Bibby (23 Feb 2007)
. . . . . \ Hans Wichman (25 Feb 2007)
. . . . . . \ Jay Bibby (25 Feb 2007)
. . \ Jay Bibby (23 Feb 2007)
. . . \ Jay Bibby (23 Feb 2007)
. \ Andrew Eatherington (28 Feb 2007)

1 msgAdmin - list update
5 msgThis is really really really annoying
1 msgREMOVE
5 msgList changes- Help!!
9 msgflv question
1 msgxml content into flash
2 msgAS 3.0 - Typecast a new Obj instantiated from a...
3 msgDo You Need to Clear Intervals in this Case?
Subject:Re: Problem when loading swf a second time
Group:Flashcoders
From:Andrew Eatherington
Date:28 Feb 2007


 
> I wait until the
> MovieClipLoader's listener object receives the onLoadInit call before
> allowing the loaded swf to continue.


I'm late to this but shouldn't it be onLoadComplete()

Andrew


On 23 Feb 2007, at 21:53, Jay Bibby wrote:

> Hi,
>
> I'm at my wits end on this and I don't know where to turn for help.
> Numerous
> Google searches have turned up little in the way of anyone
> encountering a
> similar issue.
>
> I have an interface shell swf that handles the selection, loading and
> display of various external game swfs within it. All are loaded via a
> MovieClipLoader object and all of them have _lockroot set to true.
>
> One particular game behaves fine when loaded the first time into
> the shell.
> But loaded a 2nd time, I get the following 256 levels of recursion
> error
> message...
>
> 256 levels of recursion were exceeded in one action list.
> This is probably an infinite loop.
> Further execution of actions has been disabled in this movie.
>
> The error occurs while the external swf is attaching a movieclip
> from its
> library...
>
> t = _root.attachMovie("title", "title", 1000);
>
> I thought perhaps that it just might be a timing issue, since
> loading the
> swf a second time is virtually instantaneous, even though I wait
> until the
> MovieClipLoader's listener object receives the onLoadInit call before
> allowing the loaded swf to continue.
>
> So I created several delays in the swf, via timeouts and also by
> extending
> the main timeline. Doing so actually seemed to fix the problem. The
> title
> screen was created and the start button on it was functional.
> Subsequently
> starting the game created the first puzzle and all seemed good
> until one of
> the objects in the first puzzle was clicked on... then the same
> recursion
> error.
>
> I'm at my wits end.
>
> To recap: The game functions perfectly the first time it is loaded.
> However,
> after unloading the swf and reloading it again, the same swf seems
> to be
> unstable.
>
> Has anyone seen similar behavior before when using externally
> loaded swfs?
> Or do you have any ideas as to what to look for in the code?
>
> Thanks very much.
>
> Jay
> jayisgames.com
> _______________________________________________
> Flashcoders
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com

_______________________________________________
Flashcoders
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


© 2004-2008 readlist.com