Friday, May 6, 2011

How to access internal variables in Flex/Action Script 3?

Import the namespace mx_internal

//your existing imports
import mx.core.mx_internal;

Tell Actionscript that is a namespace
use namespace mx_internal;

Prefix the property name with mx_internal::
<instance>.mx_internal::<internal var/method>

HTTP Basic Authentication - GET - passing headers in ActionScript 3

Unfortunately I couldn't figure out anyways to handle this. Player discards the headers you set in a GET request. My SSO was okay for a POST, and in POST headers will be included if you pass some dummy parameters along with the request.

Flex 3.5SDK, Flash player 10.2