PDA

View Full Version : Scroll plane working in everything but opera


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 ?

jggretton
05-09-2007, 11:07 AM
Could be unrelated, but have you got the background of your flash set as transparent - this can cause a lot of headaches in opera?

RaymondP
05-09-2007, 11:13 AM
No , this started happing when i added the refresh code basicly im loading the xml and then setting the height of an empty movieclip to the height of all my xml data and refreshing the scrollplane once .
This works in ie , ff and flash player

Any ideas ?