openstack
Devin Asay
devin_asay at byu.edu
Mon Nov 5 12:55:00 EST 2007
Hi Jonathan,
Welcome to the Revolution. I see a couple of possible problems. One
is that in Revolution, as opposed to HyperCard, you don't normally
refer to objects as background or card objects, just field, button,
group, image, whatever. (The exception is when you have directly
imported a HyperCard stack. In that case Revolution sets the
HCaddressing property to true so that it can understand HyperCard
object references.) So you could try:
send "mouseUp" to btn id xxx
You might also try specifying the object more fully:
send "mouseUp" to btn id xxx of card X
It may also be a matter of where you put the command--in which
handler. For example, the startup message doesn't get sent to your
stack in the Development environment, so nothing in 'on startup'
would run when you open the stack. The startup message will only get
sent when you create a standalone from your stack.
Finally, have you tried putting the command in an openCard or
preOpenCard handler? Because of the order that libraries load,
certain commands may not work in a stack that's been made into a
standalone.
Hope something here helps.
Devin
On Nov 2, 2007, at 5:24 AM, Jonathan Scott wrote:
> Hi,
> My name is songe. I'm new to runrev. I'm trying to do something
> simple and can't figure out how to do it.
>
> I need a button to be activated as soon as the stack is opened.
> So, in the stack script I put the following line:
>
> send "mouseUp" to bg btn id XXX.
>
> When I quit out of it all and then come back into it though, the
> button is not activated. Could you please tell me what I am doing
> wrong? Thank you.
Devin Asay
Humanities Technology and Research Support Center
Brigham Young University
More information about the use-livecode
mailing list