Also, having more than one object with the same id is discouraged in lzx. The debugger should issue a warning when you redefine an id -- do you get a warning if you run with the debugger on?

On Oct 25, 2006, at 6:11 PM, Bret Schuhmacher wrote:

Each state has the same objects, with the same id's and names. I ought to be able to searchSubviews to find the named object after I apply the new state, shouldn't I?

Bret

P T Withington wrote:
On 2006-10-25, at 12:49 EDT, Bret Schuhmacher wrote:
Hi all  - anyone using states?

I have two identical states (for testing purposes). I swap them, and all of a sudden I can't access the objects in the second state.

That's the way states work. When you remove a state, it removes the attributes in the state from the object. If you don't want that, move the attribute out of the state and into the object.




Benjamin Shine
Software Engineer, Open Laszlo / Laszlo Systems
[EMAIL PROTECTED]



Reply via email to