better way to do this.
Thanks,
Claudia
On 5/17/06, Claudia Barnal <[EMAIL PROTECTED]> wrote:
> Sure (and thanks for looking into this):
>
> APP:
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" >
> <mx:ApplicationControlBar dock="true">
> <mx:Button label="Button"/>
> </mx:ApplicationControlBar>
> <MyPanel width="100%" height="100%" />
> </mx:Application>
>
>
>
> COMPONENT (MyPanel):
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml"
> creationComplete="creationCompleteHandler()">
> <mx:Script>
> <![CDATA[
> private function creationCompleteHandler():void
> {
> // trace(parent); // Works
> trace(parent.controlBar); // Gives warning
> }
> ]]>
> </mx:Script>
> </mx:Panel>
>
> On 5/17/06, Manish Jethani <[EMAIL PROTECTED]> wrote:
> > On 5/17/06, Claudia Barnal <[EMAIL PROTECTED]> wrote:
> >
> > > This is the error message I get:
> > > "Access of possibly undefined property controlBar through a reference
> > > with static type flash.display:DisplayObjectContainer."
> >
> > So you're accessing the controlBar property, which is public, and
> > getting this error? Can you post a small sample that reproduces this
> > problem?
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.