PDA

View Full Version : Skinning Scrollbars via swf diables track click


lilolbear
12-07-2007, 09:14 PM
I was wondering if anyone else has run into this issue or has an idea for a resolution. I have skinned my HScrollbar and VScrollBar components via the flex_skins.fla method described here:

http://www.adobe.com/devnet/flex/articles/flex_skins.html

Part of doing so was to increase the size from the standard 16 pixels to 37 pixels . After doing so the scrollbar no longer responds to a track click to jump the scroll position. I have narrowed it down to this change specifically by commenting out the css line that applies the trackSkin while leaving the other skinning and code in place.

Any ideas?

springframework
12-07-2007, 10:47 PM
after skinning components and finding they dont work correctly. it has always been because of me deleting/modifying incorrectly the stuff that is in there already.

ive noticed that you usually have to leave the layers in the same structure and leave the shapes, primitive rectangles, in the same order.

keep shapes as shapes. keep primitive rectangles as primitive rectangles. add the initial gradient to the color picker so you can set your modified shapes to the same gradient. keep everything in the same order. keep x,y position the same.

if you want to add something put it above all other layers.


do 1 modification try it out ... then do another, try it out .. etc

lilolbear
12-10-2007, 08:40 PM
With that philosophy in mind I tried skinning the component without making any changes to the swf and it didn't function properly. So there is something about the source fla that is not working properly. I'm going to look around for one but if anyone could toss up a link to a source fla that does have all the right stuff i'd appreciate it.

lilolbear
12-10-2007, 11:12 PM
For anyones who has this or similar issues, the scrolling is an issue when using the downloaded fla from the above mentioned site.

If you are doing skinning on components I would recommend the image method (photoshop or illustrator).

springframework
12-11-2007, 08:18 PM
if you are using flex 3, then this might be good. i am just started to use it today. ill let u know how well it works.

http://labs.adobe.com/downloads/flex_sdext.html