flex

Video and Images with Flex 4 on CD-ROM

I am working on a project where we have created an interface using Flex (started with 3, moved to 4 to get access to the included video player component) that has a video and photo gallery. Everything has been going great except I am running into issues when running on Mac. For some reason the videos play but the images do not show. T...

Extending Array in Actionscript 3 (Flex)

I'm trying to make a variation on Array for a very specific purpose. When I have the following: public class TileArray extends Array { // Intentionally empty - I get the error regardless } Why can't I do this? var tl:TileArray = [1,2,3]; despite the fact that I can do this var ar:Array = [1,2,3]; The error I receive is this: ...

what is a good book to start learning Flex 4 and Actionscript 3

I am new to Flex programming. I am an experienced J2EE developer and have done a fair bit of RIA programming using non-Adobe technologies.. Can you please suggest one or two good books which cover Flex 4 and AS3 programming in depth. PS: I am not looking for beginner level books, I need an intermediate to advanced Flex programming bibl...

Flash Components in Flex

Hi, I'm getting the error "could not resolve <local:flashactionscript> to a component implementation".... This is my mxml code.... <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:local="com.*"> <local:flashactionscript x="400" y="400"/> can anybody help me ? ...

save screenshot image to file in Flex 4

I need the user of my Flex application to be able to save a snapshot of part of the UI to a local jpg file. I got the screenshot part down - can generate an image out of any given control. However, the only way I see to let the user save the image locally is to send to my server which would return it with the appropriate Content-Disposit...

comparison of two dates

hi, how to compare values of 2 dates using actionscript i executed this code in my program.. var time1:Date = new Date(Number(fromDate.substr(0,4)),Number(fromDate.substring(5,7))-1, Number(fromDate.substring(8,10))); var time2:Date = new Date(Number(toDate.substr(0,4)),Number(toDate.substring(5,7))-1, Number(toDate.substring(8,10)))...

Flex ignores changes in services-config.xml

Yesterday I spent half of day trying to force Flex Remoting to use HTTPS with no success. Today I tried to connect to other domain. I changed url of endpoint, but it looks like flex just ignores my changes. I am sure that an old url doesn't exist in any file in src directory, I even renamed services-config.xml to services-config2.xml, c...

error: Attempt to access a dead clipboard

Hello, Can anybody tell me what can be the cause of this error or where can I find out more about this error? event.preventDefault(); try{ var itemsVector:Vector.<Object> = event.dragSource.dataForFormat('itemsByIndex') as Vector.<Object>; } catch(errObject:Error) { trace(errObject.message); } I...

Is there new line constant in actionscript or flex

I want to add a newline to a string text and I was wondering if there is a newline constant in actionscript 3? For example in .net there is an Environment.NewLine that is a string, containing "\r\n" for non-Unix platforms, or a string containing "\n" for Unix platforms. ...

File size limit for upload in Adobe Air

Hi I am building an Adobe AIR app and integrated an FTP client for file transfers. But I found out that maximum file upload size is 100 MB. I need to transfer bigger files. Any suggestions or workarounds? ...

how to change the data of line chart on datagrid itemclick in FLEX

I have created a line chart and another datagrid.based on dataitem clicked nthe chart should be changed. For example I have datagrid for stocks with 3 stocks GOOGL,Yahoo and ADBE .On clicking upon the GOOGL the google data should be loaded in to line chart. Please help me...!!!! ...

Capture webcam images always at max resolution !

Is there a way to know the max resolution of a webcam ? I need to capture images from webcam and send its on another notebook throught internet. So I want to capture images at max resolution indipendently from webcam automatically without setting the resolution every time ( if I have a webcam with 1.3 MPixel, I want to capture images at...

How to link against SWC when source is in project?

I would like to compile my view classes into an SWC from flash, and compile the rest of the application using mxmlc (avoiding recompiling through the IDE). However, because the view classes (source) are in the project class path, mxmlc gives them precedence over the compiled SWC. Now I'm thinking that maybe the view classes have to be s...

Flext text link event doesn't fire until you've clicked it twice

Hi, I've got a canvas within which I have a list. The renderer for this list calls upon a "Text" field, with the "link" element of this field set to a function. The "htmlText" of the field is set dynamically to a mixture of words and links. Basically the function checks to see which tag within the htmlText has been clicked and perfor...

flex 4: while in a vgroup, how can i add a moveable element that won't be part of the vgroup?

Hiya. I created several components that are placed inside a VGroup. in one of the components code, i want to add an image and to move it. i don't want the image to be part of the vgroup and to be bound to the vgroup area, i want it to be like float in css. how can I do that? update I want to be able to move the element in the entire a...

[Flex]Static XML files are not exported when, building the Project

I am doing a video library. Each category has it's own XML files that feeds it data. Everything works great. However, when I Exported the Release Build. I noticed those XML files are gone(i.e. never got exported). I don't understand why. I need the video library to be dynamic so I can add or remove videos. Anyone know why those files a...

How do I programmatically scroll to the bottom of a mx:TextArea in Flex?

Consider the following mx:TextArea .. <mx:TextArea id="textArea"/> .. periodically being updated with new lines of text using .. textArea.text += newLineBeingAdded + "\n"; .. how do I make sure the textarea is scrolled down to the bottom so that the last line added is visible to the user? ...

How to scale my stratus application ?

Stratus is currently in beta ! So, if I create a simple app with stratus tecnology and I get millions of users, then how can I scale the application ? How chatroulette have resolved the scaling issue ? ...

.NET webservice in Flex MVC

I am working on a flex application which makes calls to an .NET webservice. I am trying to follow the MVC design pattern. I have created a model, which stores all information received from the webservice. The webservice itself is created by actionscript in the controller. The view in my case, consists of various user-defined components (...

Flex 4, packages and classes

Hi, can someone help me understand this because it's working in as3 but not so much in flex and I really can't seem to get my head around it. I can get it working by changing my function to static but I don't want to do this. Ok so first I've created a package package testPackage { public class TestClass { public function TestClass...