XML Gallery
- routhu
- Beginner


- Inscription: Fév 28, 2007
- Messages: 47
- Loc: India
- Status: Offline
Salut à tous,
J'ai déjà aperçu galerie falsh XML, sa working fine. Mais j'ai besoin d'ajouter le titre du pouce ci-dessous de chaque vignette. Comment puis-je réaliser cette tâche.
Peut-on s'il vous plaît aider.
Voici le code que j'utilise.
J'ai déjà aperçu galerie falsh XML, sa working fine. Mais j'ai besoin d'ajouter le titre du pouce ci-dessous de chaque vignette. Comment puis-je réaliser cette tâche.
Peut-on s'il vous plaît aider.
Voici le code que j'utilise.
Code: [ Select ]
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
thumbnails = [];
titname = [];
link = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
thumbnails[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
titname[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
link[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
thumbnails_fn(i);
trace(titname[i]);
trace(link[i]);
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
/////////////////////////////////////
p = 0;
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 8;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
if ((_root._xmouse>=(hit_right._x-350)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=(hit_left._x+350)) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
}
} else {
delete tscroller.onEnterFrame;
}
};
}
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_left._x+(target_mc._width+10)*k;
target_mc.pictureValue = k;
trace(target_mc.pictureValue);
target_mc.onRelease = function() {
p = this.pictureValue;
nextImage();
tit_name.text = titname[p];
getURL(link[p], "_self");
trace(link[p]);
};
target_mc.onRollOver = function() {
this._alpha = 80;
thumbNailScroller();
};
target_mc.onRollOut = function() {
this._alpha = 100;
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}
if (loaded) {
xmlNode = this.firstChild;
thumbnails = [];
titname = [];
link = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
thumbnails[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
titname[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
link[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
thumbnails_fn(i);
trace(titname[i]);
trace(link[i]);
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
/////////////////////////////////////
p = 0;
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 8;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
if ((_root._xmouse>=(hit_right._x-350)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=(hit_left._x+350)) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
}
} else {
delete tscroller.onEnterFrame;
}
};
}
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_left._x+(target_mc._width+10)*k;
target_mc.pictureValue = k;
trace(target_mc.pictureValue);
target_mc.onRelease = function() {
p = this.pictureValue;
nextImage();
tit_name.text = titname[p];
getURL(link[p], "_self");
trace(link[p]);
};
target_mc.onRollOver = function() {
this._alpha = 80;
thumbNailScroller();
};
target_mc.onRollOut = function() {
this._alpha = 100;
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}
- function loadXML(loaded) {
- if (loaded) {
- xmlNode = this.firstChild;
- thumbnails = [];
- titname = [];
- link = [];
- total = xmlNode.childNodes.length;
- for (i=0; i<total; i++) {
- thumbnails[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
- titname[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
- link[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
- thumbnails_fn(i);
- trace(titname[i]);
- trace(link[i]);
- }
- firstImage();
- } else {
- content = "file not loaded!";
- }
- }
- xmlData = new XML();
- xmlData.ignoreWhite = true;
- xmlData.onLoad = loadXML;
- xmlData.load("images.xml");
- /////////////////////////////////////
- listen = new Object();
- listen.onKeyDown = function() {
- if (Key.getCode() == Key.LEFT) {
- prevImage();
- } else if (Key.getCode() == Key.RIGHT) {
- nextImage();
- }
- };
- Key.addListener(listen);
- previous_btn.onRelease = function() {
- prevImage();
- };
- next_btn.onRelease = function() {
- nextImage();
- };
- /////////////////////////////////////
- p = 0;
- function thumbNailScroller() {
- // thumbnail code!
- this.createEmptyMovieClip("tscroller", 1000);
- scroll_speed = 8;
- tscroller.onEnterFrame = function() {
- if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
- if ((_root._xmouse>=(hit_right._x-350)) && (thumbnail_mc.hitTest(hit_right))) {
- thumbnail_mc._x -= scroll_speed;
- } else if ((_root._xmouse<=(hit_left._x+350)) && (thumbnail_mc.hitTest(hit_left))) {
- thumbnail_mc._x += scroll_speed;
- }
- } else {
- delete tscroller.onEnterFrame;
- }
- };
- }
- function thumbnails_fn(k) {
- thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
- tlistener = new Object();
- tlistener.onLoadInit = function(target_mc) {
- target_mc._x = hit_left._x+(target_mc._width+10)*k;
- target_mc.pictureValue = k;
- trace(target_mc.pictureValue);
- target_mc.onRelease = function() {
- p = this.pictureValue;
- nextImage();
- tit_name.text = titname[p];
- getURL(link[p], "_self");
- trace(link[p]);
- };
- target_mc.onRollOver = function() {
- this._alpha = 80;
- thumbNailScroller();
- };
- target_mc.onRollOut = function() {
- this._alpha = 100;
- };
- };
- image_mcl = new MovieClipLoader();
- image_mcl.addListener(tlistener);
- image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
- }
- Anonymous
- Bot


- Inscription: 25 Feb 2008
- Messages: ?
- Loc: Ozzuland
- Status: Online
Juin 15th, 2007, 5:27 am
- routhu
- Beginner


- Inscription: Fév 28, 2007
- Messages: 47
- Loc: India
- Status: Offline
- joebert
- Sledgehammer


- Inscription: Fév 10, 2004
- Messages: 13455
- Loc: Florida
- Status: Offline
Son une douleur à lire.
Plutôt que d'affecter des propriétés à MovieClips, ce petit extrait est utilisé.
Heres Un hack pour démontrer qu'une façon dont le titre pourrait être affichée.
1) Trouvez la ligne suivante.
Après cette ligne, ajoutez
2) Trouver la ligne suivante.
Après cette ligne, ajoutez
Que devrait Ajouter une boîte blanche en arrière-plan avec le titre trouvé dans le fichier XML au bas de l'image, mais Im allant seulement par ce que je vois dans le code et il peut ne pas fonctionner du tout.
Plutôt que d'affecter des propriétés à MovieClips, ce petit extrait est utilisé.
Code: [ Select ]
thumbnails[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
titname[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
link[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
titname[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
link[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
- thumbnails[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
- titname[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
- link[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
Heres Un hack pour démontrer qu'une façon dont le titre pourrait être affichée.
1) Trouvez la ligne suivante.
Code: [ Select ]
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
Après cette ligne, ajoutez
Code: [ Select ]
// Just stash it on the MovieClip untill the content is loaded, so we know where it's going
thumbnail_mc["t"+k].title = titname[k];
thumbnail_mc["t"+k].title = titname[k];
- // Just stash it on the MovieClip untill the content is loaded, so we know where it's going
- thumbnail_mc["t"+k].title = titname[k];
2) Trouver la ligne suivante.
Code: [ Select ]
tlistener.onLoadInit = function(target_mc) {
Après cette ligne, ajoutez
Code: [ Select ]
// Attach a text-field for the title
target_mc.createTextField("_title", target_mc.getNextHighestDepth(), 0, target_mc._height-20, target_mc._width, 20);
target_mc["_title"].background = true;
target_mc["_title"].text = target_mc.title;
target_mc.createTextField("_title", target_mc.getNextHighestDepth(), 0, target_mc._height-20, target_mc._width, 20);
target_mc["_title"].background = true;
target_mc["_title"].text = target_mc.title;
- // Attach a text-field for the title
- target_mc.createTextField("_title", target_mc.getNextHighestDepth(), 0, target_mc._height-20, target_mc._width, 20);
- target_mc["_title"].background = true;
- target_mc["_title"].text = target_mc.title;
Que devrait Ajouter une boîte blanche en arrière-plan avec le titre trouvé dans le fichier XML au bas de l'image, mais Im allant seulement par ce que je vois dans le code et il peut ne pas fonctionner du tout.
Strong with this one, the sudo is.
- routhu
- Beginner


- Inscription: Fév 28, 2007
- Messages: 47
- Loc: India
- Status: Offline
Salut joebert,
Merci de repley ur. Mais je ne suis pas en mesure d'obtenir le texte au bas de l'image.
Je ne suis pas en mesure de résoudre que l'un des deux derniers jours.
Pouvez-vous svp jeter un oeil à mon code.
J'ai mis en place Whatever U dit, mais pas en mesure d'obtenir.....
Pouvez-vous vérifier une fois. Voici le code.
Mon texte Nom du champ est «desc_txt"
Merci de repley ur. Mais je ne suis pas en mesure d'obtenir le texte au bas de l'image.
Je ne suis pas en mesure de résoudre que l'un des deux derniers jours.
Pouvez-vous svp jeter un oeil à mon code.
J'ai mis en place Whatever U dit, mais pas en mesure d'obtenir.....
Pouvez-vous vérifier une fois. Voici le code.
Mon texte Nom du champ est «desc_txt"
Code: [ Select ]
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
thumbnails = [];
titname = [];
link = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
thumbnails[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
titname[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
link[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
thumbnails_fn(i);
//trace(link[i]);
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
/////////////////////////////////////
p = 0;
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 8;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
if ((_root._xmouse>=(hit_right._x-350)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=(hit_left._x+350)) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
}
} else {
delete tscroller.onEnterFrame;
}
};
}
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
thumbnail_mc["t"+k].title = titname[k];
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
// Attach a text-field for the title
target_mc.createTextField("desc_txt", target_mc.getNextHighestDepth(), 0, target_mc._height-20, target_mc._width, 20);
target_mc["desc_txt"].background = true;
target_mc["desc_txt"].text = titname[k];
trace(titname[k]);
target_mc._x = hit_left._x+(target_mc._width+10)*k;
target_mc.pictureValue = k;
//trace(target_mc.pictureValue);
title_mc.desc_txt.text = description[k];
//trace(description[p]);
target_mc.onRelease = function() {
p = this.pictureValue;
nextImage();
getURL(link[p], "_self");
};
target_mc.onRollOver = function() {
this._alpha = 80;
thumbNailScroller();
};
target_mc.onRollOut = function() {
this._alpha = 100;
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}
if (loaded) {
xmlNode = this.firstChild;
thumbnails = [];
titname = [];
link = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
thumbnails[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
titname[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
link[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
thumbnails_fn(i);
//trace(link[i]);
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
/////////////////////////////////////
p = 0;
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 8;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
if ((_root._xmouse>=(hit_right._x-350)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=(hit_left._x+350)) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
}
} else {
delete tscroller.onEnterFrame;
}
};
}
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
thumbnail_mc["t"+k].title = titname[k];
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
// Attach a text-field for the title
target_mc.createTextField("desc_txt", target_mc.getNextHighestDepth(), 0, target_mc._height-20, target_mc._width, 20);
target_mc["desc_txt"].background = true;
target_mc["desc_txt"].text = titname[k];
trace(titname[k]);
target_mc._x = hit_left._x+(target_mc._width+10)*k;
target_mc.pictureValue = k;
//trace(target_mc.pictureValue);
title_mc.desc_txt.text = description[k];
//trace(description[p]);
target_mc.onRelease = function() {
p = this.pictureValue;
nextImage();
getURL(link[p], "_self");
};
target_mc.onRollOver = function() {
this._alpha = 80;
thumbNailScroller();
};
target_mc.onRollOut = function() {
this._alpha = 100;
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}
- function loadXML(loaded) {
- if (loaded) {
- xmlNode = this.firstChild;
- thumbnails = [];
- titname = [];
- link = [];
- total = xmlNode.childNodes.length;
- for (i=0; i<total; i++) {
- thumbnails[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
- titname[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
- link[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
- thumbnails_fn(i);
- //trace(link[i]);
- }
- firstImage();
- } else {
- content = "file not loaded!";
- }
- }
- xmlData = new XML();
- xmlData.ignoreWhite = true;
- xmlData.onLoad = loadXML;
- xmlData.load("images.xml");
- /////////////////////////////////////
- listen = new Object();
- listen.onKeyDown = function() {
- if (Key.getCode() == Key.LEFT) {
- prevImage();
- } else if (Key.getCode() == Key.RIGHT) {
- nextImage();
- }
- };
- Key.addListener(listen);
- previous_btn.onRelease = function() {
- prevImage();
- };
- next_btn.onRelease = function() {
- nextImage();
- };
- /////////////////////////////////////
- p = 0;
- function thumbNailScroller() {
- // thumbnail code!
- this.createEmptyMovieClip("tscroller", 1000);
- scroll_speed = 8;
- tscroller.onEnterFrame = function() {
- if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
- if ((_root._xmouse>=(hit_right._x-350)) && (thumbnail_mc.hitTest(hit_right))) {
- thumbnail_mc._x -= scroll_speed;
- } else if ((_root._xmouse<=(hit_left._x+350)) && (thumbnail_mc.hitTest(hit_left))) {
- thumbnail_mc._x += scroll_speed;
- }
- } else {
- delete tscroller.onEnterFrame;
- }
- };
- }
- function thumbnails_fn(k) {
- thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
- thumbnail_mc["t"+k].title = titname[k];
- tlistener = new Object();
- tlistener.onLoadInit = function(target_mc) {
- // Attach a text-field for the title
- target_mc.createTextField("desc_txt", target_mc.getNextHighestDepth(), 0, target_mc._height-20, target_mc._width, 20);
- target_mc["desc_txt"].background = true;
- target_mc["desc_txt"].text = titname[k];
- trace(titname[k]);
- target_mc._x = hit_left._x+(target_mc._width+10)*k;
- target_mc.pictureValue = k;
- //trace(target_mc.pictureValue);
- title_mc.desc_txt.text = description[k];
- //trace(description[p]);
- target_mc.onRelease = function() {
- p = this.pictureValue;
- nextImage();
- getURL(link[p], "_self");
- };
- target_mc.onRollOver = function() {
- this._alpha = 80;
- thumbNailScroller();
- };
- target_mc.onRollOut = function() {
- this._alpha = 100;
- };
- };
- image_mcl = new MovieClipLoader();
- image_mcl.addListener(tlistener);
- image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
- }
- routhu
- Beginner


- Inscription: Fév 28, 2007
- Messages: 47
- Loc: India
- Status: Offline
Salut Joebert,
Par le code ci-dessous je suis texte obtenir. Mais le texte ne pas dupliquer ce qui n'est pas le défilement.
pouvez-vous regarder à la fois.
Merci
Krish
Par le code ci-dessous je suis texte obtenir. Mais le texte ne pas dupliquer ce qui n'est pas le défilement.
pouvez-vous regarder à la fois.
Merci
Krish
Code: [ Select ]
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_left._x+(target_mc._width+10)*k;
target_mc.pictureValue = k;
desc_txt.text = titname[p];
//trace(description[p]);
target_mc.onRelease = function() {
p = this.pictureValue;
nextImage();
getURL(link[p], "_self");
};
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_left._x+(target_mc._width+10)*k;
target_mc.pictureValue = k;
desc_txt.text = titname[p];
//trace(description[p]);
target_mc.onRelease = function() {
p = this.pictureValue;
nextImage();
getURL(link[p], "_self");
};
- function thumbnails_fn(k) {
- thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
- tlistener = new Object();
- tlistener.onLoadInit = function(target_mc) {
- target_mc._x = hit_left._x+(target_mc._width+10)*k;
- target_mc.pictureValue = k;
- desc_txt.text = titname[p];
- //trace(description[p]);
- target_mc.onRelease = function() {
- p = this.pictureValue;
- nextImage();
- getURL(link[p], "_self");
- };
- joebert
- Sledgehammer


- Inscription: Fév 10, 2004
- Messages: 13455
- Loc: Florida
- Status: Offline
Quote:
J'ai mis en œuvre quel que soit u dit, Mais pas en mesure d'obtenir.....
J'ai oublié que les clips sont vidés quand ils charge le contenu, le titre est probablement la variable la poubelle avant qu'elle ne soit utilisée.
Im d'idées, désolé.
Strong with this one, the sudo is.
- IceCold
- Guru


- Inscription: Nov 05, 2004
- Messages: 1254
- Loc: Ro
- Status: Offline
Lier joebert...mieux dit que vous êtes à bout de patience 
Toujours lorsqu'ils traitent avec des vignettes qui contiennent à la fois du texte et des images,
fabrication d'un support pour le pouce, ajoutez toutes les propriétés à elle.
Ensuite, createEmptyMovieClip juste pour un MovieClip image dans laquelle vous pouvez charger l'image.
à savoir:
Toujours lorsqu'ils traitent avec des vignettes qui contiennent à la fois du texte et des images,
fabrication d'un support pour le pouce, ajoutez toutes les propriétés à elle.
Ensuite, createEmptyMovieClip juste pour un MovieClip image dans laquelle vous pouvez charger l'image.
à savoir:
Code: [ Select ]
this.createEmptyMovieClip("mcThumb0", 0);
mcThumb0.var1 = "something from xml";
mcThumb0.var2 = "something from xml";
mcThumb0.var3 = "something from xml";
// when loading a new image in the thumb
mcThumb0.createEmptyMovieClip("img", 0);
mcThumb0.img.loadMovie("some image");
mcThumb0.var1 = "something from xml";
mcThumb0.var2 = "something from xml";
mcThumb0.var3 = "something from xml";
// when loading a new image in the thumb
mcThumb0.createEmptyMovieClip("img", 0);
mcThumb0.img.loadMovie("some image");
- this.createEmptyMovieClip("mcThumb0", 0);
- mcThumb0.var1 = "something from xml";
- mcThumb0.var2 = "something from xml";
- mcThumb0.var3 = "something from xml";
- // when loading a new image in the thumb
- mcThumb0.createEmptyMovieClip("img", 0);
- mcThumb0.img.loadMovie("some image");
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”
- routhu
- Beginner


- Inscription: Fév 28, 2007
- Messages: 47
- Loc: India
- Status: Offline
- IceCold
- Guru


- Inscription: Nov 05, 2004
- Messages: 1254
- Loc: Ro
- Status: Offline
Voulez-vous des images et des diagrammes pour expliquer cela? Probablement aussi d'un film, de son mieux lorsque son action...n'est-ce pas ennuyeux comme des images statiques.
Il suffit de démarrer un nouveau projet très simple et l'utilisation de mon exemple, vous aurez l'idée.
Il suffit de démarrer un nouveau projet très simple et l'utilisation de mon exemple, vous aurez l'idée.
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”
Page 1 sur 1
Pour répondre à ce sujet, vous devez vous connecter ou vous enregistrer. Il est gratuit.
Afficher de l'information
- Total des messages de ce sujet: 9 messages
- Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 48 invités
- Vous ne pouvez pas poster de nouveaux sujets
- Vous ne pouvez pas répondre aux sujets
- Vous ne pouvez pas éditer vos messages
- Vous ne pouvez pas supprimer vos messages
- Vous ne pouvez pas joindre des fichiers
