RaymondP
05-08-2007, 07:53 PM
Im using the code below to load a movieclip with dynamic content imported from xml .
var i:Number=0;
var mcMain:MovieClip;
function init() {
scrollPane.contentPath = "WallpaperMask";
mcMain = scrollPane.content;
}
init();
The problem is the scrollplane cant adapt to the dynamic content which is loaded after the the movieclip is loaded into xml . To solve this ive created a simple line converted to a movieclip which is the same coler as the background into the xml mask movieclip which is loaded into the scrollplane .
While this works it completly kills my ability to add new items via xml because i have to manuly se this line to the culimitive height of the entire xml content .
I have allready used line._height = item_count / 3 x 130; and ive got the line to resize to the right size but because this is done after the xml movieclip has loaded the scrollplane dosnt update with the correct size .
Any ideas ?
var i:Number=0;
var mcMain:MovieClip;
function init() {
scrollPane.contentPath = "WallpaperMask";
mcMain = scrollPane.content;
}
init();
The problem is the scrollplane cant adapt to the dynamic content which is loaded after the the movieclip is loaded into xml . To solve this ive created a simple line converted to a movieclip which is the same coler as the background into the xml mask movieclip which is loaded into the scrollplane .
While this works it completly kills my ability to add new items via xml because i have to manuly se this line to the culimitive height of the entire xml content .
I have allready used line._height = item_count / 3 x 130; and ive got the line to resize to the right size but because this is done after the xml movieclip has loaded the scrollplane dosnt update with the correct size .
Any ideas ?