Re: Basic question about behaviors

2020-08-26 Thread William Prothero via use-livecode
Thanks, Paul. That worked.
Bill

William A. Prothero
https://earthlearningsolutions.org

> On Aug 25, 2020, at 8:03 PM, Paul Hibbert via use-livecode 
>  wrote:
> 
> Bill, try this in the behaviour button script:
> 
> on mouseUp
>  put the long name of this me into theName  —theName will contain the long 
> name of the behaviour button.
> end mouseUp
> 
> put this me into theName - would put the value contained in the text property 
> of the behaviour button into theName. In standard, default and rectangle 
> buttons we don’t normally use the text property, but there’s nothing stopping 
> you from using it if you wish, you just need to populate it first. :)
> 
> Paul
> 
>> On 25Aug, 2020, at 15:48, William Prothero via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> on mouseUp
>>  put  this me into theName  —theName is blank.
>> end mouseUP
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Basic question about behaviors

2020-08-26 Thread Keith Clarke via use-livecode
Certainly best to avoid any made backwards.

> On 26 Aug 2020, at 15:20, Martin Koob via use-livecode 
>  wrote:
> 
> Is there a rule regarding puns?
> 
> Martin
> 
>> On Aug 26, 2020, at 9:30 AM, Paul Pystcat via use-livecode 
>>  wrote:
>> 
>> ROFL
>> 
>> THAT was gouda!
>> 
>> (I know, I know!  I broke one of the rules… no politics, no religion and no 
>> cheese)
>> 
>>> On Aug 26, 2020, at 9:09 AM, Mike Kerner via use-livecode 
>>>  wrote:
>>> 
>>> On Tue, Aug 25, 2020 at 12:41 PM Sean Cole (Pi) via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
 I LOVE 'this me'. This extraordinary use of coding language is truly where
 LC  shines and why I love it so much, - sometimes. [sigh]
 
 Sean
 
>>> 
>>> and that's why your fonts break - because you "LOVE" - not "love", not
>>> "Love", not "l-o-l-o-l-o-v-e", but "LOVE" "this me".
>>> you're welcome.
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Basic question about behaviors

2020-08-26 Thread Devin Asay via use-livecode
Only cheese puns.

> On Aug 26, 2020, at 8:20 AM, Martin Koob via use-livecode 
>  wrote:
> 
> Is there a rule regarding puns?
> 
> Martin
> 
>> On Aug 26, 2020, at 9:30 AM, Paul Pystcat via use-livecode 
>>  wrote:
>> 
>> ROFL
>> 
>> THAT was gouda!
>> 
>> (I know, I know!  I broke one of the rules… no politics, no religion and no 
>> cheese)
>> 
>>> On Aug 26, 2020, at 9:09 AM, Mike Kerner via use-livecode 
>>>  wrote:
>>> 
>>> On Tue, Aug 25, 2020 at 12:41 PM Sean Cole (Pi) via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
 I LOVE 'this me'. This extraordinary use of coding language is truly where
 LC  shines and why I love it so much, - sometimes. [sigh]
 
 Sean
 
>>> 
>>> and that's why your fonts break - because you "LOVE" - not "love", not
>>> "Love", not "l-o-l-o-l-o-v-e", but "LOVE" "this me".
>>> you're welcome.
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Basic question about behaviors

2020-08-26 Thread Martin Koob via use-livecode
Is there a rule regarding puns?

Martin

> On Aug 26, 2020, at 9:30 AM, Paul Pystcat via use-livecode 
>  wrote:
> 
> ROFL
> 
> THAT was gouda!
> 
> (I know, I know!  I broke one of the rules… no politics, no religion and no 
> cheese)
> 
>> On Aug 26, 2020, at 9:09 AM, Mike Kerner via use-livecode 
>>  wrote:
>> 
>> On Tue, Aug 25, 2020 at 12:41 PM Sean Cole (Pi) via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> I LOVE 'this me'. This extraordinary use of coding language is truly where
>>> LC  shines and why I love it so much, - sometimes. [sigh]
>>> 
>>> Sean
>>> 
>> 
>> and that's why your fonts break - because you "LOVE" - not "love", not
>> "Love", not "l-o-l-o-l-o-v-e", but "LOVE" "this me".
>> you're welcome.
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Basic question about behaviors

