Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private var test:String="hello";
- function blah()
- {
- var me = this;
- tf.name="test"
- tf.addEventListener(Event.CHANGE, function(e)
- {
- var id = e.currentTarget.name;
- trace(untyped me[id]); // cannot create property 0 on Main (Did it cast to int because of array access?? :s)
- var id:String = e.currentTarget.name;
- trace(untyped me[id]); //hello
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment