flex

ctrl button sometimes block KEY_UP event for 'c' key

Try the following code: myListener = new Object(); myListener.onKeyUp = function() { if (Key.isDown(Key.CONTROL) && Key.getCode() == 67) { //Ctrl+C trace("Ctrl+C key down!"); } }; Key.addListener(myListener); hold ctrl key and start pressing 'c'. From some point you will notice that there is no KEY_UP event fo...

How to retrieve the sum of items from a sharepoint list

Is there any way to get the sum of items based on some filters from sharepoint list? I was trying to access the GetListItems method. But this returns all the items in the list. That makes the data heavy. My requirement is to get only the sum of items. For example items created in a specific year. I am trying to populate a chart in fle...

Setting up dynamic images and event handlers for each in Flash Builder

How can I add a set of dynamic images and then add event handlers to each that trigger a different event? My scenario is that I have a remote service that grabs a set of data (ArrayCollection) that has a className, classID and classDescription. I would like the images to have event handlers that trigger a new panel display that would s...

Flex 3.5 Validator Error Message Repeats

Anybody have any idea why the error message repeats in Flex SDK 3.5 (but not in 3.4) and have a good way to make it stop repeating? See screenshots: You can also see the different apps here: http://www.flexdevelopers.com/examples/validator/3.4/Tester.html http://www.flexdevelopers.com/examples/validator/3.5/Tester.html [View sour...

Flex: rotating buttons and changing focus

Hi, I've got a problem with rotated buttons in Flex. They seem to contaminate other components' focus rectangles. Take the following source code, which couldn't be much simpler: <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:VBox width="100%" height="...

Trying to send BitmapAsset thorough socket with writeObject()/readObject()

import flash.net.registerClassAlias; import flash.utils.ByteArray; import mx.core.BitmapAsset; [RemoteClass] public class ImageSocketMessage extends SocketMessage { public function ImageSocketMessage() { } public var bitmapAsset:BitmapAsset; public var firstName:String; public var lastnName:Strin...

Flex-IFrame Comm Test Not Working

I'm trying to get the IFrameCommTest example (from the Flex-IFrame site) to work in Flex 4, and, while the IFrame itself works, the communication does not. In particular, I need to get the included HTML page to call functions from the flex app (I already have a way to get the Flex app to talk to the HTML). I've exported the project to...

Adobe AIR NativeProcess - UAC problems when trying to run update installers.

Hi, I'm Adam. I'm trying to use Adobe AIR 2's NativeProcess API to emulate the ApplicationUpdater but I'm encountering problems when I try to run the downloaded AppUpdater.exe file on computers with UAC (User Account Control) enabled. When run without UAC enabled, the AppUpdater opens as usual and displays the standard Adobe replace di...

How to reset the Flex HTML control's history

I am using the flex HTML component and I would like to clear the history of the control when it is taken off screen, so that when it comes back on again the history is reset. The only thing I can think of at the moment is to set the HTML control to a new HTML control, although this is a bit of a pain. Thanks ...

Flex can't cast an Object to MyType despite the debugger indicating the object is MyType.

I make a remote call to a method defined on my Java back end (using BlazeDS). This method returns a MyType object. On the Flex side the return value is of course wrapped inside a ResultEvent object and stored as an Object. The debugger clearly shows that the ResultEvent contains a MyType in its result field. So naturally you'd expect tha...

XML Parsing error in Flex

Hello Experts, I am passing a XML document form the Java to Flex using Remote Object. My XML is as follows " <root <dept ID="1" Name="RND" <Emp ID="1" Name="Aj"/> </dept> <dept ID="2" Name="ENG"> <Emp ID="1" Name="Aj"/> </dept> <dept ID="3" Name="MECH"> <Emp ID="1" Name="Aj"/> </dept> </root> " In Flex i am trying to access ...

Flex LinkButton selectable

Is it possible to make a LinkButton selectable? That is, the text from the LinkButton can be selected and then copied. LinkButton does not have the selectable property. ...

Flex / Parsley - Internal class quirk with compile mode.

This is a puzzler. Relevant Environment: Flex app, running parsley, which gets built by ant. Problem class: package com.foo.bar { public class ProblemClass { // constructor public ProblemClass(enforcer:Enforcer) {} public static function build():ProblemClass { // Do some setup ret...

Handling raw PDF source in ActionScript

I am using the JODConverter web service to convert an ODT-document to a PDF-file. I have some working Ruby code, that will load up the ODT-file and convert it using the web service. The resulting PDF-file is then returned to me and I can easily save it. When I try to do the same thing in ActionScript, I seem to be facing some issues wit...

Return anonymous getter function in Flex / Actionscript?

Getter functions allow obj.meth syntax instead of obj.meth(), I'd like to create an anonymous one of these to return from another function. function get ():Object { } is invalid syntax. I don't suppose Flex offers an easy way to get this functionality, if it's even possible? ...

AS3: Detect Read-Only Properties

I have a simple AS3 class that just holds private variables. Each private variable has a getter function, but not all of them have setter functions. At runtime, Is there a way of telling which properties do not have setters but are read-only? Then I can decide to give the user an input field to edit the properties that have setters. ...

Flex 4 How to create an Encrypted SQLite Database

Hello! How can I create and use an encrypted SQLite database for an AIR application, please? Thank you. ...

is it possible to record video in Flex without streaming to a server

I want to give my users the ability to record a video from WebCam (maximum 60 seconds) so the file should be big with proper quality settings. Do you know of a way to record it in memory (as Flash running in browser can't access file System) and then send it to server to save the file? I have build a functionality to capture a photo ...

alert dialog not showing the text in flex 4

Hi, I am using Flex 4 and running into some problems displaying a simple alert box. The alert box shows up, but the text seems to be the same color as the background. I know the text is there because if I mouse over in the alert box window to roughly where the text would be, I can see the cursor change. And when I double click and copy-...

What encoding is used for Adobe Flex profiling information?

I've been using the Flex memory profiler on a reasonably large application, and the Loitering objects and Object References panes are quite slow. The speed isn't helped by all the circular references being displayed -- I'd really like to be able to restrict the visible references to those which aren't circular. Is the format of the fil...