Git Product home page Git Product logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 28, 2024
Just figured out the code... it was really simple!  In the computerChildren() 
method
of ComponentTreeItem, simply add this code:

if (component is SWFLoader){

    var swfLoader:SWFLoader = component as SWFLoader;
    var content:SystemManager = swfLoader.content as SystemManager;
    if (content && content.application){
        children.push(new ComponentTreeItem((content.application as Application), this));
    }
}

Original comment by [email protected] on 26 Oct 2009 at 9:52

from fxspy.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 28, 2024
Actually... updated...  The additional code should come before the "add the 
'Standard
Children' code, and should return.  We do not want any 'standard' children 
added for
the SwfLoader, else the FindComponent utility will not work correctly. 

if (component is SWFLoader){
    var swfLoader:SWFLoader = component as SWFLoader;
    var content:SystemManager = swfLoader.content as SystemManager;
    if (content && content.application){
        children.push(new ComponentTreeItem((content.application as Application), this));
    }
    return children;
}

// Add the "standard" children

Original comment by [email protected] on 28 Oct 2009 at 8:12

from fxspy.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 28, 2024
HI All

I found the same issue , but i  added this code into corresponding 
ComponentTreeItem.as. when i compiled, i got new flexspy.swc. when i tried to 
add 
this into my application project lib and run the app. i got an error

---- Illegal override of FlexModuleFactory in mx.core.FlexModuleFactory.

i am using flex sdk 3.2 to compile

Please help me on this

Original comment by [email protected] on 29 Dec 2009 at 2:01

from fxspy.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 28, 2024
Thanks Weston, this worked like a champ for me:
if (component is SWFLoader){
    var swfLoader:SWFLoader = component as SWFLoader;
    var content:SystemManager = swfLoader.content as SystemManager;
    if (content && content.application){
        children.push(new ComponentTreeItem(DisplayObject(content.application), this));
    }
    return children;
}

Original comment by [email protected] on 3 May 2010 at 11:49

from fxspy.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.