as3 casting issue

Either I’m going slightly mad or casting using the “as” keyword works differently to the old way of casting. Here’s some code to illustrate: showFormItem = (((e.target as CheckBox).selected as String) == _local.displayTriggerValue[i]) ? true : false Now this gives a different result to: showFormItem = (String((e.target as CheckBox).selected) == _local.displayTriggerValue[i]) ? true : false … Read more

Passing parameters to a Flex eventListener – use a Dictionary!

Firstly, Happy New Year! Hope your ’09 is off to a flyer! Secondly, sorry about the rather mundane heading – couldn’t really think of what to call this post. I’ve been typing all sorts of things into Google trying to find a solution to what I’ll describe below. I’m continuing the project I started in … Read more