flex

is there an scp/sftp client library available for flex?

I need to send files securely from Adobe Air. In any other language, my first thought would be sftp/scp, but I don't see any libraries to do that in Flex. I'm new to flex, so I'm not sure where to look for code examples and repos. It looks like the raw socket interface is available, so I could write one if no good examples exist. Of cou...

Flex - Binding on width property using percentages in MXML code

Is it possible to set a percentage value for the width property of an UIComponent defined in MXML using data binding? What I try to achieve is something like this (which doesn't work): <s:Button width="{buttonWidth}%"/> I know that using percentage for width or height properties in MXML is kind of a hack in the Flex SDK, since they'...

Creating custom taskbar icon in Flex application

I'm trying to create custom icons for my taskbar/desktop icons in my Flex WindowedApplication. So far, I've edited my -app.xml file to include the following: icons/t_16.png icons/t_32.png icons/t_48.png icons/t_128.png When the application is run, however, the default flex/air icon is still showing. I have my systemChrome se...

Flex repeater - toggle sibling component visibility on checkbox change

I have a Flex repeater that has a complex item template. When a checkbox is clicked, I need to toggle the visibility of a sibling button contained in the same repeater template. Since I can't add binding expressions to event handlers, I can't pass in the repeater item's index. How can I access sibling components inside a repeater item?...

Flex/AIR + GraniteDS through SSL

I am running JBoss with SSL, the certificate is generated with openssl: <Connector protocol="HTTP/1.1" SSLEnabled="true" port="8443" address="${jboss.bind.address}" scheme="https" secure="true" clientAuth="false" keystoreFile="${jboss.server.home.dir}/conf/chap8.keystore" keystorePass="password" sslPr...

Running The JVM From Within An MXML Component

Thinking outside of the box here... What possible basic approaches could be taken in an effort to create a Flex component that could run Java? I know I can easily use flex to browse to or launch a Java app, but there are things I can only do if I can run the Java from WITHIN an MXML Component. I the strictest sense, I know it's not im...

Flash/Flex: "Warning: filter will not render" problem

In my flex application, I have a custom TitleWindow that pops up in modal fashion. When I resize the browser window, I get this warning: Warning: Filter will not render. The DisplayObject’s filtered dimensions (1286, 107374879) are too large to be drawn. Clearly, I have nothing set with a height of 107374879. After that, any time I ...

cleanup all UIComponents inside mx:Application

Hi I create some elements( UIComponents, mainly Panels) inside the “mx:Application name=”tst” “. I need to cleanup all those UIComponent’s on MouseClick event , using Actionscript. Is there any way I access the children elements of mx:Application ( I used var totalChildren:Number = this[‘tst’].numChildren ; but looks like ...

Flex 4 Spark VideoDisplay in Popup causes memory leak

Hi, I'm currently building an air app with FB 4. I have a custom control that contains a VideoDisplay control, and which loaded using the PopupManager. Using the profiler, i've noticed that every time the my popup is loaded the memory for it gets allocated, but when it's closed the memory is never recovered. There's nothing else hol...

text box value should increase while Hslider start drag.

i have one value in text box(eg:1200) once i drag the HSlider from left to right text box value to increase 1200+150 for each intrevel.if right to left has to decres 150 as same. ...

to change xml data to ArrayCollection

I have xml file with data as below and i want to convert this into Flex ArrayCollection including the id and name of the tags. I am using httpService to get the file. data.xml <data> <result month="Jan" value="0.666"> <info id="jan01Display" name="jhon" age="20" /> <info id="jan02Display" name="adams" age="24" /> <info ...

trying to place a text box besides a label in flex

i am trying to make a simple form but when i place a textInput box after a Label it comes in the next line..how do i make the text input box be placed besides the Label? ...

Change style on selected text in TextFlow

Hi, I try to figure this example out, but it only assume that a TextArea is used. I only got the TextFlow to work with. I've tried to translate it to only use functions from TextFlow, but with no success. http://blog.flexexamples.com/2009/07/25/exporting-a-textflow-object-in-flex-4/ - (its the second example) Thanks! ...

What's the advantage of an Adobe AIR app over a traditional desktop app?

I'm pretty familiar with using Adobe Flex & AS3, and compared with writing apps in JS/HTML I think it's very cool. However, since AIR is essentially a non-browser version of Flex with benefits like local storage, it seems to be competing as a cross-platform desktop application platform... and in that space it's much less mature than more...

Send a .png file using python cgi

Hi all, How can I send a .png file using python cgi to a flex application? Thanks in advance... ...

calculate the height of parent element

Hi, I have three datagrids inside VBox container. Since I don't want scrollbar in my flex widget i am increasing the height of SWF through javascript, which increases with each addition of row in my datagrid. My query is how can I get the exact height of my VBox which is the parent element of datagrid. I am not able to get the height o...

generic identifier

Hi, as I probably do not describe the problem in the right terms, I was not able to get an answer with google. Please excuse! In the following code, I would like to replace 'hardcoded' identifier COMMENT with the variable editedField. How to do that? var editedField:String = event.dataField; if (model.multipleProcessingData[i][editedI...

Creating an rotating cone with dynamic segments using papervision

I'm trying to create a rotating cone using papervision where all the segments can be filled with a color / image separately. So just like you can use a MaterialsList to render all the sides from a Cube separately. Also I'd like to be able to check if a specific segment is clicked. ...

advancedDatagrid multipleSelection: Was a row already selected?

Hi, after multiple Selection in a advanced datagrid, I want to check if the clicked row, was already selected. Anyway my idea below (in the nested if clause I want to check if the newly clicked item's processing data is already in the added Array Collection) is not working, but I assume there must be a better way to differiante if an cl...

IFrame Stickiness Question

Hi, I'm using IFrame with TitleWinodw but for some reason the IFrame inside the TitleWindow seems to stick to a fixed position on the screen even though I drag the TitleWindow around. Can some please shed some light please? Here is the code snippet: titleWindow.addChild(iFrame); PopUpManager.addPopUp(titleWindow, this, true); PopUpMan...