button stops working

Mark Wieder mwieder at ahsoftware.net
Thu Jun 2 17:24:59 EDT 2005


Jon-

Thursday, June 2, 2005, 12:45:18 PM, you wrote:

On loading the stack I get an immediate error in button "Playbutton".
You don't need or want "the" in front of the word "scrollBar", in the
same way that you don't want or need it in front of "player".
ScrollBar is an object type in xtalk.

set the Value of the scrollBar "ProgressBar" to the currentTime of player "Player"
set the Value of scrollBar "ProgressBar" to the currentTime of player "Player"

Also, "Value" should be "currentValue".

And I assume by the line

call trackPlayer

you're trying to execute the handler named "trackPlayer". In that case

trackPlayer

does what you want.

-------------

put the ct into item 2 of line 2 of table "PlaybackStatus"

In the script for player "Player" (bad idea to name an object using a
reserved keyword) you refer to "the ct" where ct is a local variable.
You don't want "the" as a qualifier for variables.

(same line) table is not an object. You want "field" here. If you use
the Property Inspector you'll see that your "table" item is actually a
"field" object.

-------------

In your "Open" button:

You can't set the Tracks of a player object.
You need a space in the middle of "thefileName"

-- 
-Mark Wieder
 mwieder at ahsoftware.net



More information about the use-livecode mailing list