Hi Josh,

Most of the time I do this:

 put the long ID of btn "thing" of stack "main" into tTargetButton

... so later I can do this:

 set the hilite of tTargetButton to true
 set text of tTargetButton to tSomeMenuItems
 etc.

That's my preferred method, because it improves script clarity/readability and target precision while reducing mental overhead.

I generally use the long ID because the ID is always unique, where names may not be.

Phil Davis





Josh Mellicker wrote:
To easily identify a specific control on a card in a stack, what method do you use?


I have been trying several, and am getting intermittent bugs...

---

method 1: set the calSender of stack "greenbongo" to the long name of me

or

method 2: set the calSender of stack "greenbongo" to the long ID of me


then, in scripts:

send "datePicked" to btn the calSender of stack "greenbongo"

or

        put the calSender of stack "greenbongo" into tSender
        send datePicked to tSender

or

        put the calSender of stack "greenbongo" into tSender
        send datePicked to btn tSender

This usually works but bothers me because the custom property actually starts with the word "button", so I am saying "btn button..."

---

method 3:

function tPlayer
 return the long ID of Player "video" of cd "this" of stack "that"
end tPlayer

then, in scripts:

set the filename of tPlayer() to "blahblah.mov"


This works sometimes, but seems not to work other times.


Sometimes I resort to the full "pathname" but this makes scripts dense and cluttered.


Thanks for clearing up this foggy area for me!
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to