flex3

FLEX: question about dispatching event through hierarchies of components

hi, if I dispatch an event from a component, can this event be listened by the grandparent of the component ? If not, what should I do to make it happen ? Should I add a listener and dispatcher to the parent (component in the middle) as well ? Thanks ...

Flex: change containers size to wrap the content

hi, I'm using TitleWindow with PopupManager. I programmatically add the children to my TitleWindow and I would like the TitleWindow changing its size in order to avoid scroll-bars. Is there any property to mek the windows wrapping the content in Flex ? thanks ...

How to get the current page no. in flex paper?

Hello Guys, there is no tags on flex paper. so make tag on flex paper. Now the question.. How do i get the page number in flex paper. I want to add some events when page is changed. And i also want some events on particular some pages. so i need that current page number which is viewing by the user in flex paper. ...

Getting fill color inside the itemrenderer in Adobe Flex

Hi All, I am writing a custom item renderer to render a column series in my application. Its a stacked chart and i want to use the same item renderer for both the column series. The color for each series in the stack is different and am setting that in the 'fill' property of the two series. My doubt is how can i get the color specified...

Single model - multiple filtered views

Hi gurus I have data model (dataProvider as ArrayCollection) i want to display in few views , each view should show filtered data. As you probably know, filterFunction is property of ArrayCollection,so I can't use this solution (unless creating new instance of ArrayCollection for each view on top original and impementing filterFunctio...

Binary socket and policy file in Flex

Hi, I'm trying to evaluate whether Flex can access binary sockets. Seems that there's a class calles Socket (flex.net package). The requirement is that Flex will connect to a server serving binary data. It will then subscribe to data and receive the feed which it will interpret and display as a chart. I've never worked with Flex, my expe...

How do I resize the dropdown of a combobox along with the combo box?

Background:     I am doing some UI work where I allow the user to programatically add and resize controls on a canvas. Problem:     When resizing a combo box through AS the dropdown stays at the same width as the first time it drops down. So user places combo box on the page, clicks the down arrow, sees the options, selects an option o...

drawing tick marks in grid line in flex

Hi All, I am drawing a line chart with 4 line series. Two of them have negative values and goes under the 0 line. I want only the grid line across 0 to be displayed. hence i used like this : <mx:GridLines direction="horizontal" horizontalOriginStroke="{originStroke}" horizontalShowOrigin="true" ...

Flex TextArea, increase number of rows to more than 100

I am using TextArea to display some text information in rows in flex gui, it automatically restricts the number of lines to display to 100 lines. But I want more than 100 lines in the text area. How can I increase number of lines to display? ...

How can i set values in cookie and get values from cookie not using with shared object in flex ?

Hi I need to save email-id in my login form through the cookies. if I use shared object I am able to save but my requirement is need to save in cookies. How can I save? I got sample code from net. Attaching that code `package com { import flash.external.ExternalInterface; /** * The Cookie class provides a simple way to create or ac...

Issues with Flex 4 SDK under Flex Builder 3

I have managed to adjust Flex Builder 3 to work with the Flex 4 SDK thanks to this article. However, some strange things are happening. I changed all the namespaces as suggested, but I cannot get anything from the fx: namespace using the Flex Builder code completion, as well as the spark List class. ...

why my ProgressBar can't capture the mouse down event?

I use a custom skin as the track skin, but i can't get the mouse down event protected function application1_creationCompleteHandler(event:FlexEvent):void { pBar.addEventListener(MouseEvent.MOUSE_DOWN, onEvent, true); } protected function onEvent(event:MouseEvent):void ...

What is major Difference between Adobe Flex and Microsoft Silverlight?

I want to develop a web Application to manage school administration. But I am not clear, which technology should I use to create Rich Internet Application. At present, develeopment company is going with ASP.net tools and say this is a web app. However, there is page refresh on every click. Which I don't like. Please suggest, where to p...

Using rendrer in list in flex

Hi all I am using list component in flex & using custom itemRenderer i.e I have made a component named frameRenrer(there are two controls ImageControl and label control) where I set the image source and label text on creationComplete event.And I providing the data using dataProvider function in List component.But actually problem is that...

Advanced datagrid in flex 3

Hi, I have an XML which is coming from the back end through an HTTP service(Using the perl cgi) and I want to display it in an advanced data grid....as in if I click the parent element the children have to be displayed in the corresponding columns...I'm trying it with my data provider but its not working. Is it possible? Thanks in Ad...

FLEX: how to limit the number of items in the Repeater object

hi, I'm using a Repeater object in Flex. Would be possible to stop the repeater after 50 iterations.. even if my dataProvider is bigger ? I want to display only the first 50 items. I'm using MXML to implement the repeater. thanks ...

Access a view inside a tab navigator when a tab is clicked

Hi, I I have a view in Flex 3 where I use a tab navigator and a number of views inside the tab navigator. I need to be know which view was clicked because of it's one specific view then I need to take action, i.e. if view with id "secondTab" is clicked then do something. I have set it up to be notified, my problem is that I need to be a...

Dynamic Tree control in Flex 3

I am looking for sample code to create a dynamic Tree control in Flex using a Collection of objects obtained from the backend(Perl cgi). So, initially the Tree will display the root nodes. Clicking root node, will invoke the data for populating the child nodes (basically adding child nodes on demand). Clicking child nodes will pull an...

Error #2006: The supplied index is out of bounds,in flex

Hi I have created a component for alert box and I am using it in main application,` <mx:Style> .myButton { overSkin:Embed("folder/over.png"); upSkin:Embed(source="folder/up.png"); downSkin:Embed(source="folder/down.png"); } </mx:Style> <mx:Script> <![CDATA[ import mx.core.Application; ...

I need a true mouseOver...

Ok, so mouseOver and RollOver, and their respective outs work great as long as your mouse is actually over the item, or one of it's children. My problem is that I may have another UI component "between" my mouse and the item I want to process the mouse/rollover(maybe a button that is on top of a canvas, but is not a child of the canvas)....