flex

flex support for REST methods

does the latest sdk now support RESTful methods like PUT and DELETE using their HTTPService? thanks ...

Flex SDK 3.5 - Check file magic number

Related to: Flex SDK 3.5 - Check file mimetype Is there a way to get a file's magic number in Flex SDK 3.5 in order to get the file type? ...

Adobe AIR - Write a file and specify as read-only

Hey Stack Overflow community, Another Adobe AIR question for you: Can we write files to the file system and leave them as read-only in Adobe AIR? In the future, we would overwrite these files (or delete them and write a new one). Thanks, Mauricio Update: I tried the following approach, but I was still able to open the file, edit,...

How do I change the application background color at run-time in a Flex 3.5 application?

I have a Flex 3.5 application that will serve multiple purposes, and as part of the visual changes that I'd like to make to indicate which mode the application is in, I want to change its background color. Currently, the application tag looks like this: <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:com="vent...

Flex 4 Slider with two thumbs

Hi, anybody know how to make a custom hslider in Flex 4 (spark) with two thumbs? Since Flex 4 the thumbcount property of the slider component isn't longer available (at the mx component it was easily to set). I have to style the track and the thumbs. A tutorial would be nice. thx, tux. ...

Moving SWC to libs folder breaks project

I have a swc(degrafa) that I have been referencing externally in another folder on my computer. When I tried to move the swc to the libs folder I was no longer able to access the swc from my application. Is there a step im missing? ...

Determining a Flex event's default behavior

How can I tell what the default behavior for a cancelable event is? For example, I read somewhere that the TextEvent.TEXT_INPUT has a default behavior and that default behavior includes adding a text character associated with the key that was pressed to a TextInput. That makes perfect sense. But if I hadn't read that, how would I know ...

Flex: How to resize DisplayObject to fit panel in Flex application

I am trying to attach some of my actionscript class, inherited from Sprite, to my Flex application by attaching it to a UIComponent, then add UIComponent to a panel. However, the size of my Sprite class appears to be larger than the panel. So, I try to resize it using DisplayObject.scale property, but I need to know the size of my contai...

BlazeDS/PureMVC and shared vos

Hello, SO I'm building modular application with 2 modules which share common vo: ShopRegionVO This vo is also a BlazeDS entity and is mapped to a remote java object. When shell loads first module everything is ok. The second module is a list of ShopRegionVOs and item change is handled with the following code: sendNotification(CoverageC...

flex chat/telnet application send/receive same window in TextArea

Hi there, Just wanting to know if anybody has seen an example of a telnet/chat or other console like FLEX application where you can use the same TextArea as input/ouput area. I've been trying to modify the app at: http://livedocs.adobe.com/flex/3/html/17_Networking_and_communications_8.html but so far, computer says no. All the imp...

Does HTML5 only replace the video aspects of Flash/Silverlight?

I see a lot of talk how HTML5 video tag will kill Flash. But while video is the most widely used part of Flash/SL, it's only a small part of their technical abilities. For instance you can write a game using full 3D graphics and socket connections in Flex, and serious business applications, etc. Is the thinking that Javascript will kill...

Is there an equivalent of C#'s Path.GetExtension in Flex?

I want to get the extension of a file path in Flex. In C# I would just use Path.GetExtension() to do this. Is there an equivalent in Flex, or do I have to write my own? ...

Videoconference using Flash and SIP

The front-end will be Flash, to run in a browser and have access to the camera. I must use SIP to control the sessions. How could I do this? Will a Red5 server and a MjSip sever do the trick? As in i'd use MjSip to setup the session and warn users about calls, and Red5 to stream the video and audio? Any suggestions? Note: only 1-on-1 ...

What is responsible for caching the HTTP requests sent via AIR desktop application?

When dealing with a flash application that will run in a browser, it's obvious that the browser will cache some of the HTTP requests. But when dealing with a desktop AIR application, what's caching them? Is it the OS, or the AIR container? Reason I'm asking is that I've recently dealt with a really ugly and time consuming memory leak th...

Flex event propagation

I try to capture a event and I can't. Please look here: http://www.pata.ro/FlexTest/ The blue rectangle is the parent, and the other two are the children. If I roll over a child (red or green) I am still over the blue one (the RollOut is not fired for the blue one). I made the green rectangle a little transparent so you can see that it i...

How itemRenderer works with flex "Stacked" charts? Can anyone refer me to a tutorial/sample?

I want to render the colors in a "Stacked" bar chart using itemRenderer. I have a dynamic arrayCollection of objects (object contains 2 fields: type:String and value:long), I want to render the color according to the object.type value, each type will have a special custom color (texture). Can anybody refer me to a flex tutorial/sample wh...

Timer vs setTimeout

The docs for flash.utils.setTimeout() state: Instead of using this method, consider creating a Timer object, with the specified interval, using 1 as the repeatCount parameter (which sets the timer to run only once). Does anyone know if there is a (significant) advantage in doing so? Using setTimeout is a lot easier when you...

Flex DividedBox resizeToContent issue when altering child visiblity

Hello, I'm having an issue with a DividedBox. The box itself has two children, the later which is has its visiblity and includeInLayout properties toggled based off of a keypressed event. The DividedBox has its resizeToContent property set to true and works fine in most cases, correctly sizing itself to the contents. However, when the ...

What's the easiest way to create an extensible custom container in Flex?

I want to create an MXML container component that has some of its own chrome -- a standard query display, et al -- and that supports the addition of child components to it. Something a lot like the existing mx:Panel class, which includes a title label, but acts like a plain mx:Box with regards to adding children. What's the easiest way ...

how to build flex stack bar chart from objects array?

I have a dynamic ArrayCollection that will contain a unknown number of objects of type MyObj: class MyObj { type:String value:long } where each MyObj object has a different value of "type". how can I build a single stacked bar from this array where each section of the stacked bar represents an object of MyObj (represents a "type")...