just create a new movie clip in your library (Ctrl+F8 ) and place inside it a dynamic text and call it's instance: dtext
Export the movie for actionscript (right click on it-> linkage-> linkage name -> name it "link")
Next, for each link read from xml file, attach the movie and set it's coordinates and it's text.
i.e.:
// 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");
- }
- }
that's kind of all.
“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. ”