gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-dev] DefineEditText variable name and globals


From: strk
Subject: Re: [Gnash-dev] DefineEditText variable name and globals
Date: Thu, 21 Sep 2006 16:07:50 +0200

Well, I committed the patch finally.
Cleaned up a little, the below comments still apply.
(at least we can close bug #17806)

--strk;

On Thu, Sep 21, 2006 at 02:27:06PM +0200, strk wrote:
> Ok, I finally have a working code. I'm not committing
> it yes as I don't really like it.
> 
> Basically, the problem is we don't have any way to generally
> define getter/setter members. An example of this is Array.length.
> It's a member (not a function) but must run a function in
> order to be set or get. 
> The only way to do this currently is by adding hard-coded 
> handling of them in the set_member() and get_member() 
> methods (which are defined for every class in as_object hierarchy).
> 
> So, since the VariableName of an EditTextField would end up
> being a timeline variable, I added hard-coded handling for
> text_variables inside the sprite_instance.
> This means that additionally to normal variables and members,
> each sprite_instance would keep a map of names => edit_text_chars
> and the set_member and get_member functions will set and get
> text from the edit_text_char associated with a specific variable.
> 
> In case we'd need general support for getters/setters (ie: if you 
> can define them with ActionScript) we should really handle this in
> a more generic way.
> 
> --strk;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]