Bonjour, j'ai essayé à peu près tous les exemples que j'ai trouvé sur la toile et rien à faire, ça ne veut pas fonctionner.
Mon dernier essai est le suivant :
inspiré des source 1 et source 2
... mais ce n'est pas appliqué à un scroller. Je cite adobe (source) :
GardenNav.mxmlSkinning a Scroller control
The Scroller skin provides scroll bars and manages layout according to the verticalScrollPolicy and horizontalScrollPolicy properties in the Scroller class.
The Scroller skin layout cannot be changed because it must handle the vertical and horizontal scroll policies. Scroller skins can only provide replacement scroll bars.
main.mxml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 <s:Scroller width="100%" height="100%" styleName="gardenNavScroller"> <s:Group> <gardenplan:GardenPlan id="plan" width="2000" height="2000"/> </s:Group> </s:Scroller>
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 @namespace s "library://ns.adobe.com/flex/spark"; @namespace mx "library://ns.adobe.com/flex/mx"; @namespace local "*"; @namespace gardeneditor "gardeneditor.*"; .gardenNavScroller { verticalScrollBarStyleName: navScrollBarStyles; horizontalScrollBarStyleName: navScrollBarStyles; } .navScrollBarStyles { upArrowSkin: ClassReference(null); downArrowSkin: ClassReference(null); trackSkin: ClassReference(null); }
Partager