Hi Blair,

Can you tell us what changed after you saw it work? Did you add a field,
edit a background, etc?


Ideas:

- Use a "mouseUp" handler instead of mouseDown. It's more humane, in that it
allows the user to change his mind. (Other than that, I don't know if it
will make any difference in the outcome.)

- Before the first "if", add:
    put the selectedLine
  It may help you understand what MC sees at that moment.

Phil Davis



Blair Moxon wrote:
> 
> Hello,
> I am trying to use a field (with list behaviour turned on) to show and hide
> images in another group (on the same card and stack). For example, if the
> user clicks on Line 1 then show image A, if Line 2 then show image B, etc.
> while hiding the rest.
> 
> on mouseDown
> 
>   if the selectedLine is "line 1 of field 4" then
>     show image "A"
>     hide image "B"
>   else
>     if the selectedLine is "line 2 of field 4" then
>     hide image "A"
>     show image "B"
>     end if
>   end if
> end mouseDown
> 
> This actually worked for a few minutes(!) then ceased functioning. I must be
> missing something here. Any ideas? Thanks,
> 
> Blair Moxon
> [EMAIL PROTECTED]
> 
> This is the MetaCard mailing list.
> Archives: http://www.mail-archive.com/metacard%40lists.best.com/
> Info: http://www.xworlds.com/metacard/mailinglist.htm

-- 
Phil Davis
------------------
[EMAIL PROTECTED]

This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm

Reply via email to