flex

Flex - Binding ViewStack selectedChild Property Using a String Value

The attached code example (pseudo code) compiles, but throws this Run-Time Error: TypeError: Error #2007: Parameter child must be non-null. at flash.display::DisplayObjectContainer/getChildIndex() at mx.core::Container/getChildIndex()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:2409] at mx.containers:...

How can I create a Flex application with dynamic height?

Is there a way to allow a flex application to have a dynamic height while embedded in an HTML wrapper? I want the Flex application to grow in height in a way that it will not cause vertical scroll bars. ...

How does binding in ActionScript work?

As far as I understand, binding to a var in ActionScript is carried out via events which are automatically fired when a var is changed. I have a few questions about this: What happens if the class doesn't explicitly extend EventDispatcher? Is there is some sort of magic that goes on in the compiler which essentially makes the class an ...

Flex mxml to as3, small class did i miss something ?

Hi, I was using an mxml class but since i need to pass some properties at construction time, to make it easier i will convert it to as3 code. The class is RectangleShape and it just draws a rectangle. Original mxml working <?xml version="1.0" encoding="utf-8"?> <BaseShape name="rectangle" xmlns="org.edorado.edoboard.view.componen...

Actionscript - is it better to cast or create a new variable? Or does it matter at all?

I find that in my daily Flex/Flash work, I do this number a lot: //Calling a function... MyCustomObject(container.getChildAt(i)).mySpecialFunction(); The question is - is this the best way to do this? Should I do this: //Calling a function var tempItem:MyCustomObject = container.getChildAt(i) as MyCustomObject; tempItem.mySpecialFun...

Is there a way to programmatically delete all local shared objects from within flash?

I'm using local shared objects within flash both to store significant amounts of user data, as well as for caching data fetched from the server. However, I'm very concerned about hitting the 100kb default limit. Because the 100kb limit is for the whole domain, I'm concerned that the sum of multiple local shared objecs would sum to more...

Where to start? What language to learn first?

I'm just starting out in the programming world and I know that I have a long road ahead of me..but I learn quickly. :) I want to be able to build RIAs and I've been going through Adobe's PDF files on ActionScript 3.0 and Flex. The more I learn, the more interesting it gets. My questions are these: Am I starting at the right spot? Should ...

Flex and embedded XML

Hello. I'm using Parsley IoC in my current Flex project. So I'd like to embed the container configuration XML onto the result SWF. How could I load embedded XML file into action script XML object? ...

Flex: Database driven DataGrid: arrows disappearing

In Flex I'm using the following code to allow sorting in a DataGrid (the data is paged and sorted serverside). private function headerReleaseHandler(event:DataGridEvent):void { var column:DataGridColumn = DataGridColumn(event.currentTarget.columns[event.columnIndex]); if(this.count>0) ...

Flex binding and AS3

Hi, I have a degrafa surface into a canvas container. I want to link both width and height. When i use binding like it works as expected: // binding BindingUtils.bindProperty(rect,"height",this,"height"); BindingUtils.bindProperty(rect,"width",this,"width"); Now, someone told me that i should do it on validateSize() or updateDi...

Actionscript 3 Bind variables

I am trying to set one bindable variable to be bound to another. Essentially I want to create an alias. I would give up, but this seems like something that would be good to know. essentially, I want changes in model.configView to be reflected in view, so that things bound to view.... behave the same as things bound to model.configView...

Flex intellisense forgets flash.*

I am using Eclipse 3.3.2 with the Flex Builder Plugin (3.0.194161) and the Flex SDK 3.2. Recently the intellisense has started forgetting about everything in the flash.* package EXCEPT flash.errors.* The code still compiles, but attempting to automatically resolve something (CTRL+SPACE) removes any of the flash.* import statements and t...

Flex Mxml and property as string, escaping ?? Help

Hi, A simple problem: If i use escape characters for a property such as <mx:Image id="img" toolTip="\\foo{\\bar}" It wont validate toolTip and therefore not compile. What is the solution ? ...

Flex Icon on Button sizing [Design]

I would like to size the width of my button according to its icon image. I tried to force padding to 0 with no success. In a tile <mx:Button id="m1" icon="@Embed('m1.png')"/> See the result http://img513.imageshack.us/my.php?image=iconkg3.png How could i change this gap ? Thanks. ...

Pros and Cons of Adobe Flex as a Web 2.0 Framework

I came across the Adobe Flex framework one day. After watching http://www.adobe.com/products/flex/media/flexapp/'> the demo of Flex, it looks to me it is a bundle of different Ajax controls. I have no working knowledge of Flex at all and know very little about Flex. Therefore, I would like to hear from the developers here with some F...

Problems with itemRollOver and itemRollOut events on List component

I have set the itemRollOver and itemRollOut event listeners on a List component, but whenever I roll the mouse over a list item, both the over and out events of the same list item fire in succession right after each other. My list uses a custom itemRenderer. Any ideas why this might be? The Adobe documentation doesn't provide much insig...

Allow custom text representation of data in MXML

Hello, I have an actionscript class called Dimension, which allows a client to specify a dimension using a value and a unit such as "CM" or "Inches". I want to use an instance of this class as a property in MXML, so a user can write <DimensionView value="2cm"/> How do I make "2cm" an accepted string value for Dimension? I assume I ne...

Displaying simple javascript enabled webpage within a Flex app?

I'm working on a Flex app that needs to display ads from third party vendors that come in the form of HTML docs containing javascript. Are there any components available that can display such things? It seems like we need a mini-browser that runs inside of Flex. Thanks a lot, Alex ...

Provider com.bea.xml.stream.MXParserFactory not found

Anyone come across this error when trying to import a WSDL in Flex builder 3? Seems it only occurs when trying to import a WCF based service which has 'virtual' endpoints... Some digging around makes me think Flex has trouble parsing the wsdl (however standard web services work fine). A bug has been opened for months and still no repl...

Eclipse memory settings when getting "Java Heap Space" and "Out of Memory"

When trying to launch and run a flex/java project in eclipse I kept getting a "Out of Memory Exception" and "Java Heap Space" using Eclipse, Tomcat and a JRE. While researching trying to adjust the memory settings I found three places to adjust these: Eclipse.ini The JRE Settings under Window > Preferences Catalina.sh or Catalina.bat ...