flex

Find an open popup in Flex 4

I'm opening popups (subclass of TitleWindow) in Flex by using PopUpManager.createPopUp(parent, TrainCard) Is there any way I can get a list of popups that are open? Or do I need to keep my own list? I need to make sure I'm not opening the same popup twice. ...

Does Adobe Flex SDK contain a helper function for converting strings to Booleans?

Yes, it is a trivial question. I was just wondering. Does the framework have a helper function that does something like this: switch (value) { case "true": return true; case "false": return false; default: return Boolean(value); } ...

Issue trying to get a example Parsley app working

I'm getting started on a new project at I'm trying to get an Parsley example to work. Here is the demo url: http://files.152.org/flex_examples/parsley/ View source is enabled I have parsley registered in the app and can get the albums in the left column loaded. The part I'm stuck at is trying to get a message to PictureTile.as so images...

creating static frame and changing content pages in flex

I need to create a static frame and a changing content... currently envisaged as frame containing the side panel and header and footer content. The content panel will call mxml based on the content sought. Two questions a) how is the frame paradigm- with static frame "containing" other content done. I dont want to repeat the header and ...

Flex fails to pass parameters to httpservice php script

I am sending two parameters to a php script. The php script works fine if I use the browser to run the script and pass parameters to it like http://www.somewebsite.com/runScript.php?id=aaa&amp;name=bbb. But when I use the Flex httpservice, the parameters are not passed to the script. <s:HTTPService url="http://www.somewebsite.com/runS...

flex upload file component - problems with filereference

Hi, The following code is used in a component I name FileUpload.mxml which is used in two three different sections of the flex application. private var uploadURL:URLRequest = new URLRequest; private var file:FileReference = new FileReference; private var media:MediaFacade; public function browse():void { var uUrl:String=""; //...

Flex IBM ILOG (Elixir 3.0) Interactive map

I develop interactive map: user can zoom some area and place labels by mouse click. I am creating customSkin: <ibm:Scroller top="0" left="0" width="100%" height="100%" id="scroller" doubleClickEnabled="true" skinClass="com.ibm.ilog.elixir.skins.spark.ScrollerSkin"> <ibm:MapGroup id="mapGroup"> <ibm:MapFeatureGroup id="featureGroup" feat...

Flex: Setting a style that is not suported by a component

Dear Friends, I am not very good in 'style' in flex. I am wondering if flex enforce style settings and throws compilation errors if a style that is applid to a component that is not supported by it. Has any one tried it before ? Please help me if you have any idea in this regard. Thanks in advance. ...

"Default decoder could not decode result"

Here are the files - MXML: <mx:HTTPService id="score" url="http://...score.php" fault="mx.controls.Alert.show(event.fault.faultString)" method="POST" result=""mx.controls.Alert.show(event.result.toString())"> <s:request xmlns=""> <name>{name}</name> <score>{score}</score> </s:requ...

Update client status to server on "onbeforeunload" event

I have a flash application that needs to send a http request to the server which will disconnect the existing session immediately. I have a tried a few options but none is reliable. Option #1: On "onbeforeunload" event send a http request from inside the flash applications. Fallacy: This does not work because as soon as the browser is ...

Flex: Can List be used to display control in equally sized tiles

Dear Friends, In one of the application I am working, List has been used. I am required to display items in the form of tiles. I do not want to change the component as of now. Is there any way to achieve this layout in list only. Please let me know if you have any idea in this regard. Thanks in advance. ...

(My)SQL in Flex - any good libraries?

Hello! I need to develop a small Flex application that needs to access a MySQL database. Since I have little experience in server-side Java, PHP programming I would prefer to use a library/framework that allows me to write SQL queries in ActionScript/MXML. After a bit of research, I have come across two 3rd party libraries, AS3FlexDB(...

swf file to just delete flash cookies

Hi, I'm trying to find a javascript method to delete flash cookies on a page, but with no luck. I know it can be obviously done through flash or flex, but the problem is I know nothing about flash, flex and actionscripts...So my question is: Is there a way to just load a prebuilt flash movie in a page, which just programmatically deletes...

my html text is not displaying in Flex

I'm getting nothing with this: mainAns.htmlText = '<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">The differen <B>is</B></FONT></P></TEXTFORMAT>'; Maybe it has something to do with the quotes? the text will be retrieved from a database. I dont see what I am doing wr...

Collapsing a Spark BorderContainer dynamically does not collapse its children

protected function lbHideQuery_clickHandler(event:MouseEvent):void { if (lbHideQuery.selected) { lbHideQuery.label = "Show Query Panel"; origHeight = canvas1.height; canvas1.height = 0; } else { ...

Adobe AIR Performance

When running my AIR application from the IDE and from the install it sometimes acts really slowly at random. There is really no difference between the setups and i dont have anything extra running in the background. What could be causing this? ...

Flex/Air datagrid open ContextMenu using mouseDown rather than rightMouseDown?

In a Flex 4/Air app, I've got an itemrenderer in a column of a Datagrid. I'd like the item to open the ContextMenu on itemRenderer.mouseDown but it seems to only work with itemRenderer.rightMouseDown. Any ideas as to why? and/or a good workaround? thnx in advance. ...

Flex + Flashdevelop

Hi! I just want to ask: Can I use flashdevelop and opensource flex to make commercia projects ? Or I must open my source ? ...

Detect if Flex AdvancedDataGrid itemClick is actually a drag

Is there any way to detect if AdvancedDataGrid itemClick event is actually caused by the user dragging? I'd like to take action on click, but ignore drag. ...

Possible to re-use flex forms?

Is it possible to use a form for both initial creation and updation based on a target url? For example, if a user goes to http://localhost/create/new can I have a flex form with empty input fields be shown, but if a user goes to http://localhost/update/1 can I have the same flex form, but with input fields filled in be shown instead? Al...