PDA

View Full Version : Access Public Functions And Properties


chad
07-20-2006, 05:54 PM
I'm building two components (component1 and component2). component1 is complete and runs as expected (or so I thought). component2 contains an instance of component1 on its stage. When I run component2, component1 runs as expected. The problem:

When I try to access component1's public properties and methods from component2's actionscript, they are always undefined. I have the actionscript files linked to their respective flash component. If I try to access component1's public methods and properties in the actions panel in flash it works fine. Why are component1's public methods and properties inaccessible in component2's actionscript file?