Let me ask the question another way: how do I access movieClips and/or TextFields within my custom TitleBackground _in_general_, regardless of what I call them. Suppose there's a movieClip called "someClip" inside my TitleBackground and I want to changes it's _visible prop. How do I get a handle to this clip? Neither "window.TitleBackground.someClip" nor "window.skinTitleBackground.someClip" seem to be "public". It's as if I need to specify that they are public in an interface somewhere, but I have no idea how?

Muzak wrote:

If for some reason you want to put your own title textfield in the header, you'll need to have a movieclip (instance name 'title_mc') that contains a textfield (instance name 'text') inside your custom TitleBackground.

Woops.. that's incorrect..
You need to have a textfield named "title_mc" ;-)
But again, you should probably leave it up to the Window to create the title 
for you.

regards,
Muzak

----- Original Message ----- From: "Muzak" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, May 18, 2007 10:16 PM
Subject: Re: [Flashcoders] how to access custom 
TitleBackground(skinTitleBackground) of Window


The Window component class takes care of creating a title for you.
You don't need to do anything, just set the .title property on the Window 
instance.

If for some reason you want to put your own title textfield in the header, you'll need to have a movieclip (instance name 'title_mc') that contains a textfield (instance name 'text') inside your custom TitleBackground.

The textfield might get affected by the stretching of the TitleBackground 
though, so not sure how well this will work out.

regards,
Muzak

----- Original Message ----- From: "Andrew Sinning" <[EMAIL PROTECTED]>
To: "Flash Coders" <[email protected]>
Sent: Friday, May 18, 2007 9:39 PM
Subject: [Flashcoders] how to access custom TitleBackground 
(skinTitleBackground) of Window


I've created a TitleBackground movieClip by following the instructions in the MX04 online help "To set the title of an Window component to a custom movie clip symbol" (below). Now I'd like to make a call to a function inside of that clip or access properties within that clip directly. The window has a property skinTitleBackground the value of which is an object of type "TitleBackground", but TitleBackground doesn't have any public properties. Inside my TitleBackground movieClip there is a TextField called "titleText" that I would like to be able to set the text of. So far the only way I've been able to change it is by having a loop within the movieClip check on the value of an external variable. There should be another way, right?



_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to