flex

Content coordinates updated to late after scroll event.

Hi. I've got a bit of a problem with functionality that I want to achieve. In my application I have Canvas container with verticalScrollPolicy set to on. Inside the Canvas I have multiple components that user can drag within the Canvas boundaries. When user clicks on any component, it gets selected and semi-transparent box appears behin...

Flex/AIR layout for presentation tool (resize logic, aspect ratios etc.)

I'm developing a presentation tool for AIR (to be used together with, or as a replacement to, PowerPoint) but I'm quite a newcomer to flex layouting. As you can see from the image, the presenter can open various apps from the main window. Each of these apps open up in new windows which have different visual characteristics; some use the...

Datagrid is not getting refreshed in flex

Hi All, I am using same datagrid to display two different sets of data based on user selection. The problem is data grid is not getting refreshed automatically when i edit data. I guess the problem is because of ItemRenderer or Item Editor. I am using LabelRendere extended from Label but doesn't override set data. Is it necessary...

Flex dragmanager tween speed

Is there a way to control the speed that the dragedobject is tweened back to its original place when dropping it in an illegal drop zone ? (using flex DragManager class) Thanks ...

Barchart wth Annotations in Flex

Hi, I had developed BarCharts with annotations. Each bar is a one bar chart(displaying in attached jpeg). But i need total in one barchart with 4 bar series and annotations like a black line displaying in the middle (like,as shown in attached jpeg ) Please refer the below link. http://img256.imageshack.us/img256/4872/chartsc.jpg Data i...

Building Flex with Nant?

I'm wondering if I'm barking up the wrong tree here. Is it possible to replace an Ant build script used for building Flex projects with a Nant build script? Specifically, it doesn't seem like there are any replacements for the Ant <mxmlc>, <macrodef> and <taskdef> tasks provided with Nant or Nant-contrib. I'm not too experienced in ei...

Generate Flex project files using Maven

I've got a Java/Flex project that I'm building using Maven. After doing some research I'm using the Flexmojos project (http://flexmojos.sonatype.org/) for the Flex part, and almost everything seems to work fine so far (after a bit of struggling). I'm using version 4.0-alpha-5 (4.0-SNAPSHOT didn't seem to work for me). The Flex projects ...

Flex 4 scroll is wrong when changing scaleX and scaleY

When I zoom in with scaleX and scaleY, the scrollbar (of the object container) ignores the top of my scaled object and the left of my scaled objekt. It's seems like its going outside the container with negative values on x and y and therefore the container does'nt "see" that it's more to scroll. I've tried to change x and y after the s...

Using Flash components into Flex application

What is the right way for integrating a Flash component into a Flex application? I heard that there are different ways of integration between Flash and Flex: using SWF, using SWC (something else?). What are theirs pros and cons? What are the points of communication between them Flash and Flex? I'm using Flash Builder 4 for developing ...

Loop insert to database flex

I have a Java function to insert values into two tables synchronously: product(productname,productdesc) productDetails(productprice) How can I insert multiple records to productprice in the productDetails table ? Thanks [Bindable] private var collection:ArrayCollection = new ArrayCollection([{productprice:'1'},{productprice:'2'}])...

destroy open item editor or item renderer in flex

Is it possible to destroy/close open item editor or item renderer of a datagrid in different mxml page? I heard about the functions editedItemRenderer and destroyItemEditor on Datagrid. Can I use these functions in different mxml page? ...

Flex 4: Nested components - Bad design?

Is it bad practice/design to nest components inside components using Flex 4? Should I simply be creating components and inserting them into my main application as below, or doesn't it matter? <com:MyComp1> <com:MyComp2> <com:MyComp3> <s:Label text="This is a test."/> </com:MyComp3> </com:MyComp2> </co...

Adobe Flex static analysis tool

Can anyone recommend a static analysis/code complexity/code metrics tool for Adobe Flex (MXML and Actionscript)? Something like Sonar or Clover? ...

AS3 Video Encoding at runtime with high compression (H.264?)

I need to compress video image data (lets say a display object) in AS3 to a Byte Array with high compression at runtime. Framerate only needs to be around 5 but 1024x768 video needs to go to < 40 Kilobyte per Second without the quality beeing tooo bad. I wrote a custom encoder and got it to around 80-100 Kilobyte per Second for 1024*768 ...

Intercepting Ctrl + F4 keystrokes in a Flex application running in IE

Hello, Some of my Flash application components require to intercept Ctrl + F4 keyboard events. Unfortunately, the KeyboardEvent is not caught when running the app under IE since it is conflicting with the IE native shortcut (closing the active tab). Is there a way (ideally relying on Flash principles) to intercept such keystrokes ? Th...

2D Canvas in Browser

Hi, I'm looking for a framework or library to use the browser as a 2D "drawing" tool. Acctually drawing is not the right word. It should be a adding, removing and moving around of 2D objects and images on a canvas. The objects should be graphically connectable. So - kind a visio in a browser I guess it's a bit to much for a javascrip...

Flex AMF Remoting request functions timing problem

Hi there, atm i'm trying to create a AMF request to a rails backend. I allready successfuly implemented the AMF communication, but i still got some problems with the custom functions i'm using. I created a function to request the server if a property in my SQL DB exists, the server return a boolean. In my flexapp the function looks lik...

How to transfer the NativeApplication instance to another NativeWindow

Not sure if my title accurately describes what I'm trying to do, but basically I've created a new NativeWindow as follows (using an example from the Adobe NativeWindow documentation http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/NativeWindow.html?filter_flex=4.1&amp;filter_flashplayer=10.1&amp;filter_air...

How do you declare component states in ActionScript?

In mxml you declare states like this: <box:states> <s:State name="active"/> <s:State name="disabled"/> </box:states> How do you acheive the same in an ActionScript class? Apparently it's the same in Flex 3 and Flex 4, whatever it is. ...

How To implement MJPEG-viewing flowplayer plugin?

This is a question about implementing a Flash plugin for FlowPlayer, allowing viewing of an MJPEG stream within the content area of the video widget. I'm tasked with designing and implementing an MJPEG-viewing plugin for flowplayer. If you have the requisite knowledge to answer these four questions, I'll be extremely grateful for any he...