il suffit de créer un nouveau clip dans votre bibliothèque (Ctrl + F8) et place à l'intérieur d'un texte dynamique et appeler son exemple: dtext
Exporter le film pour ActionScript (clic droit sur it-> lien-> nom de liaison -> nommez-le "link")
Ensuite, pour chaque lien lire à partir du fichier XML, joindre le film et définir ses coordonnées et son texte.
à savoir:
// create first a holder for the links:
this.createEmptyMovieClip("mcLinks", 100); // or any other depth or next highest depth
nLinkIndex = 0;
while (... read xml ...)
{
....
mylink = element.firstChild.nodeValue;
crtLink = mcLinks.attachMovie("link", "link"+nLinkIndex, nLinkIndex);
crtLink._x = x; // set x and y according to your needs
crtLink._y = y;
crtLink.dtext.text = myLink;
crtLink.dtext.autoSize = true;
crtLink.onRelease = function()
{
// jump somewhere, function of the link, best to a frame with a name read from xml file
// i.e.: _root.gotoAndPlay("frame_name");
}
}
- // create first a holder for the links:
- this.createEmptyMovieClip("mcLinks", 100); // or any other depth or next highest depth
- nLinkIndex = 0;
- while (... read xml ...)
- {
- ....
- mylink = element.firstChild.nodeValue;
- crtLink = mcLinks.attachMovie("link", "link"+nLinkIndex, nLinkIndex);
- crtLink._x = x; // set x and y according to your needs
- crtLink._y = y;
- crtLink.dtext.text = myLink;
- crtLink.dtext.autoSize = true;
- crtLink.onRelease = function()
- {
- // jump somewhere, function of the link, best to a frame with a name read from xml file
- // i.e.: _root.gotoAndPlay("frame_name");
- }
- }
thats nature de tous.
“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. ”