[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-commit] gnash ChangeLog server/character.h server/butto...
From: |
strk |
Subject: |
Re: [Gnash-commit] gnash ChangeLog server/character.h server/butto... |
Date: |
Fri, 9 Mar 2007 11:11:57 +0100 |
On Fri, Mar 09, 2007 at 09:41:26AM +0100, Udo Giacomozzi wrote:
> Hello strk,
>
> Thursday, March 8, 2007, 11:12:46 PM, you wrote:
> s> Can you try something like:
>
> s> mybtn.enable = "a_string";
> s> check_equals(typeof(mybtn.enable), 'string');
>
> It becomes a string. :(
>
>
> s> If the test suceeds (with the MM player), we can't
> s> use the getter-setter :(
>
> Seems so. What's the alternative?
We can just get_member() from the get_enabled()
and set_member() from set_enabled().
But I'd make more tests, as get_member() and set_member()
would crowl the inheritance chain.
Test this:
Object.prototype.test = 4;
check_equals(typeof(mybnt.test), 'number');
Object.prototype.enabled = false;
check_equals(typeof(mybnt.enabled), 'boolean');
check( ! mybnt.enabled );
... then see if this makes your button disabled ...
mybtn.enabled = true; // (or false depending on the previous check)
... then see if this changes your button state ...
> s> We do this when placing objects on a DisplayList (so in sprite_instance
> only).
> s> Not doine in buttons (We shall do there too).
> s> Probably we'll have to use a "global" counter for instance naming, rather
> s> then having a counter for each timeline.
>
> Yes, that would be correct.
I'll do this.
--strk;