|
|
#1 (permalink) |
|
Junior Member
Join Date: Nov 2008
Posts: 4
|
Hello Adrian,
I have to load a swf containing a voiceover that reads the title of the category when you click on it, but I don't find a category select handler. Could you help me find where to tweak this? Thanks in advance. |
|
|
|
|
|
#2 (permalink) |
|
Junior Member
Join Date: Nov 2008
Posts: 4
|
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. |
|
|
|
|
|
#3 (permalink) |
|
OYXLUSFlash.com Staff Member
|
Why don't you use the handler function ?
You have the sample code in the help file: Code:
<item title="New mayor to tone down glitz" clip="clips/contact.swf" />
....
PList_mc.onItemSelect= function(n:XMLNode){
your_movie_clip.loadMovie(n.attributes.clip);
}
|
|
|
|
|
|
#4 (permalink) |
|
Junior Member
Join Date: Nov 2008
Posts: 4
|
Hi Adrian,
I'm sorry for the late response, I haven't connected lately. I think the code you propose here, and that can be found in the help file, is for loading an external swf when clicking an "item" (page icon), but I needed to load an external swf containing a voiceover that reads the name of a "category" (folder icon) when clicking on it. Anyway I have now the need to show in the textbox (result_txt) not only the name of the item clicked but the complete route (category1/category2/.../item), so I'm opening a new thread. Thanks in advance. |
|
|
|
![]() |
| Bookmarks |
| Tags |
| category select handler |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT. The time now is 09:41 PM.









Linear Mode
