Discussion:
Disabling a PLAYBUTTON element
(too old to reply)
dsmcd
2004-08-10 23:32:54 UTC
Permalink
Hello...

I'm using predefined PLAYBUTTON, STOPBUTTON, etc.,
elements. How can I temporarily disable these elements when
normally they'd be enabled?

In other words, under certain conditions (that I'm already
trapping for), the PLAYBUTTON is in its enable mode (will
begin playing when pressed). I'd like the PLAYBUTTON to
instead be in it's disabled mode (displays its
disabledImage, and nothing happens when it's pressed).

Setting PlayButton.enabled = "false" or doesn't seem to
work.

I'm currently using "dummy" buttons at the identical "top"
and "left" and making them visible and invisible, but would
hope there's a more appropriate solution.

Any suggestions?

Thx,
D.
Michael
2004-08-22 20:30:26 UTC
Permalink
dsmcd wrote:
| Hello...
|
| I'm using predefined PLAYBUTTON, STOPBUTTON, etc.,
| elements. How can I temporarily disable these elements when
| normally they'd be enabled?
|
| In other words, under certain conditions (that I'm already
| trapping for), the PLAYBUTTON is in its enable mode (will
| begin playing when pressed). I'd like the PLAYBUTTON to
| instead be in it's disabled mode (displays its
| disabledImage, and nothing happens when it's pressed).
|
| Setting PlayButton.enabled = "false" or doesn't seem to
| work.
|
| I'm currently using "dummy" buttons at the identical "top"
| and "left" and making them visible and invisible, but would
| hope there's a more appropriate solution.
|
| Any suggestions?

PLAYBUTTON uses enabled = "wmpenabled:player.controls.play"
so something like PAUSE will change the enabled state. Try
adding enabled = "false" to the PLAYBUTTON element so it
doesn't change when the PLAYSTATE changes.
dsmcd
2004-08-24 22:18:28 UTC
Permalink
Post by Michael
| Hello...
|
| I'm using predefined PLAYBUTTON, STOPBUTTON, etc.,
| elements. How can I temporarily disable these elements
when
| normally they'd be enabled?
|
| In other words, under certain conditions (that I'm
already
| trapping for), the PLAYBUTTON is in its enable mode (will
| begin playing when pressed). I'd like the PLAYBUTTON to
| instead be in it's disabled mode (displays its
| disabledImage, and nothing happens when it's pressed).
|
| Setting PlayButton.enabled = "false" or doesn't seem to
| work.
|
| I'm currently using "dummy" buttons at the identical
"top"
| and "left" and making them visible and invisible, but
would
| hope there's a more appropriate solution.
|
| Any suggestions?
PLAYBUTTON uses enabled =
"wmpenabled:player.controls.play"
so something like PAUSE will change the enabled state. Try
adding enabled = "false" to the PLAYBUTTON element so it
doesn't change when the PLAYSTATE changes.
Yeah, had already tried that. Doesn't seem to work. I'll
continue with my dummy buttons. It's a kludge to be sure,
but I'll be the only one to know.

Thx,
D.
Michael
2004-08-28 22:49:42 UTC
Permalink
Michael wrote:
| PLAYBUTTON uses enabled = "wmpenabled:player.controls.play"
| so something like PAUSE will change the enabled state. Try
| adding enabled = "false" to the PLAYBUTTON element so it
| doesn't change when the PLAYSTATE changes.

dsmcd wrote:
| Yeah, had already tried that. Doesn't seem to work. I'll
| continue with my dummy buttons. It's a kludge to be sure,
| but I'll be the only one to know.

I tested it by replacing the TEXT in the textplay example with
a PLAYBUTTON and it worked.

<PLAYBUTTON enabled = "false"/>
dsmcd
2004-08-31 15:10:56 UTC
Permalink
Post by Michael
| PLAYBUTTON uses enabled = "wmpenabled:player.controls.play"
| so something like PAUSE will change the enabled state. Try
| adding enabled = "false" to the PLAYBUTTON element so it
| doesn't change when the PLAYSTATE changes.
| Yeah, had already tried that. Doesn't seem to work. I'll
| continue with my dummy buttons. It's a kludge to be sure,
| but I'll be the only one to know.
I tested it by replacing the TEXT in the textplay example with
a PLAYBUTTON and it worked.
<PLAYBUTTON enabled = "false"/>
Looks like you're doing this in the wms file. I'd need to do it
in the java file since the enable/disable would be temporary and
at my control.

Thx,
D.
Michael
2004-09-02 10:41:05 UTC
Permalink
Michael wrote:
| <PLAYBUTTON enabled = "false"/>

dsmcd wrote:
| Looks like you're doing this in the wms file. I'd need to
| do it in the java file since the enable/disable would be
| temporary and at my control.

This, in the wms, prevents the enabled state from changing
when the PLAYSTATE changes, then, in the js, you change the
enabled state with the button's ID: bPlay.enabled = true;

Loading...