PDA

View Full Version : how to change layers


toshesh
09-22-2003, 04:51 AM
Hi everyone. I'm sure this is possible in some way but could anyone tell me how please?

I have a scrollpane displaying buttons and mcs inside. What I want to do is to be able to click buttons, which are inside the scrollpane, to change the content of the scrollpane.

1. I don't want to delete the scrollpane but just change the things inside.
2. Button determines the scrollpane content

I was thinking on the lines shown below which basically says when pressing a button go to layer2 but I'm sure this is not enough.


_level0.paneContent["button" + id].onRelease = function () {
gotoAndPlay("layer2");
}

spriggan
09-22-2003, 05:30 AM
try for loading external SWF's or pictures


on (release){
_parent.myScollPane.loadScrollContent("URL");
}



try for loading MC's in your libary (you use the linkage identafier)


on (release){
_parent.myScollPane.setScrollContent( myMCLinkageName);
}


Not sure what your pathing is in your movie. _parent will refernce one level above your button. If your scrollpane is two above then use _parent._parent. If it's on your main timeline then use _root