flex4

Flex 4 vs JavaScript Options (Cappuccino, JQuery, etc.)

Rehashing an older post: http://stackoverflow.com/questions/1570070/jquery-vs-flex-choosing-a-platform-for-saas We are preparing to develop an application that is exceptionally dynamic and interactive. It's particularly heavy on the graphics side. We are 85% convinced that Adobe Flash built atop Flex is the right path to take, however...

Flex app to load data before anything else

I have a flex app that takes data from a back end database then displays the content in one of 3 views. These views are all in a viewstack which is instantiated in main.mxml The method to get the data (remote object)is also in main.mxml. The views rely on the data so how can I go about making sure that the data is loaded first before a...

Extending Spark TextInput to auto-resize.

Hi have a Spark TextInput control but I haven't figured out a way to make is auto-resize...Does anyone have any code to get started? ...

Flex 4: How to make draggable and resizable modules?

Hello, I would like to make an application using Flex modules (mx.modules.Module), the requirement is that those modules have to be draggable and resizable inside the main application shell. What is the best practice to make this kind of applications in Flex 4? Thank you in advance for your help, Adnan ...

Flex 4 Slider with two thumbs

Hi, anybody know how to make a custom hslider in Flex 4 (spark) with two thumbs? Since Flex 4 the thumbcount property of the slider component isn't longer available (at the mx component it was easily to set). I have to style the track and the thumbs. A tutorial would be nice. thx, tux. ...

Flex 4: Dynamic ComboBox/List problem [object Object_Type] even with labelField defined

I am dynamically populating a ComboBox with an HTTPservice calling an XML file. This all works dandy through the Flash Build 4 interface. Below is the ComboBox code: <s:ComboBox id="cbSockOptions" change="cbSockOptions_changeHandler(event)" selectedIndex="1" enabled="true" creationComplete="cbSockOptions_creationComplete...

[Flex] Modify components that is not included in the current state?

In Flex 4, is it possible to modify components that is not include in the current state? For example, I have labelA included in stateA, how do I change the label text in stateB? If I directly change the label text in stateB, I'll get an null reference error message. One workaround is to include labelA in all states, and set it to be inv...

Build hierarchical chart using flex and action script

i want to develop an application using flex 4 sdk with eclipse and action script. i need to draw the hierarchy chart dynamically and save it. should be able to label all the nodes at runtime, should able to view all charts created previously saved chart. i need source code for this sample application http://live.yworks.com/graphity/ ...

Loading external SWF with masked content - need width/height

I am loading an external swf using the SWFLoader component. The swf that is being loaded is masked so that only a portion is being shown. However, when it's loaded the actual size of the swf (loader.content.width/loader.content.height) is the complete swf including the masked area. Therefore, the loaded swf does not display properly in t...

more elements in one SpriteVisualElement in flex

I did it like this, but the old broadcast, doesn’t stay it is replaced with the ew one! `public function broadCastMeNow(event:Event):void { camId = comments.selectedItem["o_id"]; broadCastMe = new broadcastNow(camId); connn.addChild(broadCastMe); connn.x += 100; } s:SpriteVisualElement x=”100″ id=”connn” ` How can I make it that it stay...

[Flex 4] Removing sort arrows from AdvancedDataGridColumn Header.

Hello, I am doing this simple project using Flex 4 SDK and I got stuck with this simple problem: I have turned sortable property for AdvancedDataGridColumn to false, but the column header is still rendered as: As You can see, my label for this header is "06", but the column header is divided and it keeps the place for sort arrow. How...

How to run an external SWF inside a Flex Application?

EDIT: Due to the answer I change the code posted. I've added the Security.allowDomain("*") line and that line throws me an error. So, how can that be made? I want to run an Action Script 3.0 Application into a Flex Application. To do this I've done the following: <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication windowComp...

Flash Builder 4 "includeIn" property causing design view error

I am creating a custom TextInput component that will define an "error" state. I have extended the TextInput class to change the state to "error" if the errorString property's length is greater than 0. In the skin class, I have defined an "error" state, and added some logic to detect the size and position of the error icon. However, if...

Noob filter: How do I refer to a string that is passed to my Ruby on Rails method from Flex as a HTTPService?

EDIT: Got too confusing with so many different edits, so this is where I'm currently at. I have a HTTPService in my Flex 4 app defined as follows: <s:HTTPService id="getUserDetails" url="http://localhost:3000/users/getDetails" method="GET"/> I call this service like this (note: I've checked the network monitor in Flash Builder 4 and...

Set button's state depending on the global state in Flex 4

Hi, How can I set my button's state to "over" when , for example , my global state is "Home"? Thanks in advance ...

flex4: swfloader doesn't properly load games.

Hiya. I have several flash games that when i load them in my firefox browser they load fine, but when i load them with swfloader using flex 4 (flash builder) they load until 100% and don't show the start menu. any ideas how to resolve the issue ? ...

How do I make sure that there is always something selected in a Spark List?

I have a spark list, which is based on a dataProvider. As the application runs, the data in the dataprovider can change, and also the dataProvider can be swapped for a different one What I need to do is make sure that something is always selected in the list (unless it is empty) ...

Actionscrips/Flex4: Display cut-off datapoints differently in LineChart

Dear Sirs, The issue arises when the user selects a range on the linechart that cuts off datapoints. When this happens, I would like the chart to tell the user somehow that there are data points three, just outside the range, perhaps by drawing a straight line across the top or bottom of the graph. How can I get Flex to do this for me...

Flex 4: How to skin a spark volumebar to make it work like a HSlider?

Can anyone point me in the direction of skinning a video player volumebar? I want a mute button on the left side and then an HSlider to the right that is always open (no popups). I've managed to change the skin to use a custom track button and a custom thumb button and it mostly looks how I want. I can't seem to figure out how to mak...

Flex/Flash 4 datagrid displays raw xml

Problem: Flex/Flash4 client (built with FlashBuilder4) displays the xml sent from the server exactly as is - the datagrid keeps the format of the xml. I need the datagrid to parse the input and place the data in the correct rows and columns of the datagrid. flow: click on a date in the tree and it makes a server request for batch inform...