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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please, how can I remove borders in the scrollpane

Status
Not open for further replies.

ejgarcia

IS-IT--Management
May 28, 2003
72
US
Hello,

please how can I remove borders in the scrollpane in flash MX?

Thanks you
 
see if this helps... not my info:

If you want to adjust this for all components, you can edit the UI components source FLA.
Where those source FLA's are is system dependant, so you will have to lookfor them.
On win2k you can find them at:
C:\Documents and Settings\<user>\Application Data\Macromedia\Flash MX\Configuration\ComponentsNote that the 'Application Data' directory is a hidden one.

In that 'Components' folder, you'll find the 'Flash UI Components.fla'
Open it (if you get an error saying the file is already open, close the components panel).
Open the library. Look for the FboundingBox movieclip
Flash UI components > Component Skins > Global Skins > FBoundingBox Open it to edit.

Select the outline in the first frame of the Skin Elements layer and convert to Movieclip.
Make sure the center point is the top left corner of the outline.
Name it boundingBoxOutline.
On stage, give it an instance name of: boundingBoxOutline

In the second keyframe, delete the outline that is there and copy/paste (in place) the boundingBoxOutline mc from the first frame. Give it an instance name of: boundingBoxOutline2

//Add the following to the first keyframe, layer READ ME:
component.registerSkinElement(boundingBoxOutline, &quot;backgroundOutline&quot;);

//Add the following to the second keyframe, layer READ ME:
component.registerSkinElement(boundingBoxOutline2,&quot;backgroundOutlineDisabled&quot;);

You now have two new FStyleFormat properties :)
Last thing to do is to put the boundingBoxOutline MC in the right place in the library.

Flash UI Components > Core Assets - Dev Only > Other Assets.

You'll find the 'boundingBox' MC there as well.
Save the file.

If you have the Flash UI Component Set 2 installed, you'll have to do the same thing in that FLA.

While you're at it, you might be interested in doing the following as well:
Text in all components is often cut off at the bottom, especially characters like g, j, y...
To fix this, you can do the following:

Open the 'FLabel' Movieclip from the library

Flash UI components > Component Skins

Find this line of code:

this.labelField._height = this.labelField.textHeight + 2;

Change it into:

this.labelField._height = this.labelField.textHeight + 3;

Text will now display correctly :)

hth,
Muzak
 
You could allways change the color of the boundingbox editing the component's skin itself, but you can also do it with AS...

Background and border... 3 ways:

If your movie background was white for instance...

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

Or...

_level0.myscrollpane.boundingBox_mc._visible = false;

Or... For a transparency effect.

//level0.myscrollpane.boundingBox_mc._alpha = 50;



Regards,

cubalibre2.gif

I'm Bill Watson's biggest fan!
 
Thanks to all,

It works.

Best regards and thanks for your help,

Specially Oldnewbie,

Eduard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top