flex4

What are good memory management techniques in Flash/as3

Hello! So I am pretty familiar with memory management in Java, C and C++; however, in flash what constructs are there for memory management? I assume flash has a sort of virtual machine like java, and I have been assuming that things get garbage collected when they are set to null. I am not sure if this is actually the case though. Also...

Ant and Flex-4 problem, MXMLC.jar not found !

Hi all, I updated a flex application from flex 3.5 to flex 4.0. We are using ant for compiling our project and we have a mxmlc task to handle the flex part. After the upgrade, our mxmlc task broke. Here is the task definition: <taskdef resource="flexTasks.tasks"> <classpath> <pathelement path="${FLEX_HOME}/ant/lib...

Missing WindowedApplication chrome on Flex4 + AIR 2.0beta2

I've installed the Flex 4 SDK and overlayed it with the AIR 2.0beta2 SDK and am unable to bet the Flex chrome to show up when I try to use Spark's WindowedApplication. the simple MXML -> http://pastie.org/909375 When I use the MX WindowApplication everything works fine, but somehow I'm not getting the Spark version to work as I expect....

Flex: Is it worth upgrading to Flex 4?

Hi, I'm in the process of building my first serious Flex application and have started out using Flex 3.4 even though 4.0 was available mainly due to the larger number of resources. But now I feel very comfortable with the Flex API's, is it worth upgrading to Flex 4? What are the benefits? And can I expect much pain when porting my exis...

how much effective is a frameworks for RIA in long run ?

hi , i am pretty newbie in terms of flex/RIA frameworks. mostly done work on server side. as i search on internet , people are using a lot different framework, cairngorm to mate. so my question is , as i am baby stepping through flex, should i go for learning framework ? or without framework ? ( as of now , those DI,DAO,VO and IoC doesnt...

<mx:HTML/> content looks crusty when resized

I've got HTML component as part of a datagroup itemrenderer which I need to resize the content of (there are lots of them). This works quite well but the content looks really crusty. No font antialiasing. Even at 50% looks crusty. I've considered generating thumbnails bitmaps on load 'complete', but that would be my last resort. <mx:...

how to auto select the first index in a sparks List control in flex4

hi i have a spark List control. it has a dataProvider that shows reply from twitter search. i have created a function for change handler like this: protected function list_changeHandler(event:IndexChangeEvent):void { ta.text = coverflow.selectedItem.title; } so, whenever i select each of the it...

How to get proper value of .contentHeight after scaling? content of s:Group

<?xml version="1.0" encoding="utf-8"?> <s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" creationComplete="creationCompleteHandler(event)" xmlns:mx="library://ns.adobe.com/flex/mx" mouseWheel="mouseWheelHandler(event)" backgroundAlpha="0" width="100%" ...

Bitmapdata heavy usage - memory disaster (spark/FB4)

I've got a flex component which works pretty well but unfortunately turns into a disaster once used in a datagroup item renderer of about 40-50 items. Essentially it uses bitmapdata to take screenshot of a fully-rendered webpage in mx:HTML (this version of webkit rocks btw, miles better than flex 3). The code is pretty self-explanatory...

Flash Builder (Flex 4): datagrid populated by XML, how can I add an image in some of the rows?

I have a DataGrid table with columns name, phone. In column name I would like to add a picture near the name of the person. How can I add a picture in a datagrid row? <fx:Declarations> <fx:XMLList id="people" xmlns=""> <test> <name>moshe</name> <phone>555</phone> </test> </fx:XMLList> </fx...

Event handling for keyboard strokes

Hey, I'm trying to get familiar with the whole keyboard event detection thing. Here's my sample code. <fx:Script> <![CDATA[ import flash.events.KeyboardEvent; import mx.controls.Alert; private function init():void{ addEventListener(KeyboardEvent.KEY_DOWN,reportKeyDown); } ...

Get the position in a Grid from a dynamic object.

Hi On GridItem object there's a colIndex and on GridRow a rowIndex. But both are declared internal so I do not have acces on that information. Is there another way to get the position of an object in a grid. cyrill ...

Vertical ButtonBar buttons width

I am creating a vertical button bar with 3 buttons. How do I force the same width for all three buttons so it doesn't look like crap? <s:ButtonBar x="10" y="10" dataProvider="{viewstack1}" > <s:layout> <s:VerticalLayout gap="-1"/> </s:layout> </s:ButtonBar> <mx:ViewStack id="viewstack1" left="115" paddingRight="0" right=...

Seemingly simple skinning problem in Flex4; style gives disco effect

I'm doing something wrong, but I can't figure out what. Simple project in flex4, whereby I create a skinned combobox (fragments at end). If I turn on the 3 skin references (over-skin, up-skin, down-skin), the combobox appears to simply stop working. If I remove the up-skin, hovering over the combo produces a flickering effect, where it ...

Flex/Flash professional Components - What's the equivalent of companies like Telerik?

In the .NET world order, companies like Telerik provide awesome sets of components for web/windows/silverlight. Who are the equivalents in the Flex/Flash universe? I see lots of sites filled with little 10/20 dollar menu components or uploaders, but I'm really looking to find something a step above that. Thank you! ...

[Flex 4 and .Net] Retrieving tables from SQL database

Hi everyone, As the title says, I want to retrieve tables of data from a SQL database, using Flex 4 and .Net WebService. I'm new to both Flex and DotNet. Please tell me a proper way to do it. This is what I've done so far: Retrieving an array of string: (this works) .Net: [WebMethod] public String[] getTestArray() { String[] ...

how to embed pure as3 bitmap assets with flex4 (worked with flex3)

In Flex3, I could compile pure as3 code and use "embed" tags to load in images. This was done by Flex making a BitmapAsset class. I can still do this in Flex4. However, there was a trick to fakeout flex3 and use my own mx.core.BitmapAsset class to remove some of the extraneous stuff Flex's BitmapAsset brings in with it. This is descr...

Need Flex Regex Validation Expression for password that allows for only alphanumeric values and requires one number

Hi I'm trying to setup a RegexpValidator that only accepts a string of alphanumeric characters between 6-30 characters long and requires one number. I'm new to Regular Expressions and everything I've tried seems to keep returning an invalid ValidationRsultEvent. Here's a chunk of code: <mx:RegExpValidator id="regexValidator" source="{pa...

Flex 4: Is it possible to have a BorderContainer automatically size to the contents within it?

I have a BorderContainer with several objects inside of it. I want it to fit snugly around its own contents, but it doesn't. It seems the default size of a BorderContainer is 112x112. That is so wierd considering no other containers have that default size. Is there a way to set the width and heigh properties to "auto" or something like t...

Missing Text in Air Application Flex4+Mac OSX Snow Leopard

I am running the same AIR application under windows, linux and Mac OSX Windows and Linux look fine, but under mac OS-X the controls are not showing any text. Button, Tooltips, Labels, Check boxes, everything is blank. I just ported that app to Flex 4. Flex 3 versions of the same app on the same OSX machine works. How can I get controls ...