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

Flash MX 2004 and Skinning the window component

Status
Not open for further replies.

raznov

Programmer
Apr 8, 2002
110
US
I have successfully imported the sampletheme.fla assets file into my movie and changed the title bar of the window component. My question is, how do I change the background of the component.. it is by default white. It is not in the assets folder as a movieclip, so it must be created dynamically using the drawing API, but where is this code?

K
 
how did you go with this problem?

Can I see what you are trying to work on
 
The code is here:
Macromedia\Flash MX 2004\en\First Run\Classes\mx\containers\Window.as

You can override the function that draws the background without extending the component if you like, because private members aren't truely private. The background is called back_mc and is created in createChildren(Void) and is modified in other methods. I would recomend directly accessing back_mc.

For example you could attach your own custom background symbol into back_mc at a depth of negative one so it won't overwrite, and will be below, the other elements attached to back_mc:
Code:
my_window.back_mc.attachMovie("myBack", "myBack_mc", -1);


Philip Keiter
Senior Flash Software Developer
Sphyrras
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top