Unable to Catch IOErrorEvent’s when Loading a ByteArray into an Image
I was trying to load a byteArray into an image control today and would randomly get an Unhandled IOErrorEvent message. Now this shouldn't really happen as the image control uses a default broken image icon to display when there are any loading problems. Well after trying to catch the error unsuccessfully I wanted to know what was going on.
So i went digging and i found in the base class of image, SWFLoader line 1497 the following
Augmented Reality
I saw this post over on Ryan Stewarts Blog today and thought that i would mention in addition to the FLARToolkit download you can also download the source flex project from Saqoosha's demo at Max Japan here.
Salesforce ActionScript Fun
Ok I have been working with the salesforce API for a couple of days now and I have found it very interesting. However I have found a few things that don't seem to be very clear when trying to simply login to your account from an application that is running outside of the salesforce Sandbox.
So as i have seen a lot of posts about this i have decided to explain how i go about logging in here.
1. To login you need 3 things
1. Username in the form user@user.com
2. Password.
3. Security Token
To get the security token for a user go to setup>Reset your security token. This will then be emailed to you.
Logging into an Administrators account seems to be different than logging into a normal users account.
For Administrators you have to set the protocol to 'http' for normal users set it to 'https' in addition we have to add the token to the password as follows.
private var _conn : Connection = new Connection( ); private function login( username : String, password : String, token : String, isAdmin : Boolean = false ) : void { _connection.protocol = isAdmin ? 'http' : 'https'; var login : LoginRequest = new LoginRequest( ); login.username = value..username; login.password = value..password.toString( ) + value..token.toString( ); login.callback = new Responder( loginResult, loginFault ); _connection.login( login ); }



