Scrolling List field please help please help.....

Ban Nguyen bann at sunncomm.com
Mon Jul 11 16:37:49 EDT 2005


Hi Mark

I am creating an audio player

I created a scrolling list field contanins a list of audio
I created the button play and stop using this code:

on mouseUp
  global gClickVar
     play audioClip value(gClickVar) looping
end mouseUp

on mouseUp
  global gClickVar
     stop playing audioClip value(gClickVar) 
end mouseUp

I want to create the pause, previous, next buttons
I want use click on the next button, then the next song in the list
should be hightlighted and play

Also same for previous button, plays the previous song

And pause button to stop the song

Could you please help.  Thank you so much



-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Mark
Swindell
Sent: Monday, July 11, 2005 1:30 PM
To: How to use Revolution
Subject: Re: Scrolling List field please help please help.....

I'm not sure I understand your question or exactly what you want to  
happen.

Each time you click a new line in field 1, that line replaces what  
was previously in the global variable or custom property. Then,  
clicking the button would place the new text into field 2.

Mark



On Jul 11, 2005, at 1:21 PM, Ban Nguyen wrote:

> Hi Mark
> How can I get the next value by clicking on the button and hightlight
> that line
>
>
>
>
> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Mark
> Swindell
> Sent: Monday, July 11, 2005 12:06 PM
> To: How to use Revolution
> Subject: Re: Scrolling List field
>
>
> On Jul 11, 2005, at 11:16 AM, Ban Nguyen wrote:
>
>
>> Thanks you for your help.  It works.  How can I transfer the value of
>> clickline into a button so when user click on a button then it
>> shows the
>> value of clickline
>>
>
> You could put the clickline into a global variable (gClickVar) or
> custom property (clickProp).  When the user clicks on the button the
> value of the variable (or custom property) would show at the location
> of your choosing.
>
>
> This would go into the field you click on:
>
> On mouseUp
> global gClickVar
> put the clickline into gClickVar  -- (or)
> --set the clickProp of this card to the clickline
> End mouseUp
>
>
> This would go into the Button that places the value of the clickline
> into a second field
>
> On MouseUp
> global gClickVar
> put value(gClickVar) into field 2 -- or
> --put the clickProp of this cd into field 2
> end MouseUp
>
> Hope this makes sense.  There are probably other more elegant  
> solutions.
>
> Mark
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution



More information about the use-livecode mailing list