flex

How do I design a dynamically changing table in Flex 4?

So, I'm new to Flex 4 and have been doing the Flex in a Week crash course online. I need some help trying to build a dynamically growing or shrinking table with columns and rows. The cell backgrounds of the table will change color depending on an XML file. Sometimes a picture is worth a thousand words: http://drop.io/v0woo7w (password...

How do I access the root element of an MXML document if I can't set an id?

If I wanted to do something like this: <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" horizontalScrollPolicy="off" verticalScrollPolicy="off" xmlns:view="com.foo.bar.view.*" > <mx:Script> <![CDATA[ myWidth = 100; myHeight = 200; myCanvas.width = myWidth; ...

Making a Flex chart with an interactive legend

Hello, I currently need help with making a chart in Flex with multiple series and a chart legend which is an interactive legend where upon selecting an item in the legend (which corresponds with a series in the chart) that specific series in the chart will slideDown or Up depending on whether it was just de-selected from the legend or ...

How to get a Spark DropDownList skinClass and typicalItem to live happily together

Hello, How does one go about calling a skinClass on a DropDownList component without compromising the typicalItem functionality? <s:DropDownList id="appList" skinClass="skins.IconComboBoxSkin" requireSelection="true" change="combobox_changeHandler(event)" typicalItem="{appList.selectedItem}"> If I remove the skinClass it beha...

Adobe flex logging api

Hi, I have a pretty big Adobe Flex Application. I want to put logging and before I implement I want to get some better understanding. Can I enable logging when I use(from same server) and disable it for general public ? how much of over head will logging cause, If I am liberal in putting log statements ? Are there any other disadvan...

packages cannot be nested

its giving error on importing mx.resource.resourcebundle that packages cannot be nested package common { import common.clsGlobals; import flash.desktop.NativeProcess; import flash.desktop.NativeProcessStartupInfo; import flash.events.IOErrorEvent; import flash.events.NativeProcessExitEvent; import flash.events.P...

Is there an Actionscript library that can be used to target Flex components in the display list using an xpath-like syntax?

I feel like I've seen something like this before, but not sure where and searches aren't turning up anything useful. A library like this would evaluate xpath-like string expressions that would resolve to references to actual components (if they exist) in a Flex application's display list tree. ...

Custom Array Serialization on Flex client

Hi, I was wondering if it is possible to do custom serialization of Arrays/ArrayCollections in as3 via amf. To be more specific, i want to be able to pool objects on the client so that im not instantiating new objects every time i make a RemoteObject call. I tried using IExternalizable but that only lets me serialize the objects myself ...

flex builder 3 plugin error files

hi , where does Flex builder 3 plugin output error messages? I'm trying to import wsdl however i keep getting an "unable to load wsdl" message. Ive tried creating a trusted certificate in the jdk cacerts file however no success and could do with seeing what is actually the problem. I have looked under the Program Files/Adobe/Flex Build...

flex tree discloser icon problem

Hi, i gave the tree an ArrayCollection as dataprovider that i pulled from the database, and it contains the children, but the discloser icon wont disappear on an object that doesn't have a child. i think the problem is that the renderer doesn't recognize the leaf child, wich contains a children array of length 0, or null...... ...

loading a large number of images

I have this code which works fine when selecting a small number of images. public var fileReferenceList:FileReferenceList; public function browseFiles(event:Event = null):void { fileReferenceList= new FileReferenceList(); fileReferenceList.addEventListener(Event.SELECT,onMultipleFileSelect); fileReferenceList.browse("image...

Slow performing Flex application on fast webserver

A flex app is becoming very slow when deployed on a virtual (vmware) Red Hat 5.5 server (SAN storage) If I serve a static file with Apache on this web server, this file is downloaded very fast. But the (pre)loading of the flex app on the same webserver is very slow. What could be the reason for this? ...

relative positioning and font sizing in flex

I need to position an object in the bottom half of a container (working on flex 4)- abt 25% above the bottom...and cant use x,y coordinates given need for resizing. I have been able to position the layout containers and they work well Also need fonts to resize as the buttons get smaller Appreciate your guidance in advance ...

How to supress warnings for one ActionScript file?

I've got an ActionScript 3 source file (.as) that has hundreds of untyped variables. This file works perfectly although it outputs a warning for every untyped variable which gets me ~800 warnings clogging the Error panel in my IDE. Although warnings are helpful in my other source files, I want to suppress warnings for this one .as file...

Custom combobox in flex

Hi All, I need a custom Combobox in flex(as an ActionScript file), where I need to display in dropdown all the data nodes in the dataprovider as comma seperated values and when selecting only display one single node/value in textInput. How can we implemented this. Please help. Thanks, Rejeev. ...

Component goes out of another component

Hello, If I drag a textInput from a component and drop it near the end of the another component, the textInput goes outside of the dropZone. Any ideas how to resolve this problem? thanks edit: <?xml version="1.0" encoding="utf-8"?> <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spar...

In flex, how to remove empty lines in text area?

In flex, how to remove empty lines in text area? ...

Why is my object reference null when trying to reference an mx:Canvas from ActionScript?

Hi everyone, this is a follow up question from this one, I don't want to keep going in the comments and preventing people from getting hard-earned reputation... :) In my Cairngorm command class, to get it to compile I needed to tell it what myCanvas was, so I used this line: var myCanvas : MyCanvas = new MyCanvas; I'm guessing that's...

a question about parsing xml file in Flex

Hi there. I am faced with a small project now,in which I have to present a peoridic table to the user.However,it is bit more complicated than just a pure peoridic table image file.Let me break it down a bit: 1.In the same folder,there is an xml file,which have the following format: <constraints> <element> <name>Calcium</name> <abbrev...

Can we do Yield curves using Adobe Flex ?

I want to create Yield curves using adobe flex. pls, any one have an Idea how to create yield curves in a chart using flex... ...