anyone know how you do the following AS2 code in AS3? Code: this.watch("wtcTest", setTest); function setTest(prop, oldval, newval, userData){ _root.txtTest.text="Boohoo"; return newval+"!"; } wtcTest.text="OMG!"; i know to change '_root' to 'Stage', but they seem to have got rid of 'object.watch'
If you haven't solved this problem you should try asking around at forums who specialise in Flash. Try asking at this place http://www.actionscript.org/forums/index.php3
i think i've figured out an alternative... just chucking data from a c# form into flash and wanting to make sure its going there.
You have to use the ChangeWatcher class now I think. If I'm reading it right, you'd have to do something like this: Code: import mx.bindings.utils.ChangeWatcher; ... var cw:ChangeWatcher = ChangeWatcher.watch("wtcTest", "text", setTest); function setTest(){ someObject.txtTest.text = "Boohoo"; } wtcTest.text = "OMG";
Holy Shit! You guys are hard-core. I think I know how to do a rollover and make something open in another window.
damn, flash 9 isn't recognizing ChangeWatcher, which is odd since it should be the same engine as Flex or near as damn
Well damn Only thing I can think to do is download the Flex 2 SDK and point your Flash project Classpath to the source folder (path should look like <wherever you unzipped the SDK>\frameworks\source). That might work. (Never worked in Flash 9, so not sure how this will work.)