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

Flex Builder trace() issues

I’m having a few issues with Flex Builder and Sephiroth’s FlashTracer Firefox extension at the moment. The first issue is that the Design view in Flex actually traces things like: -> Begin call to AS: getGlobalPoint(Canvas1,-1,-1) Begin call to AS: showConstraints(false) Begin call to AS: getGlobalPoint(Canvas1,-1,-1) Which can clutter up the FlashTracer console. Not only … Read more