all groups > macromedia flash sitedesign > august 2003 >
You're in the

macromedia flash sitedesign

group:

Flash MX Component Question



Re: Flash MX Component Question steph
8/13/2003 9:12:08 PM
macromedia flash sitedesign: Give your scrollpanes different instance names. You can then access their
style properties through action script (don't change them in your library,
as the changes will be applied to all the instances:

scrollPane1.setStyleProperty("background", 0XFF0000) //this will make it
red, you can make it any colour you want...

Hope this helps,

Steph

"mistainfa" <webforumsuser@macromedia.com> a écrit dans le message de news:
bheafu$rci$1@forums.macromedia.com...
[quoted text, click to view]

Flash MX Component Question mistainfa
8/13/2003 9:27:27 PM
I have 3 different scrollpanes in my movie, I need to edit the background color
on one of the boxes without changing the others, I thought I could just give
then different names but that didn't work. I also tryied to drag another scrollpane
onto the stage and It asked if I wanted to use the exsisting component or replace
it with a new one, but It doesn't tell you how to make another one independent
of the others.

I know it's simple, but I just can't figure it out. I need some help asap.

Thank you.

Rob.

AddThis Social Bookmark Button