1 person found this helpful
Usually you don't call drag and drop functions directly, but you can, if you pass in the right event with dispatchEvent(args here):
In general, use component ID in main app to call comp's functions.
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
Flex / AIR Development, Training, and Support Services
Thanks for the very quick response Greg. You have helped me a lot in the past so thanks for that too.
That does mostly answer my question, but what is the point of making a function "public" if you cant access it from another component?
You CAN access a public function of a component as long as you have a REFERENCE to that component.
there are several ways to achieve this. Look for the subrcriber pattern or, even better, use singleton classes to handle this (singleton pattern)
public var myCompOne:MyFirstComponentClass = new MyFirstComponentClass;
public var myCompTwo:MySecondComponentClass = new MySecondComponentClass;
myCompOne.myVar1 = myCompTwo.getMySpecialValue();