Bonjour
J'essaie de faire une interface à la Cover flow. Pour ce faire j'ai télécharger le composant CoverFlow de Doug McCune. J'ai modifier mon code pour remplacer les pannel par des canvas dans lesquel je met une image.
Voici mon code :
Le coverflow marche bien mais les images ne se chargent que sur le canvas qui a le focus.
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
16
17
18
19
20
21
22
23
24
25
26
27
28
29 <mx:VBox id="box" verticalGap="0" height="100%" width="100%" > <containers:CoverFlowContainer id="coverflow" width="100%" height="100%" horizontalGap="70" borderStyle="inset" backgroundColor="0x000000" segments="6" reflectionEnabled="true"> <mx:Canvas width="200" height="283"> <mx:Image source="toxic.jpg"/> </mx:Canvas> <mx:Canvas width="200" height="283"> <mx:Image source="toxic.jpg"/> </mx:Canvas> <mx:Canvas width="200" height="283"> <mx:Image source="toxic.jpg"/> </mx:Canvas> <mx:Canvas width="200" height="283"> <mx:Image source="toxic.jpg"/> </mx:Canvas> </containers:CoverFlowContainer> <mx:HScrollBar id="scrollbar" width="100%" pageSize="1" maxScrollPosition="{coverflow.numChildren - 1}" scrollPosition="{coverflow.selectedIndex}" scroll="coverflow.selectedIndex = Math.round(scrollbar.scrollPosition)" /> </mx:VBox>
Une idée pour corriger ça?
merci
Partager