flex

How do I loop through result objects in Flex?

I am having problems manually looping through xml data that is received via an HTTPService call, the xml looks something like this: <DataTable> <Row> <text>foo</text> </Row> <Row> <text>bar</text> </Row> </DataTable> When the webservie result event is fired I do something like this: for(var i:int...

What is the best way to calculate Age using Flex?

What is the best way to calculate Age using Flex? ...

Simple effects in Flex

I would like to show some hidden text in a Flex application and have it fade out in a couple of seconds... I have looked into Delay and Pause effects in Flex, but have yet to see an example of how to do this realistically easy effect... anyone now how to do it or have a good resource? Thanks. ...

How to display a live streaming video using VideoDisplay in Flex

I'm wondering how to use a VideoDisplay object (defined in MXML) to display video streamed from FMS via a NetStream. The Flex3 docs suggest this is possible: The Video Display ... supports progressive download over HTTP, streaming from the Flash Media Server, and streaming from a Camera object. However, later in the docs all I can...

Managing web services in FlexBuilder - How does the manager work?

In FlexBuilder 3, there are two items under the 'Data' menu to import and manage web services. After importing a webservice, I can update it with the manage option. However, the webservices seems to disappear after they are imported. The manager does however recognize that a certain WSDL URL was imported and refuses to do anything with i...

Flex and ADO.NET Data Services...anyone done it?

Has anyone used ADO.NET Data Services as a data source for Adobe Flex applications? If so, any success stories or tragedies to avoid? If you did use it, how did you handle security? ...

Flex and .NET - What's a good way to get data into Flex, WebORB? Web Services?

Ok, I asked a question earlier about Flex and ADO.NET Data Services but didn't get much response so I thought I'd rephrase. Does anyone have any experience building Adobe Flex applications with a .NET back-end? If so, what architecture did you use and what third-party tools if any did you employ. I've read a little about doing Flex re...

What is the best approach to moving a preexisting project from Flash 7/AS2 to Flex/AS3?

I have a large codebase that targetted Flash 7, with a lot of AS2 classes. I'm hoping that I'll be able to use Flex for any new projects, but a lot of new stuff in our roadmap is additions to the old code. The syntax for AS2 and AS3 is generally the same, so I'm starting to wonder how hard it would be to port the current codebase to Fl...

Developing a online exam application, how do I prevent cheaters?

I have the task of developing an online examination software for a small university, I need to implement measures to prevent cheating... What are your ideas on how to do this? I would like to possibly disable all IE / firefox tabs, or some how log internet activity so I know if they are googling anwsers...is there any realistic way to...

How can I detect if a Flex app looses focus

As a follow up to this question: http://stackoverflow.com/questions/46873/developing-a-online-exam-application-how-do-i-prevent-cheaters Can I detect when Flex application looses its focus? that is if a user has clicked onto another application or opened a browser tab? I read this: http://blog.flexmonkeypatches.com/2007/12/07/detecting...

What's the best way to pass data into a Flex chart from a Ruby on Rails application?

Quite a few methods exist for passing data into a Flex binary from a Rails application. Right now, I'm using the old e4x resultFormat with a xml.erb template. I've done AMF before, but I feel like inlining parameters into the embed itself is a better solution because you don't have to wait for the browser to load a swf binary and the b...

displaying HTML inside a Flex application.

I have some HTML that is generated via a Rich Text Editor outside of my Flex application but would like to display it inside Flex. The HTML is simple HTML tags, things like styles, anchors, and possibly image tags, is there a control that would let me render this HTML in flex or am I going to have to roll up my sleeves and roll my own?...

Open Source Actionscript 3 or Javascript date utility classes?

I was wondering if anyone could point to an Open Source date utility class that is fairly robust. I find myself rolling my own when I want to do a lot of things I take for granted in C# and Java. For instance I did find a decent example of a DateDiff() function that I tore apart and another DatePart() function. Another examples would be ...

Best way to implement 1:1 asynchronous callbacks/events in ActionScript 3 / Flex / AIR?

I've been utilizing the command pattern in my Flex projects, with asynchronous callback routes required between: whoever instantiated a given command object and the command object, the command object and the "data access" object (i.e. someone who handles the remote procedure calls over the network to the servers) that the command objec...

Printing in Adobe AIR - Standalone PDF Generation

Is it possible to generate PDF Documents in an Adobe AIR application without resorting to a round trip web service for generating the PDF? I've looked at the initial Flex Reports on GoogleCode but it requires a round trip for generating the actual PDF. Given that AIR is supposed to be the Desktop end for RIAs is there a way to accomplis...

Linking directly to a SWF, what are the downsides?

Usually Flash and Flex applications are embedded on in HTML using either a combination of object and embed tags, or more commonly using JavaScript. However, if you link directly to a SWF file it will open in the browser window and without looking in the address bar you can't tell that it wasn't embedded in HTML with the size set to 100% ...

Is a Flex debugger included in the sdk?

I have been writing Flex applications for a few months now and luckily have not needed a full debugger as of yet, so far I have just used a few Alert boxes... Is there an available debugger that is included in the free Flex SDK? I am not using FlexBuilder (I have been using Emacs and compiling with ant). If not, how do you debug Flex a...

Building Flex projects in ant/nant

We have a recurring problem at my company with build breaks in our Flex projects. The problem primarily occurs because the build that the developers do on their local machines is fundamentally different from the build that occurs on the build machine. The devs are building the projects using FlexBuilder/eclipse and the build machine is u...

What is Adobe Flex? Is it just Flash II?

Question Alright, I'm confused by all the buzzwords and press release bingo going on. What is the relationship between flash and flex: Replace flash (not really compatible) Enhance flash The next version of flash but still basically compatible Separate technology altogether ??? If I'm starting out in Flash now, should I just skip to...

How can I tab accross a ButtonBar component in Flex?

I have a button bar inf flex along with several other input controls, I have set the tabIndex property for each control and all goes well until I tab to the ButtonBar. The ButtonBar has 3 buttons but tabbing to it, only the first button gets focus, tab again and the focus goes back to the top control... How can I make tabbing go throu...