rach236
05-29-2006, 10:40 PM
Please can someone help me with this.
I am having a problem with the scrollPane component. What I want to do is to load an empty movieclip into the scroll pane and then create some content within this movie. At the moment I have an empty movie clip in my library "cars" (the linkage is set). I haven't got to creating content for the cars movie clip yet. I have the following script which isn't working. The cars movie loads but not into the scrollpane.
var cars:MovieClip;
var scrollPane:MovieClip;
scrollPane = attachMovie("ScrollPane", scrollPane, getNextHighestDepth(), {_x:10, _y:10, _width:400, _height:150});
scrollPane.contentPath="cars";
scrollPane.invalidate();
I was thinking of using the following script to load the content into the cars movie. I think I need to create an instance of the cars movie though eg. cars_mc which I'm not sure of how to do!
scrollPane.content.cars_mc.onEnterFrame = function() {
loadMovie("2.jpg", cars);
};
Any suggestions would be really appreciated this is doing my head in!!:confused:
I am having a problem with the scrollPane component. What I want to do is to load an empty movieclip into the scroll pane and then create some content within this movie. At the moment I have an empty movie clip in my library "cars" (the linkage is set). I haven't got to creating content for the cars movie clip yet. I have the following script which isn't working. The cars movie loads but not into the scrollpane.
var cars:MovieClip;
var scrollPane:MovieClip;
scrollPane = attachMovie("ScrollPane", scrollPane, getNextHighestDepth(), {_x:10, _y:10, _width:400, _height:150});
scrollPane.contentPath="cars";
scrollPane.invalidate();
I was thinking of using the following script to load the content into the cars movie. I think I need to create an instance of the cars movie though eg. cars_mc which I'm not sure of how to do!
scrollPane.content.cars_mc.onEnterFrame = function() {
loadMovie("2.jpg", cars);
};
Any suggestions would be really appreciated this is doing my head in!!:confused: