Setting property of Object in Flex

<mx:Canvas id="maincanvas" backgroundColor="7000" width="100%" height="100%">
    <mx:TextArea backgroundAlpha="0"/>

However if I try creating a new textarea object via:

var textarea:TextArea = new TextArea ();
textarea.backgroundAlpha = 0;

flex throws the error :

1119: Access of possibly undefined property backgroundAlpha through a reference with static type mx.controls:TextArea.


backgroundAlpha is a style, so you've got to set it with:

textarea.setStyle("backgroundAlpha", 0);

Need Your Help

What is the most efficient graph data structure in Python?

python data-structures performance graph

I need to be able to manipulate a large (10^7 nodes) graph in python. The data corresponding to each node/edge is minimal, say, a small number of strings. What is the most efficient, in terms of me...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.