ActiveDen

Elegant XML Timeline (with Video Player) AS2 v.1.0

How can i loop the music file?

You can not loop the sound directly from the xml. You need to edit the fla, it’s easy: add this 3 lines of code. Go to library, edit elegantTimeline MC. Go to layer codes, and there, after line 291 add the following:

newMusic.onSoundComplete = function() {
newMusic.start();
};

How can i stop the music once the user clicks on the year buttons?

Open ElegantXmlTimeline.fla. Add this line of code after line 229 of layer “Codes”, inside elegantTimeline MC.
this._parent._parent._parent.newMusic.stop();

How can i remove the loop in the video player?

Open video_loader.fla
Open videoPlayer MC, go to layer “Codes”, line 31 > 34
Delete all this entry.
if (infoStatus.code == "NetStream.Play.Stop") {
  stream.seek(0);
  stream.play();
}

UPDATE January 2010

- made some minor changes in the code. Now the selected item in the menu reset to normal if user press “back to home”. Also, few months ago i activated HTML tags for description. If your version does not have this feature download the file again.

How can i load the first (or any other) item on init?

It’s easy: add these 2 lines of code inside “elegantTimeline” MC, layer codes, RIGHT AFTER line 117.

setItem (timeLine.milestones.milestone1);
changeContent (1);

This will load the first item. Change the number in both lines to load any other item in the list. As i marked with capitals, be sure to add these lines inside the “if” function that ends in line 118.

How can i resize the fla?

To change the size of the timeline some fla edits are necessary. Count that there are 2 main movieclips, the one with the main contents (mainContent MC) and the one with the bottom navigation (timeLine MC). Both are placed inside the main elegantTimeline MC that you will find easily in the library.

Well, in the first one (main content) you need to change the size of the boxes in the MASK layer and in the BASE layer. Then, go to frame 2 and 3 and edit the position of the elements inside the masked layers (TEXT, GRADIENT COVERS and HANG IMAGE ).

In the second you will need to edit also the MASK and BASE layer elements. Also here the width of the bands (both in BANDS layer) and the position of the right side cover. Don’t forget to center the dragger into your final width.

Once this done, just go to elegantTimeline MC, layer codes and change the width value that you will find in the line 127: var mskWidth:Number = 760;

Publish the file.

by
by
by
by
by