Adobe Flex: Access To Undefined …

Flex users may get this error message quite a lot of times. That error message can pertain to either a method or a property. The cause? I came upon this problem because I used an inline Item Renderer for a DataGrid Column. I tried to access a variable not within the DataGrid component. This is because your Inline Item Renderer does not know what exists in your main application. Take this sample

<mx:AdvancedDataGridColumn width="140">
    <mx:itemRenderer >
	<mx:Component>
	    <mx:HBox>
		<mx:Script>
		    <![CDATA[
			import mx.controls.Alert;
		    ]]>
		</mx:Script>
		<mx:LinkButton label="show" click="Alert.show(outerDocument.userlist.lastResult.userid)"/>
	      </mx:HBox>
	</mx:Component>  
    </mx:itemRenderer>
</mx:AdvancedDataGridColumn>

This took me awhile to locate a solution. Luckily there is. Using outerDocument to call methods and/or variables will solve the problem. e.g. outerDocument.method_name()

Like what you see? Buy me a cup of coffee. Or subscribe to my feeds.


(No Ratings Yet)
 Loading ...

Adobe Flex: Change Style Of Header Text In DataGrid

There is no direct way to set a DataGrid column’s header text to, say, change its font type (bold, italic, etc) or even its alignment. You would have to use a bit of CSS and place it within the tag of your MXML file.

For example, to set a header text’s font type to bold and text alignment to center, use the following code below

<mx:Style>
.centerbold {
fontWeight: bold;
textAlign: center;
}
</mx:Style>

and then, within the DataGridColumn’s property headerStyleName, assign the .centerbold style to it.

<mx:DataGridColumn dataField="user_name" headerStyleName="centerbold"/>

Like what you see? Buy me a cup of coffee. Or subscribe to my feeds.


(No Ratings Yet)
 Loading ...

Spin Palace Casino

Spin Palace Casino is a powerhouse casino offering a variety of online games. Its game lineup is provided by reputable and powerhouse Microgaming, widely considered the No.1 piece of online casinos software in the industry today, so it is a sure bet that this is no ordinary casino. A vast number of casino type games from classic to new are available ranging from 3 reel to 5 to the progressive type slot machines and varying kinds of video poker games to the classic roulette, blackjack and more.

It also boasts of a 24 hour customer service support to cater even people from different timezones, money transfer support like popular credit card payment modes VISA and Mastercard and electronic operations like FirePay, Citadel and NetTeller. Money type is not restricted to the U.S. dollar alone. Players not from the United States can also play in pounds and euros and even win with these currencies.

With all these features also comes great graphic designs and audio special effects giving you a more realistic feel of playing in an offline casino. You can play for fun or for real money with Spin Palace Casino’s software. Spin Palace has won multiple awards, proving its worth as one of the internet’s popular online casinos.

Like what you see? Buy me a cup of coffee. Or subscribe to my feeds.


(No Ratings Yet)
 Loading ...

Adobe Flex 3

So I am trying out Adobe’s Flex technology. It is currently at version 3 so that says I am already way behind he he he. I have scoured the net for 2 days and have not found any good tutorials that detail it visually. Adobe offers an IDE for Flex development called Flex Builder 3 but it ain’t free. You’d have to buy it. Though it’s offered as a 60 day trial software. Seeing as how it’s a totally different technology and even though its ActionScript syntax looks a bit like Java, I opted to use an IDE for its sake. So I am using Flex Builder 3. I did not get the Flex plugin for Eclipse since there is no Flex 3 plugin for it yet so the standalone version was my only option.

Adobe Flex allows you to create rich internet applications. In simpler terms, Flex is an array of components at our disposal to use to ease client side presentation development. Take for example a grid table containing entries from a database. Rather than doing code to make possible client side interaction like search by column, or having a different color per alternate row, the grid table does this all for you. All it needs is an XML data that contains the entries from the database to be populated in it. See image below.

When I first started checking out Flex, I thought that the whole page presentation is stored inside Flex. And I was wrong. Flex is merely a set of components that offer lots of functionality on the client side. I just finished going through a simple tutorial that loads the entries from the database using PHP. Scripting languages like ASP, PHP, JSP or Cold Fusion can be used in conjunction with Flex.

Like what you see? Buy me a cup of coffee. Or subscribe to my feeds.


(No Ratings Yet)
 Loading ...