Page 1 of 1

Menu Style-puzzled

Posted: 14 Nov 2014 12:43
by mikeL
Hi
I'm building a menu object,I have one behaving how i want(red one),then when i copied it and changed the relevant links it doesn't behave the same.ie
the red one opens a menu up for you to choose,choose one and the menu disappears and the lable on the selector updates.
the blue one needs to be pushed twice before the menu will open,it some times opens first time but only the initial push.
I can't see what the difference is,Whats even more puzzling is that the editor behaves the same using the "hold down E to emulate" yet when its "synced" the first push on the iPad opens the menu in the editor but not on the iPad.and the second push closes the editor and opens the iPad??!
here is the template for you to experience the puzzle and hopefully solve it.
If there is another way to achieve the end result i'd love to hear it.
mike
2x menu.jzml.zip
(1.51 KiB) Downloaded 63 times

Re: Menu Style-puzzled

Posted: 14 Nov 2014 13:45
by Macciza
Hi
Nice bit of work, easy to miss the error, easy to diagnose . .

Lets have a look and a bit of a think, hmm that state var looks interesting . .
Lets lob up a Monitor on it and see whats happening, hmm, its not changing when it should . .
Why would that be? It should reset when something is selected Maybe that OnSelect() has some clues?
Aaah there it is, a simple typo and fixed . . .

PS The weird interaction between the two was a bit of a give away too . . .

Hope that helps . .

Re: Menu Style-puzzled

Posted: 14 Nov 2014 14:23
by mikeL
Thank you
you pointed me to the problem,I thought it would be something like that,but couldn't see the woods etc.
Thats me back on track,thanks again
mike
PS
you talked about a monitor to see whats going on,where can i find it? sounds very useful