flex

how to center align a button in a hbox in flex ?

I have a VBox inside which I have 4 HBoxes. The second level HBox is initially hidden. When I click the label, 'Show more Options', the second level HBox is displayed. Now I have the space occupied by the 'second level HBOx' empty and the 'search' button appaers below the space. My first question is, Is there a way to position the Searc...

Connect with Asp.Net and Flex using remoteobjects

Hi can any one give how can i connect .net and flex using remote objects.actually till now i know how can flex and jsp connects with http services.but now i need to connect with .net so how can i retrive the values from .net(backend) and display it in frontend(flex), please help me Thanks, ...

Is there a way to add a link text or button to the panel header along with the panel title in Flex?

I have a panel in my application. My requirement is, I also require a link, that is "Help options" to appear in the panel's header. In the left, we will have the Panel's title and in the right corner, I need this link. Is that possible? ...

Flex 3 - Scroll bar issue

Im currently learning Flex, and Im having the hardest time getting scroll bars to work. In short Im pretty much just making a giant form for users to fill out, contained within a viewstack component, the user will type up information in one view, and it will be displayed in the other. But right now in the first canvas i have components t...

XML to JSON in Flex?

Is there a library in Flex/ActionScript to convert XML to JSON, similar to the json gem in the Ruby world? ...

Open Worksheet of Excel File in URL

I want to open a particular worksheet on a Excel file through URL. Googling suggested to use this format for the path "http://ags.mydomain.com/MyPMReports/Files/Doc33_HighwaySafety.xls#FreewayCrashRates" Where Exce File name : Doc33_HighwaySafety.xls Worksheet inside it : FreewayCrashRates But this doesn't seem to work. Any help wo...

I need to know about Custom Events in Flex

package classes.events { import flash.events.Event; public class ASSEvent extends Event { public static const ALERT:String = " Add Alert"; public function ASSEvent(type:String, bubbles:Boolean=true,cancelable:Boolean=false) { super(type, bubbles, cancelable); } } } What does here type, bub...

AS3 asdoc inheritance issue.

Hi, I have an API that inherits flash.display.Sprite .When I try to generate the ASDocs for the API, The ASdoc shows that my class inherits from flash.display.Sprite, but doesnt link or there is no click-able link to the Sprite's ASDoc. Can anyone tell me what I am missing. The command I am using in my ant script is <java jar="${asd...

Flex 3 - Saving an image of a component

Im currently trying to work the imageSnapshot function in flex. Ive been looking hard but I cant seem to find a solution to my problem. I wish to take a screenshot of one of my components, to capture the final output of my program, since a plain "printscreen" cuts off some of the output due to it scrolling. My current code looks like - ...

FlexCover 0.81 throws ServicesDepdendency Error no matter what

I've used FlexCover quite a bit before so this is absolutely absurd to me. No matter what version of the flex sdk (3.0, 3.2, or 4) that I apply the appropriate patches too, I get the following error when trying to compile: mxmlc Test.as Error: flex/messaging/config/ServicesDependencies java.lang.NoClassDefFoundError: flex/messaging/co...

Help in using a ILog Elixir clock example.

I am trying to use a clock example on the following website. http://blogs.ilog.com/elixir/2008/02/05/clockwidget1/ Everything in the clock is working expect for the hour hand. The hour hand stays on 12 all the time. I have used the entire code as it is.. changed nothing in it. The clock is working fine on the example page. Can some...

Flex and AIR: Open and Close Window Without Re-creating

I would like to open and close a window in Flex(AIR). I would really like to do something like: var myWindow:Window = new Window(); myWindow.open(true); // open after creating(this works) myWindow.close(); // now hide the window myWindow.open(true);// reappear(this doesn't work after a close) I'm probably missing something simple, ...

Cairngorm XXXCommand be executed several times

Hey guys, I ran into a problem.I'm doing a GIS program using flex. There's a map in my Application,when I click one icon on the map,windowA pops up,when I click a link inside windowA,windowB pops up,but here my problem coming out,when I close windowB and click the link inside windowA another time,Two windowB pop up... In my windowA,I ...

Blazeds service time stats

Hi, My Application : I have java remoting services(more then 25) on my (Tomcat BlazeDS)server which are called from my Flex client application. My Requirment : I need to collect stats on them like how much time each service is taking(total time). There are three approaches I can do this in my opinion(may be more) 1) change eac...

how to add a datagrid row on key down event?

I have a datagrid with one row intially. When I click on the first row, i.e on key down event, I want another row to be added. Earlier I had a button, on clicking which I added the row. But now I want the row to be added automatically once I click the first row. How to do that? I added keydown event to the datagrid, but it threw some...

Loading swf Problem in Air,Flex3

Hi, I have 2 swf file, one file is loading fine in SWFLoader in Air application but another is not loading, i dont know why its happening. differents between two file :- For ex: Swf1 is Main swf .(it has dependency file like xml to read and render) swf2 is Sub swf(which will load (or called) inside swf1 in run time) . When try to...

Can RIA flash apps on the IPhone store persist data until an internet connection is available?

Hi, I'm interested in building a thick client application for my existing web services that will run on the IPhone. Flash finally seems to be an option, so I thought about using Flex for client side development. However, since flash apps are not natively supported by the IPhone, but only through a wrapper, I was wondering if these ap...

How to prevent scale trumb within flex scrollbar

HI, all I'm looking simply approach to prevent scale thumb within flex scrollbar' According to our wireframes we should display scrollbar without up-down arrows and cycle (without scale) as a thumb; ...

how can i select particular checkbox within datagrid itemrenderer in flex ?

I have button like random click ,if i click this button then will select 15 checkbox within datagrid itemrenderer checkbox But i can't access the checkbox ? please refer me ? How can access the checkbox ? <mx:DataGridColumn headerText="1" rendererIsEditor="true" editorDataField="selected"> <mx:itemRenderer> <mx:Component> <mx...

Combobox's Dynamic event in flex

Hello everyone.. I am using flex when i was select combobox item i want to create new form for eg. when i select 1 it will appear one form when i select 2 it will appear two.so and so.... ...