Trace keyword/property

Jan Schenkel janschenkel at yahoo.com
Fri Dec 5 11:19:54 EST 2003


--- Thomas J McGrath III <3mcgrath at adelphia.net>
wrote:
> Jan,
> 
> I tried using the script editor to place a break
> point in the 
> "preOpenStack" handler and nothing happens. In fact
> anywhere in the 
> stack script did not work. Only at the card level
> was I able to get a 
> break point.
> 
> I tried method two of typing breakpoint and nothing
> happens either. 
> here is my script:
> 
> I want to see why the card 1 custom property
> pBeenVisisted is still 
> true but the other cards pBeenVisited are false. I
> want the user to 
> hear a voiceover only during the first visit of each
> card in the stack 
> but when they go back to a card they would not have
> to hear it again. 
> But if they quit the app and restart it then they
> would hear the 
> voiceover again. I have a set the pBeenVisited of me
> to True in a "on 
> closeCard".  I would like to track this down but
> can't get the debugger 
> to work in the openStack or preOpenStack handlers in
> the main stack??
> 
>   I can't get the breakpoint to work here:
> 
> on openStack
>    breakpoint
>    put the short name of this stack into
> lmystackname
>    if lmystackname is "UnityCD" then
>      repeat with c = 1 to the number of cards in
> stack "UnityCD"
>        set the pBeenVisited of card c of stack
> "UnityCD" to False
>      end repeat
>    end if
> end openStack
> 
> 
> Thanks
> 
> Tom
> 

Hi Tom,

Have you tried using the messge box to
  send "openStack" to this stack
If it does respond to that, something else is grabbing
the openSTack and not passing it to your stack.

Hope this helped,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


More information about the use-livecode mailing list