John, no solution for your scenario - just a designer who hacks my way through. Question: Why would you want to create and destroy vs just building once for all menus per user session and toggle visibility of the desired tier. Historically visibility should also manage the hit state of the object. For me, from my limited and dated perspective, the building and destroying and infinitely looping class sounds cumbersome, load heavy and possibly unnecessary. I am likely way off base, but would like to know the reasoning and advantages of the approach as i am re-learning Flash and trying to get current - so go easy on me please ;) Does your data change during the session or scale dramatically?

On Aug 21, 2011, at 12:00 PM, flashcoders- requ...@chattyfig.figleaf.com wrote:

  1. Caught In My Own Infinite Loop (John Polk)


----------------------------------------------------------------------

Message: 1
Date: Sat, 20 Aug 2011 10:27:07 -0700 (PDT)
From: John Polk <j.pol...@yahoo.com>
Subject: [Flashcoders] Caught In My Own Infinite Loop
To: Flash List <flashcoders@chattyfig.figleaf.com>
Message-ID:
        <1313861227.44778.yahoomail...@web122201.mail.ne1.yahoo.com>
Content-Type: text/plain; charset=us-ascii

Hi;
I have a class "menu" that calls another class "submenu" to instantiate a submenu of items when a menu item is rolled over. This process loops for as many sublevels exist. The problem comes when I want to destroy them. For example, if someone is at the first item of the second level and out pops the third level, then the user rolls out of the second level back to the first. In this case, the third level should be destroyed. The problem is that I have no way to communicate to my infinitely looping class that we've regressed a level. The same problem occurs when the user is at the second level on the first item and scrolls to the second. At the first item, a third level of items will pop out (assuming such exist) but they won't be destroyed when the user scrolls to the second item of the second level because I have no way to communicate with my infinitely looping script what transpired. I need a way to add these levels as children of a class that somehow gets called every time the infinitely looping class gets called yet doesn't "start from a fresh slate" each time so that I can keep track of all the levels and their associated children being added to the stage. I hope that was clear :-}
TIA,
John


------------------------------

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to