1 button for mutliuses

Jim Lyons jimlyons at earthlink.net
Sat Jun 4 08:42:47 EDT 2005


Concerning changing the name of objects:  Since we get to have both 
names and labels on objects in Revolution, I like to leave the name 
unchanged -- "play/pause" or some such -- and change the label to show 
the state of the button.

Jim Lyons

On Jun 3, 2005, at 10:20 PM, Tom McGrath wrote:

> Make a button and name it "Play" without the quotes then put this
> script into it:
>
> on mouseUp
> if (the short name of me is "Play") then
> set the name of me to "Pause"
> -- pause script for player goes here
> --play stop audioClip "Trust No One" -- or pause
> else
> set the name of me to "Play"
> -- play script for player goes here
> --play audioClip "Trust No One"
> end if
> end mouseUp
>
> Tom
>
> On Jun 3, 2005, at 8:20 PM, Buddyb3ar22 at aol.com wrote:
>
>> So does that mean I would have to insert all of this code into the
>> Script
>> part?
>> And for the ID, what would an example look like x.x like on the C:/
>> Drive or
>> something like that.. I'm sorry, I'm just kinda confused
>> -------
>>
>> set the name of me to "Play"
>> set the name of me to "Pause"
>> set the icon of me to 1000 ## the ID of an image you want to use
>>
>> on mouseUp
>> if (the short name of me is "Play") then
>> ...
>> else
>> ...
>> end if
>> end mouseUp
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
>
> Thomas J. McGrath III



More information about the use-livecode mailing list