flex

Flex, resize children when parent is resize

Hi I have Buttons which I have rotated vertically within a Canvas, that is working fine. The problem occurs, when the user resizes the window to a small size a vertical scroll bar appears, I would rather have each button squashed upto a smaller size. <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="40" maxWidth="40" xmlns:m...

How can I use Flex to create a data grid and use it on a web page?

I want to render a very simple Flex data grid. How do I anchor the SWF flash file in the HTML? Do I need to compile a special .swf or can I use a 'standard' data grid .swf - and just pass the data to it? ...

How to render a component with dynamic visibility in ActionScript?

I have a custom ActionScript component that I'm using in a Flex application (Flex 3.3, ActionScript 3). This component contains an Image control whose visibility is set dynamically based on a property of the data element provided to the component. The problem is that even when I set the image to be visible, it will not render onscreen. ...

Adobe air http auth

Hello ! I have a question about HTTP auth in a non browser env. If i have an Air app which takes user/pass to "login" to a web app. THe login action would be done with a request from Air to http://foo.bar/session/create and the uname/pass as POST var. Now i can keep the answer and add it to the headers for my next requests ? If the...

resize loaded SWF to fit in canvas

Hello, a .fla is 500 x 300. Inside, content moves OUT of the 500 x 300 stage so that it appears like it hides or moves off of the screen. .fla complied... loaded into Flex via SWFLoader: <mx:Conainer width="500" height="300"> <mx:SWFLoader width="100%" height="100%" /> </mx:Conainer> Loaded .swf file shows outside of the 500 x...

loading an RSL without using flex?

If I have rolled my own RSL, and I want to use it in my pure as3 apps, is there documentation or an example of how to do this? Or do I need to traverse the flex source code to figure out what adobe's engineers have done? ...

Flex: Getting a variable from your regular component to an inline item renderer

I am trying to turn labels red when they can no longer be added to a list because of size requirements. The renderer works but Flex creates a separate component. I can't think of any good way to get that value to the new component. Any ideas? <mx:List... > <mx:itemRenderer> <mx:Component> <comp:SetSizeLabel nu...

Crawl Text Fade-In and -Out in Flex

I'm working on a Flex application that includes a crawl component -- a block of text that moves across a portion of the screen from right to left, implemented as a Label object being moved by a Move effect across a containing Canvas object. (Okay, technically, at the moment it's an Image object being moved, but as it's an all-text crawl...

Retrieving data from a file system datagrid to a repeter: FLEX

Hi: I'm trying to retrieve data from a file system datagrid to a repeter, let's say something like this: <.mx:FileSystemDataGrid id="FSD" directory="{The_directory}"/> <.mx:Repeater id="Repet" dataProvider="{The data from FSD}"> <.mx:Object ...> <./mx:Repeater> So, the repeater must act like a... file system repeter? xD haha....

embedding as3 fonts into a swf without flex?

Is there a way to create embedded "pure as3" swf fonts using compc (without the flex framework integration)? If I embed a font like this in my as3: package fonts { import flash.display.Sprite; import flash.text.Font; public class Helvetica extends Sprite { [Embed(source='Helvetica.otf', fontName='Helvetica')] public static ...

Flex and ASP.Net-Membership via WebORB

Have anyone done this? I'm putting the membershiplogic in a C# .dll, and the connection info in an app.config. When I try to use the C# .dll with another Windows C# console debug project I put the App.config in the consoles application directory, and calling the C# .dll-methods and it suceeds, I get a connection and it validates my user...

hyperlink cell elements passed in a Flex datagrid

I'm trying to render a Flex datagrid using an external XML datasource. Is there a way I can specify in the XML that a cell element should appear as a hyperlink? ...

Flex + Mate + WebServiceInvoker : Changing the WSDL according to FlashVars

I have a Mate project with a WebService tag instance in the EventMap (which I'm using within various event handlers). I'd quite like to be able to set the wsdl property of the WebService via flashvars, but I'm not entirely sure where or how I could do that. I know I can access flashvars via the Application.application.parameters collect...

Unable to draw Unicode chars whose value is > 0xFFFF in Flex

I'm trying to draw a character from a Unicode font whose value is 0x1d11e (this is the treble clef character from the Sonata font). I read on an Adobe forum that I have to convert Unicode chars > 0xFFFF to using UTF-16 surrogate pairs, but this doesn't seem to work. Here's my code: [Embed(source='C:/WINDOWS/Fonts/SonataStd.otf', fo...

Flex Combobox Binding Issues

In my application i used combobox and adding value using dataprovider like id="teamComboBox" dataProvider="{xml_teamcoupon.lastResult.coupon.teamcoupon_name} my xml like this <pick15> <coupon> <teamcoupon_id>1</teamcoupon_id> <teamcoupon_name>teamcoupon1</teamcoupon_name> coupon></pick15> so comobobox shows team coupon name . Bu...

How can I send another variable with FileReference Upload

Hi, I'm new in flex.i face a huge problem of the filereference class using the upload function. Actually i want to send the folderLocation variable with fileReference.upload(). Below i try to describe my strategy.Please help me with code correction. var folderLocation : String = "photos/myUniqueFolder/"; private var serverSideScript:St...

AdvancedDataGrid Multi-column programmatic sorting

Hi, I need to to a programmatic multi column sorting on the AdvancedDataGrid. The issue is, currently I am implementing paging on my grid. So, if I sort the data, only the perticular page is being sorted. So, I need to sort the entire list by the column criteria. I tried HeaderRelease event, but I guess it is of no use as I need to mak...

Actionscript 3 introspection -- function names

I am trying to iterate through each of the members of an object. For each member, I check to see if it is a function or not. If it is a function, I want to get the name of it and perform some logic based on the name of the function. I don't know if this is even possible though. Is it? Any tips? example: var mems: Object = getMembe...

Aligning Multiple Charts in Flex Charting

I have multiple line charts in Flex Charting (3.x). The charts (and number of charts) are being dynamically generated, and are either of "type A" or "type B." The type of data on the Y-axis is different for type A then it is for type B. The x-axis is time. Each chart is placed in its own VBox (with a few other things) that make up ...

Displaying huge, scrollable images in Image?

I'm trying to show image files (jpg, png, gif) that can be larger than the available display area. I've embedded an Image inside a cCanvas (to get scrolling), but the large images are not completely displayed. Very large images (e.g. 2480 x 3507) have the top or the top and bottom of the image clipped withing the scrolling Image. What ...