flex

How Can I Make a Flex 3 Datagrid Show only One Row of an ArrayCollection's Results?

Hi, Is there a way to make a Flex 3 Datagrid show only the first node of an arrayCollection, instead of showing all of the arrayCollection's data? myDGArray = [ {Name: "Judy", Talent: 'Pole-Dancing', Score: "40"}, {Name: "Jane", Talent: 'Yodelling', Score: "65"}, {Name: "Jim", Talent: 'Singing', Score: "82"} ...

Event.Complete does not fire when loading a URL

I'm an experienced AS developer, but this is something very basic about flex that I can't figure out. In the class below, I'm not sure why the function imageLoaded would not be executed when the image loads a url. Is there a race condition happening here? The application is completely loaded by the time this object is created and setPict...

How to remove undesirable text/HTML tags from FLEX LineChart's custom dataTips?

Hello, I wrote a function to override my FLEX LineChart's datatips because the default datatips were ugly and rather boring. I finally set the style I wanted but am now having some problems removing un-necessary tags from being displayed in the custom datatips. For example, the datatips now display things like this: "<b>Humidity</b></...

How do you check for XML element type of a node in AS3?

This is making me feel stupid :-). Say I start at a leaf node, and I traverse up the tree by using .parent(). I need an exit condition once it hits root. At the moment, I'm using parent.@name != "root", where name is just an attribute, but shouldn't I be able to check the type of element as well? How? Also, is there another way to en...

Flash Developer IDE

Hi guys..I was wondering which IDE choice you flash developer use to write the code....I use Flex Builder for my AS3 only project so the code below will display nicely with coloring keywords. I wanted to know if there are better choices there...Also, does flash developer do the AS3 programming only? Do they do graphic design at all? Tha...

How do I add the SWC file for Cairngorm to my app without FlexBuilder?

I am not using FlexBuilder, I'm using the free Flex SDK with TextMate. I'm having some trouble figuring out what this FlexBuilder process actually does behind all the nice dialogs and things, so that I can do the same thing by tweaking whatever the relevant file is, but Googling just points me at similar instructions telling me to use Fl...

Flex 4 & Spring 3 Integration (BlazeDS) (Refcardz): @Secured not working

Hi, Please be gentle on the quasiNoob(expert w/Flex & Actionscript, != expert w/Spring) ! I am on Mac Snow Leopard and using STS 2.3.2 Release w/the Flash Builder 4 plugin and tomcat 6. Everything works except for the security exclusion using the Spring @Secured annotation in the java class: When I am not logged in, I can enter messag...

Draggin Dropping of AVM1(ActionScript 1/2) dont work in AVM2(ActionScript 3/Flex)

Hi I have a application developed in ActionScript 2 which has dragging/dropping activity. which works fine. I used following to test dropping dropObject.hitTest(_root._xmouse, _root._ymouse, true) //if true, drop currently dragging object Problem occurs when I put this SWF in my Flex application SWFLoader container. dragging dosen't ...

Sending a json object over Flash Builder 4 webservices

Can I use the webservice wizards in Flash Builder 4 to send a json encoded object...not as a string but as type application/json; charset=UTF-8 ...

zip validators on FLEX

Hello How I can make zip vlaidators that will check entered zip with really zip from database? Like this: http://zip4.usps.com/zip4/citytown_zip.jsp but on flex. If there is no way to yse outside database - I can create my - but I nneed list of all zip codes best Vladimir ...

Flex: How to keep code away from MXML

Can you recommend articles,books and best practices on designing Flex applications? (both AIR and web). I've read Creating components and enforcing separation of concerns with Flex and Building components by using code behind. Does the application always have to start on the Main MXML? Can't I instantiate the first view from an Action...

Flex compiler, mxmlc, called in Java makes 64bits JVM crash (dcpr.dll)

Hi, I have a web application that converts SVG files into swf ones. In order to do so, there are 3 steps : 1 - Running through SVG Files in a folder for (final File file : tFiles) { final String fileName = file.getName(); final int nbEr = flashEngine.convert(fileName); if (nbEr > 0) { LOG.error("Error with SVG ...

Flash: netStream.info.audioBytesPerSecond alternative? Or how to detect if audio is present?

We have a flash app streaming live video to our clients which may or may not have available. When audio is available, we are showing controls to mute or alter the audio volume. When audio is not available, we hide those controls. These are necessarily different streams, but could be the same stream where the broadcaster has disbaled thei...

how can I read the version from application descriptor file

So I have a basic application descriptor file for my AIR app. It looks something like this, shortened for sanity: <?xml version="1.0" encoding="utf-8" standalone="no"?> <application xmlns="http://ns.adobe.com/air/application/2.0"&gt; <version>1.0.10</version> </application> Now I want in the application to display the version, but I...

Multiple Object Drag and Drop in Flex

Is there a way to implement something like icons on a desktop? Is there an easy way in Flex to implement a selection box and multiple drag and drop? ...

How does one create Channels at runtime using BlazeDS?

Hi all, So as you may or may not know, BlazeDS (open source version of LiveCycle Data Services) is a nice way to get your server-side Java and client-side Flex application to play together. Unfortunately, it does have several pitfalls that need to be corrected. I'll try to explain one of them here. All of BlazeDS's configuration is w...

Flex: How to get the number of Days in a particular month in Flex?

Hi Guys I am having a problem with flex. How can I get the number of Days in a particular month in Flex? Thanks ...

Dynamic variable for custom component functions in Flex 4

I define a variable which is dynamicaly changes based on the user interactions, for example ID of an object sets to variable when user touches on it. After the ID sets I call a function in a custom component which is related to that object. Like this; activeObject.videoPlay(event) ---> if the activeObject is video1 ---> video1.videoPl...

s:List display the items in reverse order.

Is there a way to get a s:List to display it's items in reverse order? Not having to make a copy of the dataProvider would be ideal. Thanks. ...

In flex, how to find the number of characters that can be fit for a text control of a given height?

In flex, I have mx:Text component. How can I find how many characters can fit into it without vertical scroll for a certain height & font etc. ...