|
|
#1 (permalink) |
|
OYXLUSFlash.com Staff Member
|
First , create an instance of the Sliding list on the stage (drag it from the library) and give it a name, for example, PList_mc.
The handler function will look like this (write it on a timeline frame action script): Code:
PList_mc.onItemSelect= function(n:XMLNode){ ... }
Code:
<item title="New mayor to tone down glitz" url="www.url.com" target="_blank" /> Code:
PList_mc.onItemSelect= function(n:XMLNode){
getURL(n.attributes.url, n.attributes.target);
}
Code:
<item title="New mayor to tone down glitz" frame="5" /> Code:
PList_mc.onItemSelect= function(n:XMLNode){
your_movie_clip.gotoAndStop(Number(n.attributes.frame));
}
3. To load an external clip: Code:
<item title="New mayor to tone down glitz" clip="clips/contact.swf" /> The handler function can look like: Code:
PList_mc.onItemSelect= function(n:XMLNode){
your_movie_clip.loadMovie(n.attributes.clip);
}
An alternative using MovieClipLoader class would be: Code:
var mcl = new MovieClipLoader();
PList_mc.onItemSelect= function(n:XMLNode){
mcl.loadClip(n.attributes.clip, your_movie_clip);
}
Last edited by Adrian; 11-23-2008 at 06:31 PM. |
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT. The time now is 06:42 PM.







Linear Mode
