So I uploaded the same files (with the random query string attached to the filename for loading) to a server and tried it remotely, and the swfs were loaded, and reloaded again -- it did not appear to have fetched it from cache the second time.
However, the same problem persists: recursion error. It seems so illogical. And so frustrating. On 2/23/07, Jay Bibby <[EMAIL PROTECTED]> wrote:
Thanks, Mike for the reply. Problem with doing that is the loader then can't seem to find the file... Error opening URL "file:///.../puzzle3.swf?487" It was worth a try, though. On 2/23/07, Harris, Mike <[EMAIL PROTECTED]> wrote: > > What happens if you put ? and a random number after the name of the swf > when you load it? Like, mymovie.swf?343423 > > Mike -----Original Message----- > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] ] On Behalf Of Jay > Bibby > Sent: Friday, February 23, 2007 2:54 PM > To: flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] Problem when loading swf a second time > > > 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@chattyfig.figleaf.com 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