RaymondP
05-09-2007, 10:07 AM
Im after fixing my problem with dynamic content in my scrollplane using the code below
1 to load the dynamic movieclip into the scrollplane
var i:Number=0;
var mcMain:MovieClip;
function init() {
parsed = 0; <<< Used to prevent unlimited refresh loop
scrollPane.contentPath = "WallpaperMask";
mcMain = scrollPane.content;
}
init();
2 The xml gallery code ive left out the xml crap thats not causing it worked fine until i added the refresh code
var item_mc = menu_mc.attachMovie("ImageIcon","item"+item_count, item_count);
item_mc._y = 10+Math.floor(i/3)*120;
item_mc._x = 10+(i%3)*140;
item_count++;
totalheight = item_count*120/3;
trace(totalheight)
Background._height = totalheight;
if (parsed == 0) {
parsed = 1; <<< prevent refresh loop
trace("refreshing");
_root.Explorer.Wallpaper.scrollPane.refreshPane()
} else {
}
It works fine on every browser ive tried it on apart from opera with ie , firefox and the flash player displaying it correctly . But in opera the scrollbar isnt visible at all ?
Any ideas on whats calling this ?
1 to load the dynamic movieclip into the scrollplane
var i:Number=0;
var mcMain:MovieClip;
function init() {
parsed = 0; <<< Used to prevent unlimited refresh loop
scrollPane.contentPath = "WallpaperMask";
mcMain = scrollPane.content;
}
init();
2 The xml gallery code ive left out the xml crap thats not causing it worked fine until i added the refresh code
var item_mc = menu_mc.attachMovie("ImageIcon","item"+item_count, item_count);
item_mc._y = 10+Math.floor(i/3)*120;
item_mc._x = 10+(i%3)*140;
item_count++;
totalheight = item_count*120/3;
trace(totalheight)
Background._height = totalheight;
if (parsed == 0) {
parsed = 1; <<< prevent refresh loop
trace("refreshing");
_root.Explorer.Wallpaper.scrollPane.refreshPane()
} else {
}
It works fine on every browser ive tried it on apart from opera with ie , firefox and the flash player displaying it correctly . But in opera the scrollbar isnt visible at all ?
Any ideas on whats calling this ?