flex

Nested scroller not working

A sample app where the scroller does not show up. Is there any sane way of using a scroller in a constrain based layout? <?xml version="1.0" encoding="utf-8"?> <s:HGroup left="0" right="0" top="0" bottom="0"> <s:Scroller left="0" right="0" top="0" bottom="0"> <s:VGroup> ...

Flex: How to ensure CutOperation puts the cut text on the clipboard?

I have a class that inherits from EditManager and provides these methods: public function performCopy():void { var copyOperation:CopyOperation = new CopyOperation( getSelectionState() ); doOperation( copyOperation ); } public function performCut():void { var textToCut:TextScrap = TextScrap.createTextScrap( getSelectionState() );...

JSON Decoder - not working

The code below is not working and i'm not getting any errors. This is Flex 4.0 import com.adobe.serializers.json.JSONDecoder; var s:String="{hours:16, minutes:9, seconds:2}"; var obj:Object=j.decode(s); Alert(obj.hours.toString()); ...

Flex with Oracle 10g

Hi, I am new to Flex 3/4 and was after some help with what is involved (examples pls) in creating an application in flex that runs off an Oracle 10g database to both retrieve/modify data from, with flex. Basically would like to know how to connect flex to an oracle database to perform database transactions like updates/deletes/inserts....

StackOverflowError on DataGrid row specific limits in a NumericStepper

I have a DataGrid with a NumericStepper as the item editor for one of the columns. The numeric stepper is supposed to get its max an min values from the data for each row. My MXML is like this: <mx:DataGrid x="0" y="45" width="272" height="525" dataProvider="{dp}" variableRowHeight="true" editable="true" id="equipmentDG" verticalAlign="...

Substring of two strings in flex

Hi, I have a string like " How\Are\You-1 " . I need to substring till to " You-1 " with out using first and last index. Thanks, ravi ...

Flex : Unable to extend DataGridColumn

I am unable to compile the following Flex application. All I am trying to do is, to extend DataGridColumn class. I get the following compile error : Could not resolve to a component implementation. DataGridColumnTest/src DataGridColumnTest.mxml line 6 DataGridColumnTest.mxml : <?xml version="1.0" encoding="utf-8"?> <mx:A...

Suggestions Help for server client communcation

I have 12 display monitors installed in different floors in a building. These monitors display announcements that will be update once in a day. i'm retrieving these announcements from db and storing in an array and displaying it all day long. In addition to this, I have a requirment to display emergency alert messages on the monitors. M...

how to include image in flex application

I created flex application that loads a image. I compiled this app and ran in the computer where it was created. it works. when i try in a different system, the image does not load. I think it's chekcing for the image path. how to include image as part of the application ...

How can I configure my data services in Flex to call the same domain that the SWF was served from?

Hi All, I've got an HTTP service I defined in Flash Builder, via the "Data Services" tab. I've got an absolute URL in there right now. What I really want is to not define a path that includes a domain name at all--I want the service to simply call an absolute path that's on the same domain as whatever domain the SWF was served from......

Flex: ByteArray to string

How can I convert a ByteArray to string. The toString() is not working as I have some special characters and it shows me only the first character. Here is a sample: 49, 48, 54, 0, 50, 54, 51, 48, 57, 52, 52, 49, 48, 48, 48, 56, 0, 49, 0, 49, 0, 73, 77, 0, 52, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0, 49, 0, 50, 54, 51, 49, 53, 56, 50, 52, 48, 48,...

ExternalInterface.addCallback does not work right

I have js code: function onFlashReady() { sendToAS("sit"); } function callJS(value) { onFlashReady(); return "Hi Flash."; } function thisMovie(movieName) { if (navigator.appName.indexOf("Microsoft") != -1) { return window[movieName]; } else { return document[movieName]; } }...

httpservice is not working properly

i want to display server time on the browser. created a httpservice that will obtain server time over http in json format obtained the difference between server time and client time in seconds (date.time) i update the clock every 1 sec. display the client time + the difference But the problem here is it runs in the initial load. whe...

Datagrid with custom HeaderRenderer in Flex 4

Hi, I have a datagrid in my Flex App, and I;m uisng a custom HeaderRender. This HeaderRender has a checkbox. How can I control the checkbox from outside the HeaderRender? thanks! ...

Flex: Does data binding work with the UITextField?

Hi, Does data binding work with the UITextField? Unfortunately, I'm getting the variable instead of the bound data. [Bindable] public var myString:String; in a function, where tf is a UITextField: myString = "blah blah blah"; blah blah... tf.text="{myString}"; It's giving me {myString} instead of its data. Thank you. -Laxmidi ...

Flex DateTimeAxis: Displaying dates in another timezone (neither local nor UTC)

Hi, I'm working with an AreaSeries + DateTimeAxis in Flex 4. The dates for the time axis originate from a server in another time zone. I'd like to see the graph (in my local time zone) displayed using the server's time zone. I know that I can set the DateTimeAxis.displayLocalTime property to true or false, to have dates displayed in the...

HTML Editor in Flex

Anyone knows a good (wysiwyg) HTML editor in Flex? ...

Flex Cursor management question

I have a spark borderContainer that contains a spark TextInput. I have an mouse_down and mouse_up event handlers on the borderContainer in order to drag it around the screen; while dragging I change the cursor. I would like to make the textInput behave as a "standard" textInput, i.e. when clicking on the textInput the user should not be...

What benefits does an AIR app have over a Flex browser app?

Please feel free to add multiple answers, each with a single point, to make the voting work well... and don't add something someone else already said. All I know about AIR is you can have local storage, but there must be more to it... offline access is another key one but then you can run a SWF locally if you save it to your PC. ...

Retaining advance search functionality criteria stored in Database as XML

Have an advance search functionality, we have dynamically create some components to make criteria as SQL query to search. For example, textbox, combo box are used here with different combinations. After sometime user wants to see that criteria by click the button named 'CRITERIA'. This time send the request to server and get the XML fr...