flex

Flex : How to hide a row in AdvancedDataGrid ?

I have an AdvancedDataGrid with a ArrayCollection as its dataProvider. For instance i have a CheckBox that allows me to show or hide certain rows in the AdvancedDataGrid. Any idea how i could do that? ...

problems generating ASDoc

Hi I am using ASDocr, which is an Adobe AIR application GUI interface for the command-line Flex asdoc documentation generator. My class uses several external libraries and it is generating a 1046 error when creating the documentation: /Users/mga/Documents/FDT Workspace/vgline/src/com/pingpongestudio/timeline/Timeline.as(1569): col: 39 ...

Flex: Set datechoose to only choose Month/Year

I am builder a graph that is going to cover an entire month. The user may change the Month/Year but there is no point in choosing a date for the month as it is going to show the entire month anyways. So is there a way to maybe make the DateChooser date always the first and only allow the user to pick the month and year? Thanks!! ...

flex get canvas id?

I'm developing an engine to generate components. I been wanting to get my xml script that read and create a component to be load into 'content' canvas. I not sure how do I get the addChild work correctly as in 'content'.addChild instead of the one shown below: private function sidebar():void { xmlReq = new URLRequest("sidebar.xml"); ...

Generate a flex image from a hidden component

Hi all, I'm trying to put an image, generated from some text, in a RichEditableText. Since it's a styled text, I thought about putting it another RichEditableText, style it, then print it to a Bitmap to use as source for InlineGraphicsElement. I use the following code to do that var txt:RichEditableText = new RichEditableText(); txt.te...

overloading event handler possible?

I want to extend my function to a better design to where I can pass a canvas object into so I don't have to write N functions.. I'm not sure as how to do this properly I've come up with a naive design with a switch but even then if I add another canvas I still need to write new code for the new canvas. function fadeCanvasOut(event:Timer...

how to block http requests to some web-pages from adobe air.

Is it any way to prevent user to go to specific web-pages using Adobe AIR framework. I want this software to run at startup and not allowing user to surf some web parts. I want to use Adobe AIR beacause of its crossplatform capabilities. ...

Get item by index in a tree control

I'm doing a drag and drop operation on a tree using some help from Adobe's quick Starts: http://www.adobe.com/devnet/flex/quickstart/working_with_tree/ The code suggested is roughly this: var dropTarget:Tree = Tree(evt.currentTarget); var i:int = dropTarget.calculateDropIndex(evt); myTree.selectedIndex = i; var node:XML = myTree.select...

Obtain DataTable names from Flex

I have a C# web service that returns a DataSet with multiple DataTables. It's easy enough to get at the data using this web service event handler in Flex: static public function getData_Handler(event:ResultEvent):void { for each(var table:Object in event.result.Tables) { // ... } } How can I access the name of ea...

what are threads in actionscript functions?

I've seen a lot of other developers refer to threads in ActionScript functions. As a newbie I have no idea what they are referring to so: What is a thread in this sense? How would I run more than one thread at a time? How do I ensure that I am only running one thread at a time? Thanks ~mike ...

FLEX: XML to data array?

I need to get a grip on arrays and XML data but I'm having trouble understanding how to turn xml data into useful data. I was hoping these forums might provide some insight. I load my XML with this code: //set values for XML data file private var XML_URL:String = "http://www.mysite.com/media/locXML.xml"; private var locXML:XML = new XM...

OS like behavior when edditing a Tree item!

Hi everybody, I have a Tree Control inside my Flex Application which I want to edit on a doubleclick on a tree item. I found the properties doubleClickEnabled="true", doubleClick="startEditMode()", and editable="true". With these functions I can detect a double click and I can change the editable property to true based on a double click...

Flex tree droplocation indicator stuck (edit 2/4/10, almost a totaly different question)

OK I've got a little more research on this done so I'm going to totally rephrase the question: I have two trees, I want to be able to drag items from one tree to the other. In the receiving tree I have some logic that allows or denys the drop. I am using the native cursor feedback Like this : DragManager.showFeedback(DragManager.COPY); ...

add % value programaticaly

Hi all, I have the following code which gives me a error. I want to add the width property programatically and in %: firstcombo.width = 90%; But that gives me the following error: 1084 syntax error expecting rightparen before colon How is the correct syntax? Greetings Markus ...

How do I use Flex's ExternalInterface with IFrames?

I have a simple html doc with a flex app and an iframe side-by-side (using a 1x2 table). There is a button in the flex app that, when clicked, sets the "src" property of the iframe to a URL by using the ExnternalInterface.call method to call a javascript function "doNavClick(url)". Or that's the idea. When I comment out the iframe obj...

Shutdown a computer from AIR/Flex

I need to figure out how to shut down the computer from an Adobe AIR application. I have been trying to figure out how to do this, and without success. ...

Problems passing functions in flex / actionscript 3

I'm new to flex and I am building a wrapper class for the WebService object to make my main code mxml cleaner. I am trying to pass a function to a class method to set as the result event handler for the soap call and it is not working as expected. Here is the class: package { import mx.rpc.events.ResultEvent; import mx.rpc.soap...

Flex/Spring: Working with join table/entity

Hi guys, I have a question regarding mapping and entities/domains with Flex/Spring mapping via BDS. I currently have domains mapped to tables, and I am working off existing code to try and change the logic from web services to work with Blaze. Now, i came across a value object used previously that mapped to a datagrid, but that value o...

AdvancedDataGrid hell: data on grouping rows

I need a hierarchical grid that shows data in columns for the parent rows as well as the child rows. - a parent | 1234 | data | data | a child | 2222 | data | data | a child | 212 | data | data | I've tried to make ADG work, but by default it has all columns except the grouping column blank for parent rows. I think I could use ...

AdvancedDataGrid: two-row headers?

I want to have a summary row at the top of an AdvancedDataGrid that is not actually a summary of the values in the row: I want to stuff values in there "by hand". I have no problem writing an ItemRenderer that will figure out which header cell it's showing and lookup the value I want in there. I just don't know how to create the second ...