2020-08-26 Thread Paul Pystcat via use-livecode
ROFL

THAT was gouda!

(I know, I know!  I broke one of the rules… no politics, no religion and no 
cheese)

> On Aug 26, 2020, at 9:09 AM, Mike Kerner via use-livecode 
>  wrote:
> 
> On Tue, Aug 25, 2020 at 12:41 PM Sean Cole (Pi) via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I LOVE 'this me'. This extraordinary use of coding language is truly where
>> LC  shines and why I love it so much, - sometimes. [sigh]
>> 
>> Sean
>> 
> 
> and that's why your fonts break - because you "LOVE" - not "love", not
> "Love", not "l-o-l-o-l-o-v-e", but "LOVE" "this me".
> you're welcome.
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Basic question about behaviors

2020-08-26 Thread Mike Kerner via use-livecode
On Tue, Aug 25, 2020 at 12:41 PM Sean Cole (Pi) via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I LOVE 'this me'. This extraordinary use of coding language is truly where
> LC  shines and why I love it so much, - sometimes. [sigh]
>
> Sean
>

and that's why your fonts break - because you "LOVE" - not "love", not
"Love", not "l-o-l-o-l-o-v-e", but "LOVE" "this me".
you're welcome.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Basic question about behaviors

2020-08-25 Thread Paul Hibbert via use-livecode
Bill, try this in the behaviour button script:

on mouseUp
  put the long name of this me into theName  —theName will contain the long 
name of the behaviour button.
end mouseUp

put this me into theName - would put the value contained in the text property 
of the behaviour button into theName. In standard, default and rectangle 
buttons we don’t normally use the text property, but there’s nothing stopping 
you from using it if you wish, you just need to populate it first. :)

Paul

> On 25Aug, 2020, at 15:48, William Prothero via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> on mouseUp
>   put  this me into theName  —theName is blank.
> end mouseUP




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Basic question about behaviors

2020-08-25 Thread Bob Sneidar via use-livecode
This Me only works in the behavior script, not the button script. Not sure if 
that helps.

Bob S


On Aug 25, 2020, at 3:48 PM, William Prothero via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

I assumed the script would be:
on mouseUp
  put  this me into theName  —theName is blank.
end mouseUP

However, it gave me a blank.

I found that this works, though.
on mouseUP
  put the exectionContext into theName
end mouseUp

Thanks,
Bill

William A. Prothero
https://earthlearningsolutions.org

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Basic question about behaviors

2020-08-25 Thread William Prothero via use-livecode
I assumed the script would be:
on mouseUp
   put  this me into theName  —theName is blank.
end mouseUP

However, it gave me a blank. 

I found that this works, though.
on mouseUP
   put the exectionContext into theName
end mouseUp

Thanks,
Bill

William A. Prothero
https://earthlearningsolutions.org

> On Aug 25, 2020, at 9:40 AM, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> I LOVE 'this me'. This extraordinary use of coding language is truly where
> LC  shines and why I love it so much, - sometimes. [sigh]
> 
> Sean
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Basic question about behaviors

2020-08-25 Thread Sean Cole (Pi) via use-livecode
I LOVE 'this me'. This extraordinary use of coding language is truly where
LC  shines and why I love it so much, - sometimes. [sigh]

Sean
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Basic question about behaviors

2020-08-25 Thread Bob Sneidar via use-livecode
Try the execution contexts. And yes, this me will return the behavior object 
itself.

Bob S


On Aug 24, 2020, at 8:18 PM, prothero--- via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

