would you mind uploading the mxml file and i will look at it since i have to 
remove all the weird spacing and what not


----- Original Message ----
From: Yochikoh Haruomi <[EMAIL PROTECTED]>
To: [email protected]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, March 12, 2008 3:55:09 PM
Subject: [flexcoders] problem : scrollbar track is disabled when applying skin 
to scroll bar

Dear list,

I need help regarding the behavior of a scroll bar track. 

Before I applied the skin, when the data  is larger than the display area, a 
scroll bar is added automatically. When the scrollbar track is pressed, the 
page will be scrolled and the thumb will move.

However, after I applied skin to the scroll bar ( I follow instruction from 
this link http://www.adobe. com/devnet/ flex/articles/ flex_skins. html ),
everything works fine except  that when I press the scroll bar track, the page 
is not scrolled and the thumb does not move anymore.

Any idea what is wrong and How  I can fix this ?
Is this an asset problem or is there a way I can enable the scroll track by 
code?

Any direction/ suggestion is greatly appreciated.  

ps. I use flex builder2.  Also, I use the css & flex skins.fla downloaded from 
http://www.adobe. com/devnet/ flex/articles/ flex_skins. html ( 
flex_skins_flash. zip (ZIP, 108K) )   to verify that the problem is not from my 
own custom skin.


Below is the code:


// MXML

<?xml version="1.0" encoding="utf- 8"?>
<mx:Application xmlns:mx="http: //www.adobe. com/2006/ mxml" layout="absolute">

<mx:Style source="skin/ flex_skins. css"/>

<mx:TabNavigator id="tn"  width="200" height="300">
            <mx:VBox label="Panel 1" >
                <mx:Label text="TabNavigator container panel 1 bla bla bla bla 
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla 
bla"/>
            </mx:VBox>

            <mx:VBox label="Panel 2">
                <mx:Label text="TabNavigator container
panel 2"/>
            </mx:VBox>
        </mx:TabNavigator>   
</mx:Application>


// CSS

ScrollBar
{
    trackSkin: Embed(source= "flex_skins. swf", symbol="ScrollTrack _Skin");
    downArrowDisabledSk in: Embed(source= "flex_skins. swf", 
symbol="ScrollArrow Down_disabledSki n");
    downArrowDownSkin: Embed(source= "flex_skins. swf", symbol="ScrollArrow 
Down_downSkin" );
    downArrowOverSkin: Embed(source= "flex_skins. swf", symbol="ScrollArrow 
Down_overSkin" );
    downArrowUpSkin: Embed(source= "flex_skins. swf", symbol="ScrollArrow 
Down_upSkin" );
    thumbDownSkin: Embed(source= "flex_skins. swf", symbol="ScrollThumb 
_downSkin" );
    thumbIcon: Embed(source= "flex_skins. swf", symbol="ScrollBar_ thumbIcon" );
    thumbOverSkin: Embed(source= "flex_skins. swf", symbol="ScrollThumb 
_overSkin" );
    thumbUpSkin: Embed(source= "flex_skins. swf", symbol="ScrollThumb _upSkin") 
;
    upArrowDisabledSkin : Embed(source= "flex_skins. swf", symbol="ScrollArrow 
Up_disabledSkin" );
    upArrowDownSkin: Embed(source= "flex_skins. swf", symbol="ScrollArrow 
Up_downSkin" );
    upArrowOverSkin: Embed(source= "flex_skins. swf", symbol="ScrollArrow 
Up_overSkin" );
    upArrowUpSkin: Embed(source= "flex_skins. swf", symbol="ScrollArrow 
Up_upSkin" );


I can send the package of codes off-list.
Thank you very much!!
Yoko



Never miss a thing. Make Yahoo your homepage. 
 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to