On 14/2/00 9:27 pm, Blair Moxon <[EMAIL PROTECTED]> 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,
Most likely you added, deleted, or relayer some fields. That script
requires the field always to be field number 4, something you can't rely on.
Try something like:
on mouseUp
switch the hilitedLines of me
case 1
break
case 2
break
...etc.
end switch
end mouseUp
Regards,
Kevin
> Blair Moxon
> [EMAIL PROTECTED]
Kevin Miller <[EMAIL PROTECTED]> <http://www.xworlds.com/>
Cross Worlds Computing, MetaCard Distributors, Custom Development.
Tel: +44 (0)131 672 2909. Fax: +44 (0)1639 830 707.
This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm