flex

How to use Degrafa AutoShapes

I see a degrafa autoshape that I want to use but it seems like there are no autoshapes included in the swc. What do I have to do to use an autoshape? ...

Get the DPI of Image

How can I get the DPI of mx.controls.Image? Thanks. ...

Flex RemoteObject timeouts?

I've been tinkering around with Flex RemoteObjects, and I've found that they aren't very well behaved with respect to timing out. First, I can't figure out how to set a timeout on "connect". I know I can set requstTimeout, which will correctly timeout after an initial handshake… But if the server doesn't handshake, the connection doesn'...

flex @ oracle open world 2009?

2 years ago I red on jamesward's blog http://www.jamesward.com/blog/2007/11/12/oracle-chooses-flex-part-1/ something about oracle uses flex technology. Does anyone know something about the progress? Were there still apps with flex at the oracle openworld? ...

Button image skins scaled incorrectly sometimes with dynamic CSS loading

I'm having a problem where buttons with image skins are being scaled incorrectly the first time they load. The CSS is being loaded dynamically (as a .swf), and in it, I skin some buttons like this: Button.myButton { disabledSkin: Embed(source='assets/images/chat_button_close.png'); overSkin: Embed(source='assets/images/chat_but...

How can I build my Flex library from source on the command line so that I can RSL it?

What the question says: I want to use compc (either command-line or ant) to build a .swc from some actionscript and mxml code. Right now, the command I have is this: # compile src to .swc FLEX_HOME="${FLEX_HOME:?'FLEX_HOME must be set'}" PROJECT_DIR=$(unset CDPATH; cd `dirname $0`/..; pwd) COMPC="${FLEX_HOME}/bin/compc" "$COMPC" \ -...

ActionScript/Flex: Why are the apply{Fault,Result} methods of AsyncToken internal?

As the title suggests, why are the applyResult and applyFault methods of AsyncToken marked mx_internal? There have been a few times that I would have liked to use AsyncToken in my code, but I've ended up re-writing it because I don't want to force clients to use namespace mx_internal. ...

Does Flex save stuff to the local cache on client computer?

My Flex app downloads a bunch of images. When the user closes the browser window (or navigates away from the page), those images shouldn't be saved in the local cache. HTTP headers for the SWF file tells browser to fetch it from the website every time -- that is, it shouldn't save the SWF file locally. I just want to make sure that any o...

Scroll to selected item in Flex 4 Spark List component

I'm setting selected element in s:List component with Actionscript, it works, but List doesn't scroll to selected item -- need to scroll with scrollbar or mouse. Is it possible to auto-scroll to selected item ? Thanks ! ...

Sorting an ArrayCollection in Flex

Hi Is there any way in Flex where in we can sort an arraycollection based on strings . I have a dataprovider with strings like "Critical" "High" "Medium" "Low" where in I need to sort it in such a way that I need Critical to be displayed on the top and next High , Medium and Low follows. Can somebody let me know any logic . Thanks...

Building Flexbuilder projects in ant

I'm using Flexbuilder as an IDE, and I'm working on automating the process of building my application. In the process of setting up the ant build file, I noticed that there's no way to call the project using the list of dependancies that Flex builder stores - each library or library project has to be added to the flex compiler commands...

Air app swf assets in ApplicationStorageDirectory produce Sandbox Violation

I have an Air application that lets users import jpg, png and swf files and use them as the source to an Image which they can drag around a Canvas. The import function copies the selected file to an images directory inside ApplicationStorageDirectory. When I click on an Image that has an swf as its source, I get a Security Sandbox Viol...

flash player security

I can run the following locally on my own machine without problem (and also loaded through a test.html. However it will not load if I download it from a test webhost I'm using. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute" > <mx:SWFLoader ...

Help with flex widgets

I want to create two widgets in flex. One for the movies ( that would display the latest movies out, and where they are being showed on the bases of city) and another widget for stocks. does anyone know where can i find this information. and how can i make this. Or if you know about an open source flex that would be helpful in this,...

is it possible counting number of children given tree in flex ?

myTree is updateParents(XML(myTree.selectedItem)) private function updateParents(item:XML):void { item.children().length(); Count.text=item.toString(); } In my application I used treeview with checkbox . How can I calculate (childnode node only) checkbox selected count in treeview . please refer any url for count the child ...

Flex-iframe: problems in FF

I'm using http://code.google.com/p/flex-iframe/ for showing wikicontent in a flex app. <?xml version="1.0"?> <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:components="components.*" title="Hjälp" showCloseButton="true" close="close();" styleName="Popup" paddingBottom="0" paddingLeft="0" paddingRight="0" paddingTop="0" w...

calling a web service that has an untrusted certificate using ssl in flex/air

Hi, In our flex/air application we are calling a web service over https. The web service is java based and has, at the moment, an untrusted certificate. When doing a POST to the service with some json, the payload on the server side is pretty garbled. A popup does occur asking whether you want to continue and even when I do and add...

How can I use XPath with AS3 and get a result that still reffereced to the XMLDocument object?

I'm parsing a XML string into XMLDocument object. I want to search for a specific node using XPath technology by using XPathQuery.execQuery() - this function returns new XML object which means I need to convert it to a different XMLDocument object and lose the reference, how can I do that without loosing the reference? I'm using this XP...

BlazeDS Destination destroy()?

I have a BlazeDS destination and the scope is set to request. Is there a way to get BlazeDS to call destroy() when the request is complete? Is there another way to know when the request is complete? I know I can use finalize(), but that is only called when garbage collection occurs. Thanks, Matt ...

Problems re-using HTTPService object

I'm trying to reuse the HTTPService object in a flex app but I'm running into a problem. In the handler for ResultEvent.RESULT I'm removing the listener, but it isn't removed. I've have to catch the asyncToken from send() and attach a new property so I know what it's supposed to do in the handler. I've set up an example here: http://www...