flex

Flex 3: scrolling of list items with in a list via scroll wheel

Here is a snip from within my code: <mx:Panel id="recPanel" title="I have the following helpful recommendations for you:" verticalScrollPolicy="off" width="100%" height="180"> <mx:List dataProvider="{recommendations}" wordWrap="true" variableRowHeight="true" verticalScrollPolicy="auto" width="100%" height="100%" /> </mx:Panel> The...

Mixing Flash and Flex-compiled ActionScript code through a runtime shared library

Hello, we are two people working on a Flash application. I work on some ActionScript 3 code, which I compile to a .swc file using the Flex SDK on Linux. My colleague uses the file as a library for his .fla file in the Flash IDE, uses my code in his scripts, creates MovieClip and Sound objects with the classes it provides, and builds the...

Flex unable to see mask

I have two sprites, the first is the mask and the second on is going to be masked by the first. Right now I can see the second sprite that is masked, but not the first that is doing the masking. Is there a way to show the sprite that is doing the mask? ...

Codeigniter and SWFObject

Hello, I'm building a website using Flex, Codeigniter, and I use swfobject to embed the swf. This will not work if I access the website using Codeigniter's index.php file. This is the ouput source: <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <base href="http://localhost/Pixelatte-debu...

HttpService question

Hi, I'm a flex noob and I have a few doubts regarding the Httpservice class, Can I use it to fetch data from a file that resides in my own server or can I use it to download any url like external sites like google or stackoverflow (even ones without an api)? Does httpservice behave differently based on whether it is an desktop app or...

Flex: Why does setting scaleX/Y in mxml effect the components size but setting it in actionscript does not?

Hi, I'm playing around with the scaleX/Y in the canvas tag and have noticed some strange behaviour. When I set scale in in mxml the width and height of the canvas are adjusted accordingly. For example if I have a canvas like this: <mx:Canvas width="1000" height="1000" scaleX="0.1" scaleY="0.1" /> The canvas now appears on screen to ...

debugging flash authored content with the flex debugger

I am working with a project that is developed in the flash environment, but I love the flex/eclipse debugger in that i can throw a breakpoint in and inspect the vars that are present. Is there a way that I can debug flash in the flex environment? I have (of course) googled the subject and found that there are several posts on the topic ...

Help with understanding usage of Value Objects in Flex

Hello! I have some small problem in understanding Value Objects in Flex... I'm trying to get some data from PHP/MySQL and send it to Flex but I'm stuck in some (obviously) basic problems... Let's say That my object in Flex would look like this: package some.package.VO { [RemoteClass(alias="VOPerson")] [Bindable] public...

Giving a Flex application the focus in browser to capture keystrokes

I've written a little video game in Flex that runs in a browser. The player moves by pushing the arrow buttons on the keyboard, so I need to capture those keystrokes. In fact, the game action starts when the player presses one of those keys. In order to capture the keystrokes, the Flash/Flex application, not just the browser, needs to...

getting Deep into Flex

The better you understand what you are doing, the better you will do it. I want to get Deep into Flex . I did some simple Event-Handling and The better you understand what you are doing, the better you will do it. But i have i big question: What does the Compiler do ?! What happens with the MXML file ? lets say we have a simple...

How to know if a TextInput component is active in Flex

Imagine I have two TextInput components. How do I know which one is active, if any? Is there an event or a property that tells me that? ...

Http DataInfo used with resultHandler ...

Hi there, I use this resultHandler and instead of using my data with four(4) separate field I would like to use the following code in one field. and as a one line read out? E.g (title + "." +firstName + " " + middleName + " " + last Name) = (Mr. Harald E. W. Buttweiser). I get it with static Xml e.g. models but cant find the right way ...

AS3: Event dispatching via dispatchEvent- pass params?

Hi there, I would like to dispatch an event from my class along with a url. I know that I can do the following: import flash.events.EventDispatcher; private function thumbClick(e:MouseEvent):void { dispatchEvent(new Event("clicked")); } But I don't know how I would send params along with the event...? Also, in my main app runne...

AS3: Loading bytes from multiple sources

Hello, I am loading multiple images into a class instance and I would like to keep track of how large the complete amount of loaded data is at any given point. I have grabbed the totalbytes from my directory of images via a PHP script... but collecting the new bytes from the ProgressEvent on each image seems tricky for some reason. Let'...

How do I dispatch custom events from a created class?

I have an <mx:Application> which contains a <mx:Module>. This module has several child modules. It also has some an instance of a class I have created. I am trying to have a method of this class dispatch an event that can be "heard" by the module and handled. This isn't happening. Any ideas? To be more clear, I am using 'dispatchEvent...

How can I send typed object from FMS to client.

I have following object in the FMS User = function(userName,userId) { this.userName = userName; this.userId = userId; } I need to send the list of user to the client swf. Once I initialized the User object collection to an array, array element is undefined when I read it from the client. However I can’t send the generic object too...

What is the benefit of using Flex?

Since Flex generates Actionscript. Why not use Actionscript at all ?! sorry, i'm just curious . ...

AS3: removing objects by array item reference

Hi there, I am trying to add some Sprite objects as the contents of an array, and I would like to be able to "clear" them from the stage. I would assume that if there are loaders involved, I need to do _imgArray[i].close(); _imgArray[i].unload(); And if I am using a sprite, I can do: removeChild(_imgArray[i]); None of the above ...

Flex hierarchical data - advanced data grid - unable to delete and change to leaf

Folks, When all the children are gone the folder icon does not change. If I walk the collection and then force the children = null, then the folder changes to a sheet (leaf) icon, as you would expect by looking at the HierachicalCollection class. However when I go to add a new leaf to the summary folder the folder reappears and the down...

Date/Time conversion problems from Rails to Flex?

I am getting the following error: TypeError: Error #1034: Type Coercion failed: cannot convert "2010-01-02 23:28:17 UTC" to Date. I am using WebORB to transfer data between Rails and Flex. The data coming from Rails is of type: 'ActiveSupport::TimeWithZone'. I am trying to assign it to a Flex 'Date' data type. What am I missing? ...