flex

How do I retrieve cookies from the cookie space used by AMF?

I have a flex app that uses AMF to talk to a Spring Java backend. How do I get the values of cookies that have been set by the server and are being sent back by AMF? ...

how do i solve this bad error

as you see this is a class create 4 text Fields , what i woona do is in this line of code first1[i].text = k1[i]; in the for loop to write the randomize numbers in the TextFields that's my code import flash.display.Sprite; import flash.display.DisplayObjectContainer; import flash.di...

Is there a way to have global Flex 4 states (user roles)?

I am having an issue with flex states in my application. What I am looking to do is on creation complete of the application, obtain a user role guest/user/superUser (based on username and password) from a server, then set the state client side based on that information. My .mxml classes need to include certain graphic elements based on t...

selecting text issue on Flex text area component

I have this really strange issue, and I don't expect much of a response here, but thought I would give it a shot. I have a flex textarea component, controlled by a custom scrollbar. The textarea is loaded when a list of buttons is clicked on, different buttons bring in different text content depending on which button is clicked. Every...

Spark ComboBox - issue with displaying text for new item?

I've been playing with s:ComboBox and generally like them a lot. One detail is driving me nuts though - most likely due to my lack of knowledge in the subject - is that if I try to add a new item to my dataprovider in a changeHandler (registered to the change event) the text for the ComboBox textInput disappears - although the item addit...

Where Should I Place my Javascript File in a Flex 3 project?

Hi, I've got a javascript file that I need to load into my Flex 3 project. I access it in the HTML wrapper like so: <script src="myJSFile.js" type="text/javascript"></script> I use Google Code's library to access JQuery. Is it okay to put the javascript file in the html-template folder? The idea being that it would be included in th...

Flex 3 What Does this Error Mean, in General?

Hi, I'm running into this error, but I don't understand what it means. Has anyone else run into a similar error? Error: Unable to load ''. at mx.controls::SWFLoader/loadContent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\SWFLoader.as:1617] at mx.controls::SWFLoader/load()[C:\autobuild\3.2.0\frameworks\pro...

Rails 3 is "_method=PUT" still supposed to work?

I'm using FLEX 3 to make XML request to Rails 3. Since FLEX 3 only offers POST and GET, I have to use the "?_method=PUT" hack to maintain proper RESTfulness: http://127.0.0.1:3000/locator/locator_users/1.xml?_method=PUT On the server side its showing up as a POST and I'm getting an ActionController::RoutingError (No Route Matches). ...

Flex Spark ComboBox in an MX AdvancedDataGrid

I would like to use a combobox as the itemEditor for one of the columns of an AdvancedDataGrid. I looked around and decided to use Spark ComboBox components - they're slick and seem to natively support a lot of neat stuff including auto-completing strings when types in the textInput. After some tinkering I managed to add a spark ComboBox...

Adding Flex capabilities to an existing J2EE Enterprise Application Project

I have an J2EE Enterprise Application Project in which I would like to add a few Flex screens. How do I go about adding Flex capabilities. I have build Flex/J2EE applications from scratch but can't think of the best way to do this. I am currently using Flex Builder Plugin for IBM Rational Application Developer 7.5. Any idea on how to p...

How to select other objects from a group? (Flex)

I have a group of multiple objects. If I select one object from the group, then i use the method: click="makeObj(event)" And then the function: protected function makeObj(event:MouseEvent):void { var targetObj:Object = event.currentTarget; } But how to use all the other objects in the group except clicked ...

Flex Sockets not sending data on Windows

Hi All I really hope someone can shed some light on this. I am building a really simple Chat server/client using PHP and Flex. I have followed many tutorials and have a working server in PHP and a working client in Flex, except that if I use the client on Windows I can't send any messages. When I send a message on my Mac it goes throug...

Flex viewstack children includeIn works funny

Hi all, I have a viewstack with childrens which I want to show/hide depending on the state the application is <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" ...

what's the difference between classic text and TLF text

what's the difference between classic text and TLF text ...

SSO/Authentication between Joomla and a Flex Application!

I am developing an application in Adobe Flex. This application is to be hosted on a Joomla Website. I want to achieve Single Sign On between my Joomla website and this Flex Application. The Users log in using the default Joomla Mechanisms however I want the username as well as some other details about the user inside my Flex Applicatio...

How to customize accordion and panel look

I want to increase the (height) size and change the color of a spark accordion header, similarly I want to change the color of a spark panel header. Can I do this through mxml properties and css or will I need to use a custom skin? ...

What's the best way to prevent a Flex 4 Tree from collapsing?

I have a Flex 4 Tree that shows and outline of data. I want to prevent users from collapsing any of the nodes, i.e. so that the whole tree is always visible. What is the best way to do that? Can I prevent the relevant events, or should I make a skin that is ignorant of collapsed nodes? ...

how to add a MovieClip from the library by a class

how to add a MovieClip from the library by a class i've MovieClip and i want to add it to the stage by a class note i've already a class and linked to a MovieClip and what i woona do is to addChild another MovieClip in the stage ...

actionscript: connect to socket server

I am using actionscript to connect to my socket server, but I always got <policy-file-request/> sent from actionscript and after that the conneciton is closed. The code in actionscript is: protected function connect_to_server_btn_clickHandler(event:MouseEvent):void { Security.loadPolicyFile("http://192.16...

Flex 4 - Problem listening to an event in Main.mxml from a UIComponent extended custom class

Hi, I've run into weird issue.I've a main game class which extends UIComponent and basecly glue all game logic together - main loop.Then I've app main.mxml file which initialize main game class,keep care of game screen state(main menu,game,game over,etc..) and add some ui control - flex is great for that.Nonetheless problem arrive when ...