I thought it would work to sweep through the Stage and all containers.

I could sweep through the registered view, but I have nested views
where the links are visible.

It's not the views that need to be disabled, it's the link within the view.


On 8/15/05, JesterXL <[EMAIL PROTECTED]> wrote:
> All Views', all containers?  Um, no, in that case, you'll need a global
> registry, much like how ViewHelper's are registered by ID, etc.
> 
> However, I question why you need such sweeping changes?  Why not toggle the
> enabled/disabledness of each view when it needs to be?
> 
> ----- Original Message -----
> From: "dave buhler" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Monday, August 15, 2005 10:00 AM
> Subject: Re: [flexcoders] Sweeping the Stage in Search of a
> MovieClip/Component Type
> 
> 
> No love.
> 
> I ran this to try and reference all the links within the application
> scope, but it returned just those properties of the application scope.
> I am looking to reference the Links within all views/containers.:
> 
> ----------------------------------------------------------------------------------
> 
> public function showProfileByRole () : Void {
> for(var p in mx.core.Application.application)
> {
> _root.taDisplayData.text += p + '\n';
> if(this[p] instanceof Link)
> {
> this[p]._visible = false;
> }
> }
> }
> 
> ----------------------------------------------------------------------------------
> 
> 
> 
> 
> On 8/14/05, JesterXL <[EMAIL PROTECTED]> wrote:
> > for(var p in this)
> > {
> >     if(this[p] instanceof Link)
> >     {
> >         this[p].visible = false;
> >     }
> > }
> >
> > ----- Original Message -----
> > From: "dave buhler" <[EMAIL PROTECTED]>
> > To: <[email protected]>
> > Sent: Sunday, August 14, 2005 11:14 PM
> > Subject: [flexcoders] Sweeping the Stage in Search of a
> > MovieClip/Component
> > Type
> >
> >
> > Hello,
> >
> > In Flash, I've swept the stage in search of certain object types (like
> > TextFields), so I could disable the objects by either removing them or
> > changing their visibility.
> >
> > In Flex, is there a way to sweep all objects in search of specific
> > component types, including those that are part of another view?
> >
> > I have Links where the visibility needs to be toggled off and on.
> >
> > I thought about making the Link a sub-class, too and adding the
> > instance name to an array when the Link is created. Ideas, thoughts
> > and suggestions are welcome.
> >
> > Dave
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hklkc05/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124136851/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!</a>.</font>
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to