flex

BlazeDS error when running Flexunit tests: Detected duplicate HTTP-based FlexSessions

I am using the Maven Flexmojos plug-in to run some FlexUnit4 integration tests on the command line against a Jetty/Java/Spring Security/BlazeDS backend. These integration tests run in a stand-alone version of the flash player. One of these tests attempts a few different login scenarios as follows: [Test(async)] public funct...

connection from my program to the server using XAMPP server and actionscript program in flex ?

i have the following code ] connection.objectEncoding = ObjectEncoding.AMF0; connection.connect("http://localhost/test/test.php"); var responder = new Responder(recvdata,recverror); connection.call("test.test",responder); but no connection established what is the reason behind not know help required and one more thing XAMPP is insta...

Flex 3: TextInput as ItemRenderer for CheckBox in ComboBox?

I need to create a Flex component similar to ComboCheck (by Arcadio Carballares). What I need is a ComboBox with CheckBox and TextInput instead of Checkbox's label. If CheckBox is selected the TextInput is enabled and editable, other way it's disabled. Do you have an idea of the easiest way to achieve it? ...

asp communication with flex

i was developed one .net application. It contains flash animation in one of the asp pages. And i need to write action script code for playing and pausing that swf file. I am using flex builder3. However how can i execute the asp application from flex builder? How can i load asp page into mxml file? Any idea? ...

How to debug Flash/Flex in two browsers?

Hi Flash experts! I have a Flex 4 application which connects to ASP.NET webservice based on FluorineFx. It is authenticated by cookies via RemoteObject.setCreadentials() Both applications connect to FMS server and talks to each other via RTMFP direct connection (P2P). I want to debug both instances of this application in Firefox and I...

Copy file to application directory

I have trouble getting it to copy file from src to destination. var asMsg_path:String = fileRef.nativePath; var origFileLoc:File = File.applicationDirectory.resolvePath(asMsg_path); var newFileLoc:File = File.applicationDirectory.resolvePath("/java/"+asMsg); launch an AIR app in debug mode. I need to copy a file from asMsg to the Java...

AS3 Date problem

Any idea why the day is coming out wrong when the date is accurate? I'm debugging and I can see the date variables which are correct but the day is wrong. date Date (@9f14161) date 26 [0x1a] dateUTC 26 [0x1a] day 5 dayUTC 5 fullYear 2010 [0x7da] fullYearUTC 2010 [0x7da] hours 17 [0x11] hou...

Custom Combo box itemrenderer in Flex Datagrid.

Hey, A combo box as an item renderer for a data cell in a Flex Datagrid has been demostrated at various blogs. What if that combo box has to have an external dataprovider that has to be set at the time of converting the renderer class to a ClassFactory. Can this be done? Or is there a workaround? Thanks in advance. ...

Flash Builder 4 Web Service Introspection for dynamic wsdl location

In Flex 3, introspecting a web service resulted in a constructor that allowed the location of the web service to change at runtime. It appears that the Web Service introspection tool now only allows the single WSDL URI that was specified in the WS Wizard. It this the case or am I just missing something? Flex 3 introspected services wo...

How can I get the Item Renderer that is at the top of the viewport in a Flex Spark List?

I have a Flex Spark List (well it's a Tree to be precise but it renders as a list) and as I'm scrolling through it I want to provide information about the item that is currently at the top of the list in context to the viewport. So this could be the 100th item in the list depending on how far you've scrolled down. ...

Influencing state of an itemrenderer

Hello, I'm new here and to Flex. Hope someone can help me out. I've searched around this site and google in general for a solution to my problem but no joy so far. I have a custom version of a combobox (named MultiplePriority) which extends ComboBox. It's basically a combo box but with checkboxes for its elements as opposed to just ...

flex4 change datagrid header text

i have a datagrid. i want to change the header text of the first column to a dynamic text on click on a button. ...

How can I get the ItemRenderer of a Flex Spark List from its DataProvider Object?

In Flex I can create an ItemRenderer to represent each item in the Lists DataProvider but how do I access the instance of the ItemRenderer via the DataProviders Object? Something like myList.getItemRenderer(dp.getItemAt(10)); ...

Flex embedded fonts cause tab characters to be stripped

I'm trying to paste text into a flex textarea. The text I'm pasting has newlines and tabs, but when I paste the text into the textarea, the tabs are stripped out. If I comment out the CSS line font-family: EmbArial; the tabs will be preserved. I tried using different font files, but it didn't help. <?xml version="1.0" encoding="utf-8"...

Problem in Flash TextField

Hi Guys, I want to design a calculator by Flash cs5 , I use appendText Method to write the data in the textfield by the Keyboard . My problem is when I start the application I have to Click on the TextField first then type the numbers . How i can solve it . Cheers, Maged ...

populate 2 columns in datagrid from combobox itemRenderer

Hallo Hope one of you can perhaps help me. I have a data grid with an Combobox itemRenderer in it. What I have is a grid with a person id and person name (more stuff in grid but I am struggling with this). In the person name column I have an combobox with all the people on then system's names and id's. What I want to do is when I selec...

Flex Monitor Server Requests

I have the System below one server 20 clients (could increase) the clients display a webpage that has the flex swf file. it will display a list. it will poll server every 1sec for any changes in the data. if there's any, it will refresh the data. the polling is handled using a url that returns json object. Now i want to have an webap...

DataGroup TileLayout autoheight

I have DataGroup with TileLayout. How to make datagroup resize accordingly to number of elements in datagroup? For example 1 have 1 row with 4 elements. Each element is 20 pixels tall. So I want my datagroup to be 20 pixels tall as well. If I have 7 elements which will be 2 rows I want my datagroup to be 40 pixels tall and so on. Right...

Writing Flex 3 ByteArray deflate algorithm

I come into a trouble implementing a Flex 3.0.0 client that receives compressed HTTP body from server via a socket HTTP library (not class HTTPService ). First it seems that nginx supports ONLY gzip compression with gzip on;. (Correct me if I'm wrong.) So, add HTTP header of Accept-Encoding: gzip to request. Then I get a compressed By...

AMFPHP how to get object in php that is dispatched by flex?

hello i am working on AMFPHP and i had this problem -> i am using XAMPP server with AMFPHP gate way for flex and this is working well for returning values from PHP ->the problem is how can i get the object in php which i passed to the pap class using flex code is here:- connection.objectEncoding = ObjectEncoding.AMF3; ...