flex

How do I draw text in an ActionScript 3 sprite?

I have some sprites that the users can manipulate, drag around and resize. Now I'd like to be able to display text in those sprites. I've tried lots of, probably stupid, ways. Like inheriting from Label and adding a Label child to the sprite, but no text shows up. One disturbing thing: Inheriting from Label I get the text to show up if...

Show url on link hover in AIR HTML control

Does anyone know if there is a simple way of catching the hovered link url in an AIR HTML control? Just like in a browser, I would like the url to be displayed in a status bar but I can't find any event that is raised on rollover of a link. Do you I need to inspect and perhaps manipulate the DOM myself for that? ...

With the Adobe Flex SDK 3.0 (most recent), can you create 'charts'?

Just googling on the web, it looks like you can't. It seems you need the Flex builder. I was trying to avoid the fully GUI tool. Is there a way to bypass this? ...

Is it possible to downsample an audio stream at runtime with Flash or FMS?

I'm no expert in audio, so if any of you folks are, I'd appreciate your insights on this. My client has a handful of MP3 podcasts stored at a relatively high bit rate, and I'd like to be able to serve those files to her users at "different" bit rates depending on that user's credentials. (For example, if you're an authenticated user, y...

Image map in Flex

Anyone have an example of doing something like an image map in Flex? I'm not sure if that is the correct term, since I also want to do things like highlight the selected part of the image or show a popup bubble pointing to it. Any ideas? ...

Take string "asdxyz\n" and replace \n with the ascii value

I dont want to replace it with /u000A, do NOT want it to look like "asdxyz/u000A" I want to replace it with the actual newline CHARACTER. ...

Is it feasible to maintain a Web Application designed in Flash with Flexbuilder

I'm starting a new job Monday and part of the job description is to maintain outsourced Flash web pages that only consist of Rich UI Forms and very little animations. I don't have any experience with Flash or Flex but being a programmer the Flex IDE appears to be much more suitable to me, which brings me to my question: Can I maintain ...

Deep Binding in Flex

So I have a module in flex in which I add a custom component. I also have a class that handles the data I want to show, lets call this class DataHandler. The DataHandler receives data from the back-end solution and then starts putting the data togheter for my Module and the custom component. When the data is ready it dispatches an eve...

Flex JSon socket messaging

What is the best way to implement async json socket communication between Flex client and custom server? Is there a library that can listen to socket and fire event when complete json message/object is raceived? EDIT: I know that I can use Socket and listen to SOCKET_DATA event, but that triggers event whenever new data is received, wh...

how to get a Flex text control to word wrap

I'm creating an Adobe Flex application and I have a Text control (mx:Text), which is supposedly used when you need multiline noneditable text (as opposed to a Label, which is single line noneditable text). My text control does not wrap when I resize the browser window to be smaller than the text (or load it with the browser window alrea...

How can I load images as icons dynamically into a TileList using flex?

Ok, so I have a custom render that I have created: <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" horizontalAlign="center" verticalAlign="middle" width="100" height="100"> <mx:Script> <![CDATA[ [Bindable] private var fileLabel:String; [Bindable] private var fileIcon:Class; override publi...

How do I use FTP in Flex?

I am new in Flex Environment, specifically flex3. I've been studying it for 1 week. I have a project which I need FTP to upload and download mp3 and pictures files. What is the best way to get started? ...

Best authentication mechanism for Flex, ASP.NET and SOAP or REST web services?

I am building a web based application written in ASP.NET and Flex. One of my biggest challenges is implementing security for the application in a flexible and maintainable way. This challenge is compounded when different technologies are involved. I'll try to describe what I have below. The website is laid out as follows: /mydomain....

Free Ebook for flex

I am planning to learn Flex. Can anyone give me the link for free and good EBook for flex in pdf format. Is there any drawbacks of flex? thanks. ...

Talk to USB device and vice versa from Flex

My co-worker is challenged with taking user input in Flex and using that data to execute commands on a USB device. We figured we would need to have a socket server running on the machine in order to do this. We want to send objects with byte arrays etc, not just strings. Is there anything out there that could help us? Do we need to writ...

Using ant, does anyone know how to build a SWF made up of SWCs (that you've built) that include resource bundles?

I'm trying to write an ant build script to build my group's flex app, and I've run into some roadblocks that I'm hoping someone on SO has seen before. We have two projects that we build into SWCs and these components contain resource bundles. One SWC requires the other SWC. We have one project that we build into our application (the SWF...

Cannot get file data from the clipboard using Flex

Given: A Flex TileList with the following event: <mx:nativeDragDrop> <![CDATA[ if(event.clipboard.hasFormat(ClipboardFormats.FILE_LIST_FORMAT)) { var files:Array = event.clipboard.getData(ClipboardFormats.FILE_LIST_FORMAT) as Array; for each(var file:File in files) { // file.data is null here! } ...

Detecting GPU rendering in Flash Player 10

Apparently, in Flash 10, you can use the GPU to calculate shaders, and if the user doesn't have a compatible gpu, it falls back to the cpu. The problem is that the cpu is very slow to calculate the filters, it would be nice to detect if it can't use the gpu, and use fewer effects. Is it possible to detect using actionscript if it's using...

Flipping BitmapData horizontally in Flash 9 or 10

Asking on behalf of my coworker: We're working on a Facebook app that uses Flash 9 (and Flex, but that's not really relevant). We've got a fairly complex system of drawing an object with accessories over it, where the accessories can have arbitrary scale, rotation, and position relative to the base object. We recently started adding m...

Flex app embedding and communicating with older Flash 8 app

I currently maintain an application that's written in Flash 8 (AS2) which is used to embed and control some auto-generated SWFs. The auto-generated SWFs are also Flash 8 (actually, they work at least in 7, possibly even older), so my current app is able to directly reference variables and functions within the embedded SWF. We're now wo...