On 5/4/00 2:52 pm, Sivakatirswami <[EMAIL PROTECTED]> wrote:

> I would like the run time facility to edit object scripts while in browse
> mode ala supercards's option command mouseover any object and viola, script
> editor opens.
> 
> I tried putting this script into a button called "frontScript":
> 
> on mouseup
> if optionkey () = "down" then
> edit script of the target
> end if
> 
> end mouseUp
> 
> and then in the open card handler of cd 1 of the stack I put
> 
> on openCard
> put script of button "frontScript" into front
> end opencard
> 
> the idea being to trap for a option key down on  mouseup to edit any object.
> 
> but i got this anamolous behaviour: it works fine the very first time you
> use it. . .hold the option key down and mouseup on some object and the
> script editor opens its script. . .but thereafter it  appears as if all
> other mouse messages are not passed. i can't hit the yes, no or cancel, none
> of the buttons on the home stack works. . .oddly, the menus and keybaord
> commands do work. . .but I am left with no option but to quit and reboot MC.
> 
> Rhere must be a more facile way to edit scripts while in browse mode, than
> to manually have to mouse over to the tool bar and switch to the pointer
> tool and then go back to the toolbar to switch back to browse mode. . .i
> think I am close to a solution, but missing something.

on mouseUp
  if optionkey () = "down" then
    edit script of the target
  end if
  pass mouseUp
end mouseUp

Regards,

Kevin

> Hinduism Today
> 
> Sivakatirswami
> Editor's Assistant/Production Manager
> www.HinduismToday.com
> [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.


Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to