Archive by category AS3

AES-128 padded encryption/decryption with Railo, Java and AS3

I’ve recently been working on text file decryption using Railo server. My files were encrypted in ActionScript 3 with the powerful AES-128 algorithm. For more info on AS3 encryption see Hurlant Crypto demo. My challenge was to decypt this heavily encrypted content on a different platform, i.e. Railo with underlying Java Cipher capabilities. The 6 […]

Read More

Flash to Flex ComponentEvent coercion error solved

Today I had an interesting problem embedding a swf file compiled in Flash Professional CS3 into Flash Builder 4. My SWF file contained a Flash TextArea component, which dispatches a ComponentEvent when scroll bars are activated. This event resulted in the following error in Flex: TypeError: Error #1034: Type Coercion failed: cannot convert fl.events::[email protected] to […]

Read More

Removing default icons from Flex Tree control

What’s so cool about Flex framework is the fact that it’s very extensible, which allows me to do almost anything I want with it. For example, to remove folder/arrow icons from Flex Tree control, which prevents nodes from collapsing and also creates more space for labels, you can add the following in your stylesheet: defaultLeafIcon: […]

Read More

Flex and Red5 simple demo

I’ve been using Red5 Flash Streaming Server for a while and the more I use it, the better I like it.  Sure, Adobe Flash Media Server is an excellent commercial product which does the same thing and supports server-side ActionScript.  Red5 doesn’t support server-side ActionScript at the moment (this will probably change), but it is an open source Flash […]

Read More