flex3

Flex/AS3 Problem listening to an event dispatched from a Singleton Class

I have a singleton class for global access to config information. This singleton class called ConfigurationData extends EventDispatcher. Here is the class (note that I left some things out like variable declarations to keep this short): /** * Dispatched when the config file has been loaded. */ [Event (name="configurationLoaded", type=...

itemRenderer results in undefined method

I have an mxml file with a bunch of functions in the script tag, and a List component that uses a custom itemRender to add an image to each list entry. But when I add a call to a function on click of the image, I get "call to an undefined method" error. Even though my function is right there on the same page... here is what it looks like...

Pass data between flex components

I'm new to flex , so forgive me if this is a dumb question. Right now I'm using custom events to pass data from one component to another. My problem is that events only bubble up. How can I pass data to a component that isn't a parent of the component dispatching the event? Here's the basic layout. I'm trying to get data from compone...

Scroll content in SWFLoader (Flex 3)

Hi. I have to load huge (3000x3000) pictures in SWFLoader, and no problems with that — everything works fine. But on low resolution displays (like 1024x768) i can see only a part of picture. So i need some kind of scroll bars to scroll around a picture. How can I do that? Please help, because i simple have no idea. Thanks! ...

AS3/Flex: How to make mxml files loaded via ViewStack see their parent's variables, etc.?

For a project I'm working on in Flex I decided to create several separate files for each 'theme' that can be used. Since each theme can and will require specific code, images, styles and virtually anything else, the classical css-only option was not really possible. I have one problem with this method, and that's that each 'child' mxml ...

Screen Sharing in Adobe Air

I am making a whiteboard application in Adobe Air. I want to share my screen with the other user and allow him to access my desktop, similar to remote desktop. I tried googling around but found no useful information on this. Can anybody give me some useful pointer to look into it. ...

Dual colour in one label in flex 3

Hi All, I was just wondering if you can get two colours in a label so i can have some of the text white and some red. I have been looking online and have not found anything. However, I though here would be a more appropriate place to ask. If not i will just use two labels. But any input is appreciated. Regards Mark ...

How do I set a focus property on a TextInput that is built using AddChild?

I have the following MXML: <mx:State name="myState"> <mx:AddChild relativeTo="{myhbox}" position="after"> <mx:Box verticalAlign="middle" horizontalAlign="center" width="100%" height="100%"> <mx:Form id="myForm" width="479" verticalScrollPolicy="off" horizontalScrollPolicy="off"> <mx:FormItem label="My Label:" fontW...

mx:Text wrap inside of mx:List

I have a mx:Text tag with some text I would like to display in a list. The code is below. <mx:List id="projectList" width="100%" height="100%" dataProvider="{project.projectRequirements}" borderThickness="0"> <mx:itemRenderer> <mx:Component> <mx:HBox height="100%" mi...

Dynamically loading a flash movie from a flash movie

I have 2 mxml files, lets say main.mxml and child.mxml. Now lets say I want to load child.mxml inside main.mxml and pass it a complex object as a parameter. How would I go about doing this in AS3/Flex 3? I have tried to search for this on Google and SO but either I am not searching with the right keywords or there is no info (unlikely)....

Flex Component Libraries?

I've been asked by my boss to make a semi-functional mockup of a webapp using flex. He has requested that it looks as "WOW!" as possible. The built in flex components are pretty basic. Are there any libraries out there with nifty looking components? The only one I have found is flexlib, which is awesome, but I still need more componen...

Responding to ItemClick events in rows, not the headers

I have a functional datagrid that responds to itemClick events. Everything works, except that it also triggers the itemClick event when the headers are clicked. So instead of sorting the grid data they trigger the event which changes the state. I want to only have the click event respond to the rows being clicked, not the headers. ...

Adobe Flex - How to jump view?

I understand that we need to create MXML file to define a view. Suppose on user click of a button I want to show another view defined in another MXML file. How can I do this? ...

Components in module disappear when browser is resized (Flex 3)

We have this Flex app built on Builder 3 and we're using SuperTabNavigator from FlexLib to have some modules displayed. The thing is, whenever the user resizes the browser window all the contents on any tabs open simply disappear and there's no way to get them back. This only happens the first time, so if you close these 'broken' tabs an...

How to make slider labels clickable [Flex 3]

I have a simple slider, with only 3 options. It seems strange to force the user to drag the small thumbnail on the slider, when it would be a lot easier to click one of the 3 actual labels by the side of the slider. Does anyone know how to accomplish this? ...

How can I nicely animate between viewstacks

I have a little Adobe Air app and I want to have several 'views' within it. I can achieve these views using a ViewStack but am having difficulty finding a nice way to animate between them. This is what I have tried and although it works, one view disappears before sliding into view when what I want is more like the DestroyTwitter app wh...

Tab Between Components

I'm playing around with the physics login form from Doug Mccune's blog I'm trying to make it so that after I finish typing the username I can hit the tab key to go to the password field, and again to go to the login button. I'm a bit of a n00b with flex, so I assumed setting the tabIndex properties would solve that, but it doesn't. An...

flex 3 server.error.request sending webservice

I have a .net webservice which I invoke in flex and then I have form where I insert a new post to the table through another method in the webservice. But when I try to insert the method, flex generates an error: [RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent ...

Flex ItemRenderer prevents use of tabbing between text inputs

I have a custom ItemRenderer that displays 5 text inputs in each of 3 panels: <?xml version="1.0" encoding="utf-8"?> <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" height="300" width="800" creationComplete="onCreationComplete()" > <!-- code-behind --> <mx:Script source="ChainListRenderer.mxml.as" /> <mx...

Detecting if UIComponent has scroll bars active

I have a TileList in flex, and need to be able to detect if the scroll bars are shown or not, so I can change the size of the items it is laying out. ScrollPolicy is set to auto, but I need a variable like CurrentScrollPolicy which will change from off to on depending on the content. Thanks ...