Folkert, Sorry, I was playing with the mailing list options, and had my emails turned off when you sent your response. (That's why this response may show up in the wrong place on the mailing list thread)
The getters and setters seem to work fine in Flash 6 except in the case of calling the getter in the "scope" of the setter. Take a look at the output when compiled to version 6. Notice how the getter is not called during the setter call, but it is called during the normal method call? Weird. ====================================== OUTPUT ====================================== --calling setter-- SETTER called with '7' SETTER calling getter... SETTER received (undefined) from getter SETTER calling Main.check_getter()... Main.check_getter() called Main.check_getter() calling getter... Main.check_getter() received (undefined) from getter Main.check_getter() done SETTER done GETTER called --calling normal method-- NORMAL_METHOD called with '12' NORMAL_METHOD calling getter... GETTER called NORMAL_METHOD received (number)7 from getter NORMAL_METHOD calling Main.check_getter()... Main.check_getter() called Main.check_getter() calling getter... GETTER called Main.check_getter() received (number)7 from getter Main.check_getter() done NORMAL_METHOD done ====================================== - matt > flashplayer 6 cannot read those kind of getter setter ;) so it's normal > that does not work until player 7. > > hth > > Folkert On 6/1/06, Chris Velevitch <[EMAIL PROTECTED]> wrote: > When you first create the instance __some_value is undefined. The > first time you set a value, you are getting the value before you > actually set the value. Thus the value is undefined. > > > Chris > -- > Chris Velevitch > Manager - Sydney Flash Platform Developers Group > www.flashdev.org.au > > _______________________________________________ > osflash mailing list > [email protected] > http://osflash.org/mailman/listinfo/osflash_osflash.org > _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
