BTA Flexing

My passion RIAs…………..Shardul Singh Bartwal

Archive for November, 2010

Selected tab skining in Flex 3 Tabbar

Posted by Shardul Singh Bartwal on November 22, 2010

I was trying to skin the tab-bar in flex 3.Was facing some issue,as I dot find any particular property for skinning the selected tab,although there is a property ‘selectedTabTextStyleName’ for the style of the selected text. But ultimately it is done.Below is the code for the skinning of the selected tab of the tab-bar hope you will find it worth of your purpose.Below is the same code. Please feel free to give your idea if you have done this by any other way.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
	 layout="vertical">
<mx:Script>
	<![CDATA[
		import mx.collections.ArrayCollection;
	
	         import mx.controls.tabBarClasses.Tab

		[Bindable]
		private var arrayCollection : ArrayCollection = new ArrayCollection([
		{lbl:'Football'},
		{lbl:'Cricket'},
		{lbl:'BollyBall'}
		])
		
		private function setTabSkin():void
		{
		  var tab:Tab = tabBar.getChildAt(tabBar.selectedIndex) as Tab;			  
		  tab.setStyle("fillColors", ["#0xBBBBBB", "#EEEEEE"]);
                  tab.setStyle("backgroundColor", "#999999");
                  tab.setStyle("borderColor", "#000000");
                  tab.setStyle("themeColor", "#222222");
		}
	]]>
</mx:Script>
	<mx:TabBar id="tabBar" itemClick="setTabSkin()" selectedIndex="0" creationComplete="setTabSkin()" dataProvider="{arrayCollection}" labelField="lbl"/>

</mx:Application>

Posted in AIR 2.0, Flex 3.0 | Leave a Comment »

TypeError: Error #2007: Parameter blendMode must be non-null.

Posted by Shardul Singh Bartwal on November 17, 2010

This is the error which make wasted lot of mine time.Finally I get to know that this will appear if we will using
any swc which is created in the advance versions of flex sdk main in 3.3 or 3.4 and we are created the project in the lower version of sdk e.g. 3.2. If you want to come out from this then either go for the higher or equal to the swc version of sdk for the entire application or rebuild your swc with the higher version.Hope this will help you if you will facing this non meaning title error 🙂

Keep rocking……..Enjoy Flexing……

Posted in Flex 3.0, Uncategorized | Leave a Comment »

Protected: Bitmap Text in ActionScript 3.0

Posted by Shardul Singh Bartwal on November 12, 2010

This content is password protected. To view it please enter your password below:

Posted in ActionScript 3.0, Flex 3.0 | Enter your password to view comments.