flex

hideEffect not triggered when component visible property set false programmatically

In Flex I've got a component, which is based on a Canvas. It looks like this (I removed the <mx:Script> for better reading): <mx:Canvas verticalScrollPolicy="off" showEffect="showFX" hideEffect="hideFX" horizontalScrollPolicy="off" creationComplete="doComplete()" xmlns:mx="http://www.adobe.com/2006/mxml" width="63" height="63"> <mx:F...

Is it possible to display Flash movies inside a Flex application and interact with them?

Since I've never done this and the google results are quite random, I ask here: Is it possible to display Flash movies inside a Flex application and interact with them? The scenario is as follows: I'm developing a new application in flex Another, already completed application is given to me as SWF (or perhaps SWC, don't know any detai...

How to make a small flash swf with ComboBox in Actionscript 3?

I have a pure Actionscript 3 project, using flash.* libraries, compiles down to about 6k (using mxmlc). Program handles about 1k shapes, a few sprites, a sockets connection, works great (tastes less filling). Now, how would I add a ComboBox control without incurring excessive bloat? More specificially, I would like to keep the size und...

How to detect memory leaks in Flash?

How do you know if your compiled SWF file has a memory leak? Are there tools, a firebug setting, etc... to see if there is a problem? I cannot find much in the debug Flash player besides file size and loading time. I have a large Flash application that I maintain and suspect that is using way too much memory so I wanted to measure the ...

Is there a way to allow paste from the clipboard using Shift-Insert on top of CTRL-V?

I know that you can use the context menu using a right-mouse-click in a control to choose to cut, copy, paste, etc. I've also noticed that you can use the windows keyboard shortcuts CTRL-C for Copy and CTRL-V for Paste. Windows supports native CTRL-Insert (for copy) and SHIFT-Insert (for paste). However, within Flex, it seems these do...

Intercept service method calls using metaprogramming in groovy/grails

Hi, I have a several Grails services that are invoked from Flex code using Spring BlazeDS integration. I wanted to add some general debug logging using the groovy metaClass. I have the following in a bootstrap class: class MyBootStrap { def grailsApplication def init = { servletContext -> initServiceCallLogging() } def destr...

Flex ComboBox user choice reset

To be more descriptive here's a live example: http://interklub.biz/CTPonLine.html In last column there's a ComboBox with some values. When user choose an option in ComboBox from first row and then scroll down the first choice disapears (comes back to default state). There's something more strange, earlier I've tried to apply a one more ...

Flex Builder Debugger doesn't display local variables

Hi all, I am using the Flex Builder 3 debugger almost every day and it's starting to be a real pain that the 'Variables' tab in the 'Flex Debugging' view doesn't show local variables, only 'this' is displayed. Also I can not add Watch Expressions for local variables. Am I forgetting something here or is the debugger just very limited...

Flex 4 dynamically resize parent container to contain children

Is there an easy way to make a parent container (eg Group) resize when it's children resize? Below is a little example app. When I put the 200x200 'food' in the 'stomach' the stomach & it's containing 100x100 'body' should resize to contain the food. Any ideas? (from this gist http://gist.github.com/301292) <?xml version="1.0" encodi...

Strange Flex Sizing in IE on Server2003

I have a modified version of a flex calendar found Here, and though it looks alright on most computers I've seen, there is a problem on two of the three servers here. Because of the way Citrix is setup here, I need to have it functional on all of the servers. When it loads, everything is stretched out vertically, and the numbers are mi...

Programmatically detecting between Adobe Air and Adobe Flex in ActionScript 3.0

I have some shared code between an Adobe AIR App and an Adobe Flex App. On one line of this code, the program must behave differently depending on if it is running within the Air runtime, or the Flex runtime. How can I programmatically detect the difference? ...

Displaying Query data in a TextInput Field in Flex?

I'm trying to display query data into multiple TextInput Fields in Flex. <mx:TextInput id="stagInput" text="{acContacts}" width="170" x="120" y="74"/> This is what I'm trying but all that displays is [object Object] I think I need to define the database field I'm wanting to display, but I'm unsure how to do this as TextInput fields d...

Flex: How to have a sorted column in datagrid for days (Mon, Tue, Wed)?

Hi guys, I have a column in a data grid that has the values of "Monday", "Tuesday" etc, as varchars, and I wanted to know, how do i sort the column to be in the correct order. Doing a normal sort doesnt work obviously, as the days are not alphabetically ordered naturally (Wed after Thurs). I am assuming some sort of itemrenderer, but any...

how we add row /Remove row effect in datagrid

how we add effect in datagrid when we add or remove any row. Thanks Atul yadav ...

flex sprite textarea textrange

in flex,I have a textarea control i like to select some text in textarea. when mouse releases then selected text will be hilighted to GREEN RECTANGLE as sprite. can anybody help ?? ...

Resolution problem in Flex

Hi, I had developed the flex application with panel container. And i have a requirement like, if i change the resolution of the computer, all the panel's in my applcition are auto setted to particular resolution by defaultly. but it should not happened like this.If resolution changed, the scrollBar comes into the picture for panel. Fo...

how to make titleBar of Flash mx.containers.Panel invisible?

in FlashBuilder 4 beta 2, I've subclassed mx.containers.Panel, adding a public method to hide the titleBar: public function hideTitleBar(): void { if (null != this.titleBar){ this.titleBar.visible=false; } } I step through the code and see that the method is being invoked and that titleBar exis...

can not access MovieClip properties in flashDevelop

I know there is something I am doing wrong. In my controls I have keydown events that control my hero. As of right now, I am trying to rotate my hero but he refuses to turn . Below is my Hero Class, my control class, and gameobject class. pretty much all the classes associate with the controls class. package com.Objects { import c...

What are the bugs and their workarounds in Flash Player?

It seems allot of questions for Flash/Flex are related to bugs in the Flash Player. What are some of the bugs and what is the workaround. It would be nice to compile a list of known bugs and common workarounds. Example: In Flash Player 10 the DoubleClick event does not trigger in Firefox. The workaround is to avoid using the DoubleClick...

Get dimension of locally loaded large image

I'm trying to read the width and height of a locally loaded image. This seems to work for images that do not exceed the dimensions limited by the Flash Player 10 (http://kb2.adobe.com/cps/496/cpsid_49662.html), but as soon as the images are bigger, the width and height remain 0. The strange thing is that now and then, I can read the dime...