Hi again,
I've found a solution that meets my needs.
To load a swf when clicking on a category, we can use the variable "lbl" that contains the current category name.
In Playlist.as I add a line to the function that starts in line 64:
private function setLabel(lbl:String) {
function xxx() {
this.text = lbl;
}
Tweener.addTween(Title, {_alpha:0, transition:"easeInQuad", time:.3, onComplete:xxx});
Tweener.addTween(Title, {_alpha:100, transition:"easeOutQuad", time:.3, delay:.5});
//HERE STARTS THE CODE LOADING THE SWF THAT READS THE CATEGORY NAME
_root.loaderVoices.loadMovie ("voices/"+lbl+".swf");
//HERE ENDS THE CODE LOADING THE SWF THAT READS THE CATEGORY NAME
}
I hope it's useful for someone else.
|