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
> 
> 
> 
> 
> 
> 
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hs5hjbr/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124121653/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</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