flex

as3: reloading an image

I have an image that I am attempting to load, and then reload. Here is my code for the loading of the image: public function loadImage(url:String, _w:int, _h:int):void { this._stwidth = _w; this._stheight = _h; this._imageURL = url; if(!_imageURL) { return; } ...

How to remove the gap between the bars in a bar chart

I have created a Bar chart(having total 4 bars), wherein there is a gap between these bars. Kindly let me know , how to remove this gap between the bars as there is no inbuild property available... Thanks & Regards, Narender R. ...

Howto removeEventListener with <mx:SetEventHandler /> ?

Hi there, I'm trying to remove an eventlistener on (in this specific case) a HorizontalList. The list is initialized with the property itemRollOver="playPreview(event)" I'd like to remove this eventListener by switching state and stating something like: <mx:SetEventHandler target="{horList}" name="itemRollOver" handlerFunction="nu...

1120 error by adding a var in Flex 3

On the adobe website was this code: var conn:SQLConnection = new SQLConnection(); var dbFile:File = File.applicationStorageDirectory.resolvePath("DBSample.db"); try { conn.open(dbFile); trace("the database was created successfully"); } catch (error:SQLError) { trace("Error message:", error.message); trace("De...

Building charts in Flex Builder Professional

Hi I have Flex Builder Professional Ver 3 (Built with Eclipse) version. I need to build an application with charts. The problem is that there are no charting components to be seen. There is no datavisualization.swc file in the libs folder. What could be the problem? Any ideas? Regards, Vinayak ...

Should I use Flex for a control panel site?

My company has a control panel website written in ASP.NET. We run an online service used by over 20,000 users worldwide, mostly from the US, Japan and several European countries. It is used mostly by business users. We face many problems using ASP.NET and development times are lengthy. I played around a bit with Flex and I can see why i...

Flex Profiling (Flex Builder): comparing two results

Hi Friends, I am trying to use Flex Profiler to improve the application performance (loading time, etc). I have seen the profiler results for the current desgn. I want to compare these results with a new design for the same set of data. Is there some direct way to do it? I don't know any way to save the current profiling results in histo...

Need Flex 3.0 training material?

Hi i have started to learn flex from the tutorial video's provided in the Adobe site itself, but i don't have internet access at my home. I know that there are a lot of book's on Flex ,so can any one refer some good book on Adobe Flex for beginner's. ...

Reset/reuse a Flex Progress Bar

I'm using a progress bar to let a user know how much more live streaming video data is to be buffered before it starts playing. Have that much working fine. Problem is, if the buffer gets used up, and I need to rebuffer, I can't seem to get the progress bar reset and visible again. Seems once it hits 100% on app start up it can't be r...

Flex file upload with HTTPS and JAAS ?

We're trying to upload a file from a flex client to a JEE app. In a full HTTPS environment JEE server is JBoss 5 Using BlazeDS 'Custom' authentication (username and password are entered trhough a flex form) Using BlazeDS per session authentication In regular AMF calls, we can access user principal and use role mecanism. However, in ...

1020 undefined property right after associative array defined via var

Hello, I'm really frustrated in this case. While developing with Adobe Flex, I'm working on my first application - and use pretty much actionscript. In my mxml application, I include as3 file via <mx:Script source="as/myas3file.as></mx:Script>. In myas3file.as, I include (thru include "variables.as";) file variables.as, which contai...

Please some details on the MXML tag <mx:SetEventHandler />

Can anyone give me some details on the proper use of the tag <mx:SetEventHandler /> used when switching states? The Flex documentation is not very elaborate on this subject. Especially removing event handlers has my interest. This question is a more specific formulation of my preceding post: http://stackoverflow.com/questions/1973946/ho...

Flex Multi Service call problem

I tried to call a service using a for loop and it seems that only the first service call seems to work. My guess is that once a service is called it needs to wait until result event until it can be called again. How can I workaround this? Waiting for each service to complete before querying for another is too slow. Ex. callresponder ...

Opener Window... Navigate To URL?

Ok so my main window is going to open up a popup window, the popup window is going to contain a Flex app. The flex app is going to need to navigatToURL() but also send POST data along with it. However instead of the popup-window navigating, I would like to main-window to navigate to the url and recieve the post vars. Is this possible?...

How to indicate failed authentication reason to flex client with JAAS ?

We're using : JBoss 5 Flex SDK 3.5 BlazeDS 3, with integrated authentication (through JAAS and JBossSX) Failed login are always indicated to the flex client by the same fault code : Client.Authentication However, the underlying JAAS LoginModule throws a specific javax.security.auth.login.LoginException subclass. How can we propagat...

make a protected property public

I'm trying to extend a class like panel so that I can fire click events only when the title area is clicked on. The title area is a protected uicomponent of Panel called titleBar. So I want to make that component public. It seems like I'm almost there but I'm getting a "TypeError: Error #1009: Cannot access a property or method of a nul...

Alternative Flex Compiler

Currently, as I'm sure most of you are aware, the Flex (EDIT: Flex 3) compiler is extraordinarily slow. It does however have an API. My question is: are there alternative (possibly C/C++ based) compilers that are faster than the current Adobe one? I realize compilers aren't something you can pump out in a few days, but if no alternat...

Make sure Flex components are loaded at the beginning

How can I make sure all the components, even those that are not going to be visible at the beginning, load right away when I start my application? I have an application with a ViewStack whose visible child is set via a sidebar menu. Say the ViewStack has two children, A and B. A is initially visible, whereas B is not. How can I make su...

Flex Changing DataGrid Highlight Color

Hello How can i change the color, when the user mouse over an item on datagrid or tilelist. Basically once the user mouse overs and once the user selects a file. How to change the default color to something else. The default is blue and i dont like it :) Thanks. ...

Flex Panel not being updated

I am drawing a cellular automaton simulation on a Flex Canvas. I alternate computing the state of the automaton with updating the graphics on the Panel. However, the updating of the Panel does not seem to be "keeping up" with the update of the CA state. I'm wondering whether I am doing something wrong with my handling of the graphics ...