TimMontreal
Programmer
I am using the createEmptyMovieClip to loop through a database and create a list of entries of a message board and then make the mc the content of a scrollpane.
Is is possible to change the starting point location from the default of 0,0 to say for example 200, 100 when using the createEmptyMovieClip. My problem is that the movieclip is created to match up to the 0,0 location of my maintimeline and I want to line up the upper left corner of the mc with the upper left corner of my scrollpane.
Here is my code, thanks for any help!
var depth = 0;
var nextY = 0;
var count;
board_mc = createEmptyMovieClip("categories_mc", 70);
board_mc.focusEnabled = false;
for (count = 0; count < this.catagoryCount; count++) {
category_mc = board_mc.attachMovie("categoryHeader", "category" + count + "_mc", depth++, {_y:nextY});
category_mc.id = this["catagory" + count + "ID"];
category_mc.title = this["catagory" + count + "Title"];
buildForumList(category_mc, this);
nextY += category_mc._height - 1;
}
spDisplay.setScrollContent(board_mc);
spDisplay.setScrollPosition(0, 0);
Is is possible to change the starting point location from the default of 0,0 to say for example 200, 100 when using the createEmptyMovieClip. My problem is that the movieclip is created to match up to the 0,0 location of my maintimeline and I want to line up the upper left corner of the mc with the upper left corner of my scrollpane.
Here is my code, thanks for any help!
var depth = 0;
var nextY = 0;
var count;
board_mc = createEmptyMovieClip("categories_mc", 70);
board_mc.focusEnabled = false;
for (count = 0; count < this.catagoryCount; count++) {
category_mc = board_mc.attachMovie("categoryHeader", "category" + count + "_mc", depth++, {_y:nextY});
category_mc.id = this["catagory" + count + "ID"];
category_mc.title = this["catagory" + count + "Title"];
buildForumList(category_mc, this);
nextY += category_mc._height - 1;
}
spDisplay.setScrollContent(board_mc);
spDisplay.setScrollPosition(0, 0);