Bonjour,
J'ai ce code ci :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
<mx: Panel width="360" height="260" title="Name" verticalScrollPolicy="off" horizontalScrollPolicy="off" headerHeight="0">
<mx:Image source="images/xxx.jpg" mouseOver="showCursor()" mouseOut="removeCursor()" click="navigateToURL(new URLRequest('http://www.xxx.com'), '_blank')"/>
</mx: Panel>
Je voudrai faire une boucle qui me génère x panel avec son image associé...
Vloilà ou j'en suis mais je bloque.. Merci à vous :


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
public var nombre:Number=6;
	 public var i:uint;
     public function creer_panel():void
     {
	    for( i=1; i<(nombre); i++ )      
	    {
	       var p: Panel = new Panel();
	       p.width = 360;
	       p.height = 260;
	       p.verticalScrollPolicy = "off";
	       p.horizontalScrollPolicy = "off";
 
	    }