flex3

what is minimum flash player revision working with FLEX 3

My page has currently this set up - what is minimum REVISION I can configure here: // Major version of Flash required var requiredMajorVersion = 9; // Minor version of Flash required var requiredMinorVersion = 0; // Minor version of Flash required var requiredRevision = 124; For example my MacOSX ibook machine does not start this page...

Security in Flex – is it possible to manipulate downloaded code and execute web service

I am designing the application in Flex that connects to some web services to perform some financial transactions. Web services are secured using https protocol and are asking for user token created at login on each request. This is used to authenticate and authorize the user. So far so good. The trick part is that not all of our web se...

How to stop Flex / AIR XOR-ing a fill?

If you try the following code: g.beginFill(0xFF0000); g.drawRect(0, 0, 50, 50); g.drawRect(25, 25, 50, 50); g.endFill(); You would think that it would draw 2 overlapping red squares. However, it doesn't - it draws two red squares except for the overlapping area which is now completely transparent. Any idea how to get around this? Po...

How to deselect a flex datagrid row by clicking on it?

I have a question for a simple thing that there doesn't seem to be a simple solution to. I have a datagrid, and the rows should be deselected if it's clicked on and already selected. How to do that? I'm looking at the different "item"-events but the row is already selected when they are dispatched, so there is no way to tell if it was a...

reading simple INI file with AS3

What AS3 class should I use to read a simple property/ini file into memory to configure some settings such as colors easily for the project. format could be key=value <newline> I like to access it with this kind of API: trace ( Settings.get("key") ) ...

How to Connect Flex to HTTP

I have created a project in Flex Builder 3 and I do not think it is connecting to the HTTP I have assigned. It is a blog application, that is connected to a database with a PHP page. When I view the application on a HTML page, the text fields are not editable--you cannot type in them. This leads me to believe that I have assigned the ...

Flex referring Image from swc

how to refer an image in flex that have been included in the swc file ? ...

Reposition Air NativeWindow when Maximized?

Hi - How can I set the native window position when maximized? I've tried repositioning it upon the DISPLAY_STATE_CHANGE event which sort of works - but the window flashes at maximized size before repositioning, and more importantly the 'maximize' button of the window is still active. What I'm trying to achieve is simply a fixed width w...

Serialize Flex Objects to Save/Restore Application State

Is it possible to serialize a hierarchy of objects in Flex, send the binary data to a URL for storage/retrieval on/from a server, and deserialize the data to restore the objects' original state? I know it's possible to convert the objects into an XML format (haven't tried it yet), but I'm hoping to avoid parsing XML and rebuilding the o...

Why is object returned from getDefinitionByName()?

In Actionscript 3, why does getDefinitionByName() return an Object when the docs say: Returns a reference to the class object of the class specified by the name parameter. Based on that, I would conclude that the returned object should be Class instead of Object. Can someone enlighten me why that is not the case? ...

is there conversion function for color values between #FFFFFF <-> 0xFFFFFF

is there a conversion function for color values between "#FFFFFF" <-> 0xFFFFFF I like to read a value from String and convert it to hex number ...

Font anti-aliasing not appearing in some computers(win)

I have tested my flash game and the fonts are not anti-aliased in all machines (windows). Is there a way to force FLASH to antialiase always? ...

Flex 3 and flash plugin error

Hi guys, I have built a flex 3 application using Flex Builder. I am then embedding it in a portal application but having problems with installing the Flash Player When i load up my application in Firefox or IE6 (without Flash installed) i get a message where my flex app should be, ("Additional plugins are required to display all the m...

TextField gets FocusEvent type="focusIn" even when its not true

It seems that my TextField() gets "FocusEvent type=focusIn" even when there is no real keyboard focus (cursor not blinking) I am calling "stage.focus = mytextfield;" in main constructor and it seem to cause it: However, there is no focus in the whole flash application yet unless I click the flash area, focusIN event appears while the f...

Flex 3: Top align Image and Label

Hi there, In Adobe Flex 3, I have an HBox containing an Image and a Label: <mx:HBox width="240" verticalAlign="top" horizontalGap="8"> <mx:Image width="46" source="@Embed(source='/assets/blah.swf')"/> <mx:Label text="Blah."/> </mx:HBox> My Goal is to align the top edge of the Image and the top edge of the Label (the top of ca...

How-to disable right mouse click for Adobe Flex WebApp

Say, I've an Adobe Flex 3.0 WebUI App. I'd like to limit the user only to those operations that I programmed myself. As such, I'd like to disable right mouse click. Is it at all possible? If so, how can this be done? Thanks in advance. ...

What is the best way to put a Flex3 project under source control (subversion)

Setting up Flex project for group development can be a bit tricky. There are lots of little local settings that might need to be tweaked in order to have a project that can be easily checked out. I've had limited success using the built-in import/export flex project utilities. I seem to wind up editing by hand a lot and I think I migh...

How do you get the top-right corner of an image in Flex

I want to get the top-right corner of an image in flex .... so far i can just get the x and y which are top-left by default .... sorry im a noob and if this is a dumb question ...

Flex equivalent of Google Visualization Geomap (choropleth map) ?

The Google Visualization Geomap component is a choropleth map of continents, countries and regions, with colors and values assigned to specific regions. Although it is rendered with Flash, it can only be accessed and customized via JavaScript or GWT API. Does anyone know an alternative Flash/Flex component that I could easily embed into...

Fastest way to delete one entry from the middle of Array()

What is the fastest way to delete one specific entry from the middle of Array() Array is large one having Strings. I dont want just to set Array[5] = null, but instead array size should be reduced by one and array[5] should have content of array[6] etc. ...