Search

ActionScript / Flex / AIR sample

Subscribe to ActionScript / Flex / AIR sample 1 post(s)

 
James

Hey guys, Seeing as there’s no Flex, Flash or AIR examples around that I can see, I thought I’d post some sample code that I’ve whipped up. This connects to, and traces out the name of your project.
It’s a Flex MXML file that will work fine for Flex and AIR applications (although the AIR one will display nothing visually unless you convert it to a WindowedApplication).

Just replace username, password and subdomain (obviously). In an AIR application there is no security sandbox, so it works fine – in a Flex application, with Flash Player 9 and above there is a sandbox that prevents the Flash Player from passing header variables without a crossdomain.xml file, so you will be prompted for a username/password login before the results are retrieved. (http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403184&sliceId=2)

<?xml version=“1.0” encoding=“utf-8”??>