flex

Application.application.nativeWindow.activate() problem on Windows

I have an AIR application with a system tray icon. When clicked it shows and activates the app. This is working as expected when the app is hidden (docked), however if I select another application so my app is in the background clicking on the system tray icon does nothing. Oddly I also have a contextual menu on the system tray icon, w...

Actionscript: Sorting ArrayCollection by date: YYYY-MM-DD

I have an ArrayCollection of Objects. Each Object has the following keys/values: {date: 2009-12-01, visits=13555, bouceRate=45} {date: 2009-12-05, visits=46955, bouceRate=45} {date: 2009-12-06, visits=13685, bouceRate=45} {date: 2009-12-02, visits=13685, bouceRate=45} {date: 2009-12-04, visits=68755, bouceRate=45} {date: 2009-12-03, vis...

flex: can i do nice button animation using only flex or do i need adobe flash too ?

i would like to add nice animations and other graphics to my application. do i need to use flash to create partial swf files and to load them or is there another way? ...

Changes to one variable propagates to another...

For example I have two ArrayCollection's - firstAC and secondAC. If I do secondAC = firstAC, and than I make changes to secondAC (prehaps put a filterfunction on it) it somehow propagates to firstAC, would anyone tell me why that happens in Flex or Actionscript 3? What can I do if I only want secondAC to get all data from firstAC but t...

What is the maximum number of lines a TextArea control can hold?

I have an app that has text appended to a TextArea (TA). It automatically scrolls to keep the recent line added in view. Over time, this could be a lot. Do I have to worry about this? Is there an upper limit? And, if so, how can I prune the oldest lines of text? ...

Flash vs. Flex: Why not skip Flex and use AS3's URLLoader + server code entirely?

I'm familiar with most of the Flash vs. Flex comparisons out there and most of them present some version of "Flex is better for RIA's while Flash is better for design work". Yet isn't it entirely possible to write elaborate RIA's using the URLLoader class + server side code? In this regard, I'm unclear as to what Flex offers aside from...

file upload in flex when IIS is set to 'integrated windows authentication'

Hello, I have a flex app that allows the user to upload a file. The flex side uses the FileReference.upload method that goes to an .aspx page that handles the upload. It works only intermittently when I have IIS set to integrated windows authentication. That said, for testing purposes,I wrote a separate aspx page that does a file upl...

Quick question on Flex/Action Script - Excessive imports

I play around a lot when I'm programming in FLEX, mostly cause I'm new and I don't know the best way to do things. Consequently I end up importing a lot of things. I end up throwing out the code and realize later that the imported class is still at the top of my script. Now I have a ton of them. Is there a quick and easy way to see which...

Story of a mysterious bug Flex/ Actionscript

Suddenly Flex seems to dislike variable declaration. For example I write (on the script part of a mxml component) <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; var i:int = 1; while(i< 9) i++; [Bindable] public var evolution:ArrayCollection = new ArrayCollection(); ]]> ...

What's the best way to validate a complex Flex form?

I have a Flex application that edits a moderately complex object, and I'd like to put some client-side validation in place on multiple parts of the editor. The editor is a set of nested objects: Form -> TabNavigator -> Tab1 -> Component1.1 Component1.2 Tab2 -> Component2.1 ...

Flex Newbie XMLList question - Sorting XML and XMLList

Is it possible to sort an XMLList? All the examples I can find on it create a new XMLListCollection like this: MyXMLListCol = new XMLListCollection(MyXMLList); I don't think the XMLListCollection in this case has any reference to the XMLList so sorting it would leave my XMLList unsorted, is this correct? How can I sort the XMLList di...

Why does the Adobe Alchemy Tool create faster running flash byte code than the flex compiler?

I have seen a few blog entries on this and have had a discussion or two with my team mates but I would like to see what the stack overflow community thinks. So why does the Adobe Alchemy Tool create so much faster running flash byte code than the flex compiler? Also, when will the flex compiler be able to make similar performance gain...

Embed flex in asp .net...not working :(

Hi, I know the things im missing here are tiny but yet im missing them...heres what im doing I just copied Flex builder's generated html from the tags, and pasted in an ASP .NET page, the page shows up no errors , I can see a grey rectable the size of my flex file but there's nothing in it its blank .... and I am stumped why ???? Why...

URLStream & OSX laggy

I'm using URLStream to download 30-80mb files over HTTP. It downloads fine on Windows XP, but is extremely laggy in OSX. Anyone had similar issues? Here's some snippets of the code. function startDownload():void { //opening file var FileWriteStream:FileStream = new FileStream(); FileWriteStream.openAsync(DownloadingFile, ...

Setting up content children for custom mxml component

I am trying to develop a custom component to act as a divider. <?xml version="1.0" encoding="utf-8"?> <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml"&gt; <mx:Canvas id="left"/> <mx:Canvas id="right"/> </mx:HBox> I would like to use this component to assign objects like this: <Divider> <left> <mx:label text="Stuff...

Create XMLList containing multiple nodesets

Hi All, I have scoured the internet trying to find an answer to this...I must be asking the wrong question?! <a> <b> <c/> <c/> </b> <a> <b> <c/> </b> </a> </a> var x:XMLList = node.a | node.b.c; <-- compiler error var x:XMLList = node.a || node.b.c; <-- nothing and probably not correct syntax I want a | ...

how can i solve "Launch Failed" problem in flex

Recently I have installed the flex in my pc. but after complete a simple project when i run the project it shows the error given bellow. CreateProcess: "C:\Program Files\InternetExplorer\iexplore.exe" "C:\Documents and Settings\admin\My Documents\Flex Builder 3\testproject\bin-debug\testproject.html" error=3 How can i solve it? Arif ...

Openning percentage on Flex Accordion

Hello guys, I'm currently developing a Flex application with an accordion containing 2 canvas: one of them containing a DataGrid and the other one a form. When the user clicks on one of the DataGrid's rows, it opens the accordion on the second (form) canvas. However, I'd like to open the second part of the accordion only by half, so the...

How give MS word like interface to user to expand or contract display object's like canvas, images

How to give a ms word like interface to a user so that he can enlarge and contract the display objects like Images, canvas, Hrules etc. at runtime in an web application? ...

Upload from Flex/flash player in the browser to S3

Hello, I've been messing with this all day and am about to throw myself out of the window. OK, not really. I want to upload directly to an S3 bucket. I know this can be done in AIR, but could someone advise me whether it is actually possible in flex in the browser, or will I have to use some code server side to get this going? Any poi...