Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/10/2010, 12:03
sparky2099
 
Fecha de Ingreso: octubre-2010
Mensajes: 4
Antigüedad: 13 años, 5 meses
Puntos: 0
barra xml con scroll de miniaturas/como agregar links?

hola buenas a atodos .
Lo que me interesaba era hacer una barra con scroll horizontal en el cual las imagenes estubieran definidas por un archivo externo xml.
ya consegui que fuincione pero....
NECECITO que las imagenes tengan un vinculo diferente cada una..

Cuento con:
ARCHIVO .FLA con tres objetos:
flecha derecha
flecha izq
y recuadro donde aparecen las imagenes.

CODIGO AS3:
Código AS3:
Ver original
  1. import flash.display.MovieClip;
  2. import flash.events.Event;
  3. import flash.events.MouseEvent;
  4. import flash.display.StageScaleMode;
  5. import com.flashotaku.thumbnailscroller.events.ThumbnailEvent;
  6. import com.flashotaku.thumbnailscroller.ThumbnailScroller;
  7.  
  8. stage.scaleMode = StageScaleMode.NO_SCALE;
  9.  
  10. /*
  11. myT.addEventListener(ThumbnailEvent.THUMB_PROGRESS, onProgressHandler);
  12. function onProgressHandler(event:ThumbnailEvent){
  13.     trace(event.item.bytesLoaded);
  14. }
  15.  
  16. myT.addEventListener(ThumbnailEvent.CLICK, onClick);
  17. function onClick(event:ThumbnailEvent){
  18.     trace(event.item.id);
  19. }
  20.  
  21. myT.addEventListener(ThumbnailEvent.THUMB_COMPLETE, onThumbAdded);
  22. function onThumbAdded(event:ThumbnailEvent){
  23. }
  24.  
  25. myT.addEventListener(ThumbnailEvent.MOUSE_OVER, onMouseOver);
  26. function onMouseOver(event:ThumbnailEvent){
  27. }
  28.  
  29. myT.addEventListener(ThumbnailEvent.MOUSE_OUT, onMouseOut);
  30. function onMouseOut(event:ThumbnailEvent){
  31. }
  32. */
  33.  
  34. left.addEventListener(MouseEvent.MOUSE_DOWN, leftHandler);
  35. right.addEventListener(MouseEvent.MOUSE_DOWN, rightHandler);
  36.  
  37. function leftHandler(event:MouseEvent){
  38.     myT.moveLeft();
  39. }
  40. function rightHandler(event:MouseEvent){
  41.     myT.moveRight();
  42. }
  43.  
  44. /*
  45. left.addEventListener(MouseEvent.ROLL_OVER, cLeftHandler);
  46. right.addEventListener(MouseEvent.ROLL_OVER, cRightHandler);
  47. left.addEventListener(MouseEvent.ROLL_OUT, cStopHandler);
  48. right.addEventListener(MouseEvent.ROLL_OUT, cStopHandler);
  49.  
  50. function cLeftHandler(event:MouseEvent){
  51.     myT.cMoveLeft();
  52. }
  53. function cRightHandler(event:MouseEvent){
  54.     myT.cMoveRight();
  55. }
  56. function cStopHandler(event:MouseEvent){
  57.     myT.cMoveStop();
  58. }
  59. */
ARCHIVO EXTERNO XML:
Código XML:
Ver original
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <images>
  3.     <image path="thumbnails/1.jpg"/>
  4.     <image path="thumbnails/2.jpg"/>
  5.     <image path="thumbnails/3.jpg"/>
  6.     <image path="thumbnails/4.jpg"/>
  7.     <image path="thumbnails/5.jpg"/>
  8.     <image path="thumbnails/6.jpg"/>
  9.     <image path="thumbnails/7.jpg"/>
  10.     <image path="thumbnails/8.jpg"/>
  11.     <image path="thumbnails/9.jpg"/>
  12.     <image path="thumbnails/10.jpg"/>
  13.     <image path="thumbnails/11.jpg"/>
  14.     <image path="thumbnails/12.jpg"/>
  15.     <image path="thumbnails/13.jpg"/>  
  16. </images>
CARPETA CON LAS IMAGENES:
1.jpg
2.jpg
3.jpg....

PRODRIAN AYUDARME agenerar los vinculos de cada imagen?
apenas estoy aprendiendo a usar esto asi que entre mas claro y especifico mejor, muchas gracias!!