I have assigned a behavior to a button. The behavior button/source is on a 
different stack. It works fine. But a click on a movie player, on the same 
card, triggers the mouseUp handler in the behavior, which I don’t want to 
happen. It seems odd that this would happen, but I need to fix it.

My solution is to test whether the target is the button, or something else. I 
solved it by trapping the mouseUp message in a script on the player. However, I 
was trying to figure out how to get the behavior to give me the source/origin 
of the mouseUp message. I can get the name of the card using “the owner” but 
can’t seem to find the right syntax to get the name of the button that the 
behavior is attached to.

This is probably trivial, but I’d appreciate any help.

Thanks,
Bill

William A. Prothero
Santa Barbara, CA. 93105
http://earthlearningsolutions.org/

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Basic question about behaviors

2020-08-25 Thread Mike Kerner via use-livecode
i like "this me" less and less every time i read it.

On Mon, Aug 24, 2020 at 11:30 PM Brian Milby via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Wouldn’t it just be “me”?  And “this me” should be the behavior object.
>
> Sent from my iPhone
>
> > On Aug 24, 2020, at 11:19 PM, prothero--- via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > I have assigned a behavior to a button. The behavior button/source is
> on a different stack. It works fine. But a click on a movie player, on the
> same card, triggers the mouseUp handler in the behavior, which I don’t want
> to happen. It seems odd that this would happen, but I need to fix it.
> >
> > My solution is to test whether the target is the button, or something
> else. I solved it by trapping the mouseUp message in a script on the
> player. However, I was trying to figure out how to get the behavior to give
> me the source/origin of the mouseUp message. I can get the name of the card
> using “the owner” but can’t seem to find the right syntax to get the name
> of the button that the behavior is attached to.
> >
> > This is probably trivial, but I’d appreciate any help.
> >
> > Thanks,
> > Bill
> >
> > William A. Prothero
> > Santa Barbara, CA. 93105
> > http://earthlearningsolutions.org/
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Basic question about behaviors

2020-08-24 Thread Brian Milby via use-livecode
Wouldn’t it just be “me”?  And “this me” should be the behavior object.

Sent from my iPhone

> On Aug 24, 2020, at 11:19 PM, prothero--- via use-livecode 
>  wrote:
> 
> I have assigned a behavior to a button. The behavior button/source is on a 
> different stack. It works fine. But a click on a movie player, on the same 
> card, triggers the mouseUp handler in the behavior, which I don’t want to 
> happen. It seems odd that this would happen, but I need to fix it.
> 
> My solution is to test whether the target is the button, or something else. I 
> solved it by trapping the mouseUp message in a script on the player. However, 
> I was trying to figure out how to get the behavior to give me the 
> source/origin of the mouseUp message. I can get the name of the card using 
> “the owner” but can’t seem to find the right syntax to get the name of the 
> button that the behavior is attached to.
> 
> This is probably trivial, but I’d appreciate any help.
> 
> Thanks,
> Bill
> 
> William A. Prothero
> Santa Barbara, CA. 93105
> http://earthlearningsolutions.org/
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Basic question about behaviors

2020-08-24 Thread prothero--- via use-livecode
I have assigned a behavior to a button. The behavior button/source is on a 
different stack. It works fine. But a click on a movie player, on the same 
card, triggers the mouseUp handler in the behavior, which I don’t want to 
happen. It seems odd that this would happen, but I need to fix it.

My solution is to test whether the target is the button, or something else. I 
solved it by trapping the mouseUp message in a script on the player. However, I 
was trying to figure out how to get the behavior to give me the source/origin 
of the mouseUp message. I can get the name of the card using “the owner” but 
can’t seem to find the right syntax to get the name of the button that the 
behavior is attached to.

This is probably trivial, but I’d appreciate any help.

Thanks,
Bill

William A. Prothero
Santa Barbara, CA. 93105
http://earthlearningsolutions.org/

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode