Interface flash relié à un XML, qui lui pointe à un HTML et ce illimité

math609 Messages postés 3 Date d'inscription dimanche 18 janvier 2004 Statut Membre Dernière intervention 13 avril 2006 - 1 janv. 2006 à 08:46
cortoh Messages postés 1255 Date d'inscription dimanche 18 décembre 2005 Statut Membre Dernière intervention 2 décembre 2008 - 1 janv. 2006 à 12:46
Bonjour à tous,
Le titre en dit déja beaucoup mais je vais finir de mexpliquer:Interface flash relié à un XML, qui lui pointe à un HTML et ce illimité. Exemple de ce que je dit: dans un flash loader un XML dans ce meme XML avoir un attribute égal a text.html enfin avoir un fichier HTML nommé text qui contient photo, texte, etc

Et finalement le "illimité" : linterface flash se crée en conséquence du nombre de node qu'il y a dans le XML

CE code ci ne fonctionne pas la aprtie qui controle le tout est vers le bas

Code:
,
----

for (var k=0; k<link.length; k++) {
test[k]=new XML ();
test[k].ignoreWhite = true;
test[k].load(Link[k])
test[k].onLoad=fonction(sucess);{
if (sucess){
_root.pages["page"+k].content1.htmlText = test[k];

}


Code:
,
----

this.positions = new Array();
this.titles = new Array();
this.text = new Array();
this.link = new Array();
this.page_content = new Array();
this.myXML = new XML();
this.myXML.ignoreWhite = true;

this.onEnterFrame = function() {
starty = GetProperty(_root.pages,_y);
verticalno = pagesy-starty;
setProperty (_root.pages, _y, starty+(verticalno/6));
}

this.pageMove = function(location) {
trace("location: " + location);
_global.pagesy = location;
}

this.menuMove = function(x) {
var mousePos = x;
if (mousePos<=20) {
// Tell menu to show itself
_root.menu.showMenu();
} else if (mousePos>=275) {
// Tell menu to hide itself
_root.menu.hideMenu();
}
}

this.myXML.onLoad = function(success) {
if (success) {
trace("XML Loaded!");
_global.allNodes = this.firstChild.childNodes;
_global.hidden = true;

trace("Total Pages: " + allNodes.length);
j = 0;
while (j[mailto:Math609@gmail.com Math609@gmail.com]

1 réponse

cortoh Messages postés 1255 Date d'inscription dimanche 18 décembre 2005 Statut Membre Dernière intervention 2 décembre 2008
1 janv. 2006 à 12:46
trop long ton post pour un 1er... on verra ca le 2... en attendant:

LA BONNE ANNNEEEEEEEEEEEUUUUUUUHHHHH!


Peace from Mars
to all human beings

hIpS!
0
Rejoignez-nous