mybrainhurts
10-21-2005, 10:57 AM
Hello there! If anyone can answer this, I will be forever indebted. :D
I want to return information from a database (image URLs etc) and then create a varying number of movieclips from this. I then want to attach these movieclips to a single movieclip (acting as a container). All works fine until the point that I try to put all this into a scrollpane component. The movieclip (and subclips) are not displayed in the scrollpane and I get an error message. :( :(
Here is some example code:
createEmptyMovieClip("mc", 0);
mc.attachMovie("Circle", "myCircle", 1);
//sp.contentPath = "mc"; //Method 1 - Doesn't work
sp.contentPath = "Circle"; //Method 2 - This works because it is aleady is in the library
I created a movie clip symbol in the library called "Circle" (a big red circle) and given it a linkage name "Circle" also. I then placed a scrollPane on the stage and given it an instance name of "sp".
Can anyone please tell me how I can create a movieclip, attach another movieclip and then put it all into a scrollpane? :confused:
PS
The error message I get trying to use Method 1 is:
Error opening URL "file:///C|/Documents%20and%20Settings/Roger/My%20Documents/My%20Flash/mc"
I want to return information from a database (image URLs etc) and then create a varying number of movieclips from this. I then want to attach these movieclips to a single movieclip (acting as a container). All works fine until the point that I try to put all this into a scrollpane component. The movieclip (and subclips) are not displayed in the scrollpane and I get an error message. :( :(
Here is some example code:
createEmptyMovieClip("mc", 0);
mc.attachMovie("Circle", "myCircle", 1);
//sp.contentPath = "mc"; //Method 1 - Doesn't work
sp.contentPath = "Circle"; //Method 2 - This works because it is aleady is in the library
I created a movie clip symbol in the library called "Circle" (a big red circle) and given it a linkage name "Circle" also. I then placed a scrollPane on the stage and given it an instance name of "sp".
Can anyone please tell me how I can create a movieclip, attach another movieclip and then put it all into a scrollpane? :confused:
PS
The error message I get trying to use Method 1 is:
Error opening URL "file:///C|/Documents%20and%20Settings/Roger/My%20Documents/My%20Flash/mc"