flex

styling a datagrid in flex

I am attempting to style the headers in a flex datagrid and I keep getting the warning: "Type DataGrid in CSS selector 'DataGrid' must be qualified with a namespace" What does this mean? I have gone through a bunch of tutorials and none of them have worked. It seems like changing a the colors in a datagrid should be relatively simple....

Sending Character Zero "\0" Over Binary Socket In Flex

This code doesn't send the trailing null byte. How do I send the trailing null? Socket.writeUTFBytes('Hello World'); Socket.flush(); Thanks in advance. :) ...

how can move the child only inside the parent?

Recently I worked in a project using Flex. Its a Photo editing project. I have took a Canvas and take a image in that canvas using the code canvas.addChild(image) . Now i can move the image freely by using moving code. The image move inside the canvas and outside the canvas. I want to move the image/child only inside the canvas not outsi...

Acoustic Echo Cancellation in Flash/Flex using native libraries

Hello, I have to implement AEC in Flex video conferencing application. I know that it can not be done directly in Flash. I'm thinking to write a native application or library that will do AEC outside Flex. As far I know Adobe Connect Pro is using some external library that do AEC. I'd like to follow this direction and do something simi...

Loading File in Flex without AIR?

i am using flexbuilder 3 now i need to load xml file from disk using flex without AIR i imported flash.filesystem.File but error occured. but AIR project,flash.filesystem.File was successfully imported. Cant i use flash.filesystem.File from flex without using AIR??? ...

How to redirect a server call from a swf file to e rails environment

Hi Everybody, I have a problem with my SWF file integration. I am now able to load the SWF file and hand xml data over, in the SWF file I can change the xml data, and I can send them back to the Server. But my problem is, that the resulting redirection doesn't have any effect! I guess that the resulting page gets told to the SWF file an...

Fullscreen background image with Flex

I want to load an image into the background of my Flex app. However, I am wondering about a few things, and have a few contraints. I want it to be much like the way it's done with CSS. See this example of fullscreen background images with CSS. It is very important that there is no white-space (background colour) showing behind the imag...

Creating Flex components from XML

I have a XML and it has an attribute option or combo box, parsing that i need to create components in my flex dynamically. Viatropos has given a wonderful code, but i am not able to execute it... can anyone produce it... thanks ...

Why -use-network=false

Hi guys. Dose anyone knows why I have to use -use-network=false in my Flex Builder?!?!?! This is set inside the Project Properties and is Additional compiler argument. This is only when I want to read in a external file like XML. Others in my team doesn't have to have -use-network=false ???? ...

Flex Builder Speed issue

Is anyone help me to speed up my flex application when i use more than 100 SWC's... ...

Handling complex navigation in Flex

Hi, I am building a complex Flex app, and now I am at the point where navigation becomes a problem. I make use of Viewstacks with a Menu Bar, but I am not sure how to clearly structure this. Depending on the logged in User and chosen Company by the user, he can see different pages. For now I restricted this hiding the appropriate butto...

how to redirect to a new page from a swf file

Hi all, I have a swf file, which handels some xml data. After that process complets I am giving the data back to my rails server. My problem is, that any redirection in my rails app is handed ower to the swf file and the actual displayed page remains the same! How can I perform a redirection in my webpage from a swf flash file. Thanks...

Flex : Clone function duplicate my data

Hello, I've some strange behavior using ObjectUtil.copy() and ByteArray.writeObject/readObject(). I clone an ArrayCollection and sometime the result is two identical instance of the class. Example : var item:Object = new Object(); item.name = "Hello World"; var listItem:ArrayCollection = new ArrayCollection(); listItem.push(item:Obj...

A different service for my Flex app using Zend_Amf

I have an iterator service that works fine already and returns a correctly structured values to my flex application through my Zend Amf server $contacts = array(); mysql_connect( 'localhost', 'root', 'test' ); mysql_select_db( 'test' ); $res = mysql_query( 'SELECT * FROM contact' ); while( $contact = mysql_fetch_as...

ActionScript 3 constructor scope question

Hi everyone, out of curiosity I decided to experiment with the following in a Flex 4 project: public class MyGroup extends Group { public function MyGroup() { super(); var myLabel:Label = new Label(); myLabel.id = "myLabel"; myLabel.text = "My label!"; this.addElement(myLabel); ...

How should I create cookie through flex/coldfusion that is readable by another template?

Inside a flex app, I have a user login. The login calls a ColdFusion function as a remote object which authenticates the user and, if applicable, returns their id and access level. This works fine, but now I'm at the point where I want to also create a cookie for another ColdFusion template (called from fileReference.upload()) to be able...

flex: add a form with 2 buttons into a hbox dinamically

let's say I have this function function Do(x:String){} How can I make so that each time this function is called, it will add a form into a hbox, and that form will have 2 buttons yes and no and put x into the text of a label. And when the user is going to click on Yes I need to trace(x) and remove the Form from the hbox ...

memory, file size, and variables?

Does creating a lot of private variables that may never be used increase file size and or memory usage of your application? ...

Adobe Flex Framework Diagram wallpaper

Hi all, do anybody have flex framework diagram which can be put as wallpaper in my machine. I got some at here, but when i put it, it became unreadable. do anybody has that, so that it can be used as a quick reference. regards, PK ...

AS3: loading image dynamically results in error

Hello, I am trying to load an image in Flex (AS3) which already exists: <mx:Image id="Img"/> With this code: Img.load('http://www.path.com/image.jpg'); The path is verified to work, but I always get this error: TypeError: Error #1009: Cannot access a property or method of a null object reference. I used the code from the documentat...