PDA

View Full Version : scrollPane problem


BenWorbs
09-25-2007, 02:42 PM
Hello,

I'm using a scrollPane in my movie.

I've dragged it onto the stage. given it a name and added the following actionscript

scrollAgree.setStyle("themeColor","haloBlue");
scrollAgree.setSize(330,409);
scrollAgree.border_mc._height = 0;
scrollAgree.border_mc._width = 0;
stop();

where scrollAgree is the instance name of the scrollPane

I'm working on a mac in osx on flashCs3 and every looks to be working fine in safari and firefox.

HOWEVER

When I view the movie on a pc in IE7 the jpeg I'm trying to scroll is appearing in it's full length above the intended scrollPan is some instances

Can anyone see where I'm going wrong please

Thanks

Ben :)

atomic
09-25-2007, 02:47 PM
Are you dynamically loading that picture?

Have a link to this?

BenWorbs
09-25-2007, 02:50 PM
no I'm loading the picture using the componant inspector

i.e

contentPath exports/userAgreement02.swf

BenWorbs
09-25-2007, 02:52 PM
it works 100% of the time on a mac in firefox and safari and just sometimes in IE on a pc.

atomic
09-25-2007, 03:01 PM
Make sure the .swf is fully loaded before setting it as the scrollpane's content.

BenWorbs
09-25-2007, 03:53 PM
thanks Atomic I worked it out

var scrollAgree:mx.containers.ScrollPane;
scrollAgree.contentPath ="scrollContent";
scrollAgree.setStyle("themeColor","haloBlue");
scrollAgree.setSize(300,300);
scrollAgree.border_mc._height = 0;
scrollAgree.border_mc._width = 0;
stop();

:D

atomic
09-25-2007, 04:17 PM
;)