flex

Flex crossdomain.xml not working correctly in Chrome/Firefox ??

Hi, I've spent quite a bit of time on this so here's where I'm stuck. I'm using the debug player 10.1 to get an XMLA request from: http://localhost/dir/blah.swf to: http://localhost/olapbin/msblah.dll This worked fine in the filesystem, but now its on an IIS7 web server. After a lot of fiddling with the crossdomain.xml file I se...

Blogger Posting IOError in Flex

I am using this API with Flex4 with Windows7 operating system. I am able to login and also to get the list of my blogs. but when I tried to post any new post on my blog. bloggerService.publishBlogPost(blog, post); I am getting following IOError: [Line 1, Column 124, element content] Malformed MIME type. I am unable to find what's go...

handle a time object from php in flex (parse it to a Date object)

I've got a php backend which delivers a time (e.g. '07:00:00'). This time is recognized as a string but I need it as a Date. So what I need is: Convert a string '07:00:00' to a Flex Date object. Is there a way to do this (without using regular expressions)? ...

Hash values not matching (possibly encoding-related?)

Hi folks, I'm sending a value from my front-end (Flex) to the back end (Oracle) along with a hash on the value. From my front-end, I'm using the as3corelib library from Google Code to compute a HMAC hash value using the SHA1 algorithm: com.adobe.crypto.HMAC.hash(mySecret, myMessage, com.adobe.crypto.SHA1); At the back-end, I'm using...

How to execute CMD commands in flex using actionscript?

Hi, I would like to execute a CMD command from my flex application programmatically. Something like > mediaplayer.exe "mySong.mp3" I also tried using fscommand but was not successful. While googling I learnt that its not supported by AIR. I would like to know if there is any other alternative for executing the commands. Thanks... ...

Diffrence in Ant and Flex builder builds ?

In my application build on Flex 3.2 SDK I am calling a swf of Application built in Flex 4 SDK. and I am using Local connection to transfer data to and fro from that swf. When I am building my flex 3 application using Flex Buulder then everthing works fine. i.e. The swf generrated runs fine and also loads(using swf loader) the Flex 4 swf...

change font color of a part of text in TextArea

I am using actionsript 3 and flex 3.5. Is there any way to change the font color of a part of text in TextArea control without using "htmlText" property? For example I have a string "dog, cat, fish". I want to change the color of "cat" word to red. Is it possible to do? ...

Flex4 addElement problem or something wrong with creationComplete event!?

Hi. I am using the new Flex4 Spark stuff but I'm stuck at an awful problem. Let me explain a bit of the situation first. I have a container (mx:Canvas) in which I do addElement() of one type instances (DocumentWindow). The document window class is supposed to be the holder for a view according to the type of the document. The DocumentWin...

c# nullable double to actionscript NaN through fluorine gateway

Hi, Is there a way in fluorine to force a nullable double to be passed to flex as NaN? (and vice versa) By default these values are passed as null, but a Number in actionscript is not nullable, so it is converted to 0 by default. I need server side nullable doubles to be NaN in flex, and NaN values from flex to be nullable doubles on t...

Flex AdvancedDataGrid: Showing "sparse groupings"

I would characterize my data as having "sparse groupings" Most groups will have only one item (with in my mind is not really a group). Using the AdvancedDataGrid is not giving me the effect that I want, which is to show all single item groups normally (as the DataGrid would) and all muti-item groups should be displayed with expanding and...

Runtime problems after migrating from Flex3 to 4 in compatibility mode

We are migrating our Flex-3.2 application to Flex 4.1, mainly to take advantage of the new text flow/engine features. In a first step we decided to go with compiling for MX-only and in Flex-3-compatibility mode. Thanks to some helpful resources ( http://www.adobe.com/devnet/flex/articles/flexbuilder3_to_flashbuilder4.html http://stack...

[Flex/Flash Builder] Switch design mode theme from Spark to Halo in Flash Builder 4

Title says it all. When you set a project theme to Halo under the project's settings, executing in the browser renders as Halo. But viewing the same project in Design view still incorrectly shows Spark themed components which have different sizes and so on, making design view relatively useless. How is this resolved? Edit: So, there is ...

wierd sandbox violation

I receive the following message when i start writing something inside a textField: *** Security Sandbox Violation *** SecurityDomain 'http :// localhost/crossdomain.xml' tried to access incompatible context 'file:///C|/.../Login.swf' I don't see a reason for that message, but it seems that this message is thrown when i do Key.isDown (...

Flex 4 + Django: Testing and Release Options

I am creating a django-based site that will serve flash apps that occasionally access data via pyamf. I need to be able to easily test the flash in the context of the django framework, i.e. with all the login cookies and everything available, so that when I make a pyamf call, it has all the user context there. And I need to be able to te...

Flex List auto height

Is it possible for a Flex List to adjust its height automatically for the number of rows it's displaying? The problem I'm having is that the List renders taller than the number rows. The number of rows is dynamic so I'd like the List to automatically adjust its height based on its content. I've tried setting height="100%" which doesn't h...

Flex Spark: How to add a Cancel button on the TabBar Button?

Hi All, I'm trying to add a cancel icon to my TabBarButtons in Flex 4.0 (Spark), and I've gotten close, but now I'm stuck on getting the icon to be "clickable" I have seen other approaches, like FlexWiz Blog (http://flexwiz.amosl.com/flex/spark-tabs-with-close-button/), but was hoping to figure out something cleaner. Using the similar...

Executing code after all skin parts have been added

Hi, I have several skin parts defined in a custom component and I want to execute some code after all parts have been added. Currently, my only idea is to use if statement in overrided partAdded method to test if all parts have been added. Something like this: override protected function partAdded(partName:String, instance:Object):voi...

Hiding the content pane in a Flex Panel

I am writing an custom component in Flex 3.2 that extends the panel component. After a user performs a certain action I would like to hide the main content area in the Panel component, as well as the Control Bar if one is specified. Any ideas on how to do this? controlBar.visible does not seem to hide the control bar, and I don't know...

Problem with Flex socket and Java server

Hi every one, I am writing a online game with flex and java server and I have a big problem. In normal case, my game run smoothly but some time the clients can't receive the command from server. I found that if server send message too fast or client is doing something when server send message, the game client can't detect for a new mes...

[Flex] What are the downsides to using Spark over Halo?

Is there more work, or source code files required to customize your look and feel (skins)? How maintainable and readable is Spark relative to Halo? Is it more productive and easier to customize overall than Halo, about the same, less? If you're an SDK user who was 99% happy with Halo's appearance (maybe just a few CSS tweaks), is switch...