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:...
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.
...
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 ...
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...
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...
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...
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 ...
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?
...
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)
...
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...
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...
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...
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 ?
...
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.
...
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...
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...
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...
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
...
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...
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
...