Hello group, this is my first post and forgive me if this question has been 
asked before.

I am using IconUtility class written by Ben Stucki 
(http://blog.benstucki.net/?p=42), and i couldn't get it to work with TabBar 
component. Here is my MXML

<?xml version="1.0" encoding="utf-8"?>

    <mx:Script>
        <![CDATA
            import com.benstucki.utilities.IconUtility;
        ]]>
    </mx:Script>
    <mx:VBox id="box" width="400" verticalGap="0">
        <mx:TabBar id="tabBarMain" direction="horizontal" 
dataProvider="{viewStack}" width="100%" />
        <mx:ViewStack id="viewStack" width="100%" height="100" 
backgroundColor="white" borderSides="left bottom right" borderStyle="solid" 
borderThickness="1">
            
             <mx:Label text="Application Folder" />
            </mx:Canvas>
            
             <mx:Label text="Music Folder" />
            </mx:Canvas>    
            
             <mx:Label text="Pictures Folder" />
            </mx:Canvas>                    
        </mx:ViewStack>
    </mx:VBox>  
</mx:Application>

and all 3 tabs show the same icon, which is the last one, Preview-32x32.png. 
Any idea how to get this to work?

Thanks.

DT




      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Reply via email to