Comunidad de diseño web y desarrollo en internet online

barra xml con scroll de miniaturas/como agregar links?

Citar            
MensajeEscrito el 27 Oct 2010 05:55 pm
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 ActionScript :

import flash.display.MovieClip;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.display.StageScaleMode;
import com.flashotaku.thumbnailscroller.events.ThumbnailEvent;
import com.flashotaku.thumbnailscroller.ThumbnailScroller;

stage.scaleMode = StageScaleMode.NO_SCALE;

/*
myT.addEventListener(ThumbnailEvent.THUMB_PROGRESS, onProgressHandler);
function onProgressHandler(event:ThumbnailEvent){
   trace(event.item.bytesLoaded);
}

myT.addEventListener(ThumbnailEvent.CLICK, onClick);
function onClick(event:ThumbnailEvent){
   trace(event.item.id);
}

myT.addEventListener(ThumbnailEvent.THUMB_COMPLETE, onThumbAdded);
function onThumbAdded(event:ThumbnailEvent){
}

myT.addEventListener(ThumbnailEvent.MOUSE_OVER, onMouseOver);
function onMouseOver(event:ThumbnailEvent){
}

myT.addEventListener(ThumbnailEvent.MOUSE_OUT, onMouseOut);
function onMouseOut(event:ThumbnailEvent){
}
*/

left.addEventListener(MouseEvent.MOUSE_DOWN, leftHandler);
right.addEventListener(MouseEvent.MOUSE_DOWN, rightHandler);

function leftHandler(event:MouseEvent){
   myT.moveLeft();
}
function rightHandler(event:MouseEvent){
   myT.moveRight();
}

/*
left.addEventListener(MouseEvent.ROLL_OVER, cLeftHandler);
right.addEventListener(MouseEvent.ROLL_OVER, cRightHandler);
left.addEventListener(MouseEvent.ROLL_OUT, cStopHandler);
right.addEventListener(MouseEvent.ROLL_OUT, cStopHandler);

function cLeftHandler(event:MouseEvent){
   myT.cMoveLeft();
}
function cRightHandler(event:MouseEvent){
   myT.cMoveRight();
}
function cStopHandler(event:MouseEvent){
   myT.cMoveStop();
}
*/

ARCHIVO EXTERNO XML:

Código XML :

<?xml version="1.0" encoding="utf-8"?>
<images>
   <image path="thumbnails/1.jpg"/>
   <image path="thumbnails/2.jpg"/>
   <image path="thumbnails/3.jpg"/>
   <image path="thumbnails/4.jpg"/>
   <image path="thumbnails/5.jpg"/>
   <image path="thumbnails/6.jpg"/>
   <image path="thumbnails/7.jpg"/>
   <image path="thumbnails/8.jpg"/>
   <image path="thumbnails/9.jpg"/>
   <image path="thumbnails/10.jpg"/>
   <image path="thumbnails/11.jpg"/>
   <image path="thumbnails/12.jpg"/>
   <image path="thumbnails/13.jpg"/>   
</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!!

Por CLAnonimo

Claber

600 de clabLevel

5 tutoriales
1 articulo

 

Este es un usuario anónimo genérico para las cuentas borradas o perdidas.

firefox
Citar            
MensajeEscrito el 28 Oct 2010 03:59 pm
alguna respuesta plz!!!!

Por CLAnonimo

Claber

600 de clabLevel

5 tutoriales
1 articulo

 

Este es un usuario anónimo genérico para las cuentas borradas o perdidas.

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.