gnash-commit
[Top][All Lists]
Advanced

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

Re: [Gnash-commit] gnash/testsuite/misc-ming.all DefineEditTextVar...


From: zou lunkai
Subject: Re: [Gnash-commit] gnash/testsuite/misc-ming.all DefineEditTextVar...
Date: Thu, 3 Apr 2008 16:35:51 +0800

> Try some AsSetPropFlags too ?
> Example, if I make the associated variable read-only, would it still
> be updated when I change the textfield value (by user input or assignment
> to the

Tested here. The textField variable will not be updated when it is protected.

Tests description:

Tags:
Define and place a static TextField instance "dtext" with a
uninitialized variable named as "text_var".

AS code:

text_var = "inital text";
// protect properties of _root
ASSetPropFlags(_root, null, 7, 7);
for(var i in _root){
    trace(i);  // check that if I have done the protection correctly.
}
dtext.text = "reset";
trace(text_var);  // output  "inital text", while the screen displays "reset".
                        // without the protection,  both the output
and the display are "reset"

I'll automate the tests if needed later.  Not very sure how to use
ASSetPropFlags to clear a certain flag at the moment.

--zou



On 4/3/08, strk <address@hidden> wrote:
> On Thu, Apr 03, 2008 at 05:47:05AM +0000, Zou Lunkai wrote:
> > CVSROOT:      /sources/gnash
> > Module name:  gnash
> > Changes by:   Zou Lunkai <zoulunkai>  08/04/03 05:47:05
> >
> > Modified files:
> >       testsuite/misc-ming.all:
> >                                DefineEditTextVariableNameTest-Runner.cpp
> >                                DefineEditTextVariableNameTest.c
> >
> > Log message:
> >       test deletion of textField instance variables, got new xchecks.
>
> Try some AsSetPropFlags too ?
> Example, if I make the associated variable read-only, would it still
> be updated when I change the textfield value (by user input or assignment
> to the textfield.text) ?
>
> --strk;
>




reply via email to

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