Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scrollpane border not in scene but re-appears in movie

Status
Not open for further replies.

cyclegeek

Programmer
Sep 4, 2001
62
US
I have the usual kind of scrollpane problem - getting rid of the border.

Oldnewbie had a good tip to use the following in the actionscript for the scrollpane movieclip instance:

_level0.scrollpaneinstance.boundingBox_mc._visible = false;

I've also tested this:

myColor = new Color(_level0.OrgChart.boundingBox_mc);
myColor.setRGB(0xFFFFFF);

and this (which I couldn't get to work at all):

this.setStyleProperty("border", false);

The first two solutions work when testing just the scene that the scrollpane belongs to. But when the whole movie gets tested, the border reappears.

A couple questions I keep asking myself are, is the code in the wrong place? do I have the wrong syntax for setStyleProperty border property?

I've read some articles on 're-skinning' components but I'm still very new to Flash so that sort of thing is still scary.

Cheers and thanks,
cyclegeek
 
Just to make sure... Is the scollpane actually on _level0 in your full movie?

Wow JT that almost looked like you knew what you were doing!
 
From the debugger window I see the following path:

_level0.SECTION_ORGANIZATIONAL_CHART.OrgChartMC.boundingBox_MC.boundingBox

It looks like there's only one level for the whole movie.

OrgChartMC is the name for the scrollpane instance.
 
Code:
_level0.instanceOfScrollPane.setStyle("borderStyle","none");

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
Yeah, for some reason that particular line of code doesn't even remove the border when testing only the scene. I wonder if .setStyle is MX2004 syntax and .setStyleProperty is just MX.

Anyhoo - I think I came up with a temporary, albeit much less elegant solution - I opened up the scrollpane component and futzed with a class that controls the dimensions, adding in a line that sets the _visible property to false. I don't like it, because it's like shutting off the water main to fix a leaky faucet, but it gives me some breathing room to look for a better solution.

Thanks for the feedback and let me know if you have any other ideas.

Cheers,
cyclegeek
 
I'm using MX 2004 Pro. That method above works like a charm for the v2 scrollpane component. Unfortunately I don't have an install of MX here at work so I can't check it out.

Bummer...

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top