Mmmmh ... pfuiit , pas sûr d'avoir compris juste ... mais ta réponse ma quand même bien aider, alors j'ai fait comme ça :
public function functionFwd(pEvt:MouseEvent):void
{
inc++;
if (inc < xml.elements().length())
{
player.play(xml.elements()[inc].@stream);
bar.infoVideo.text = (xml.elements()[inc].@title);
}
else
{
inc = (xml.elements().length()-1);
}
}
public function functionRew(pEvt:MouseEvent):void
{
var string:String = (xml.elements()[inc].@stream)
if (string != (xml.elements()[0].@stream))
{
inc--;
player.play(xml.elements()[inc].@stream);
bar.infoVideo.text = (xml.elements()[inc].@title);
}
else
{
inc = 0;
}
}
Mais c'est pas très propre ? Dois-je absolument parser avec un for each ?
(Je sens que je vais passer pour un grand fan de Demis Roussos sur ce coup ...)
@+.
telov.ch