this piece of code is being placed inside a swf which is then being placed inside a mxml swfloader. The ProductDesigner is the name of the application and the selectRed is a HSlider mxml component. The error that I receive is that "Access of undefined property ProductDesigner" in the Flash CS5 when testing the swf. Yes I am able to pick up the intellisense to know that it knows that there is a ProductDesigner in the whatever it's called.
private function ChangeColor(event:MouseEvent):void {
var red:uint = ProductDesigner.mainTabs.tabContentColor.selectRed.value;
var green:uint= ProductDesigner.mainTabs.tabContentColor.selectGreen.value;
var blue:uint= ProductDesigner.mainTabs.tabContentColor.selectBlue.value;
this.transform.colorTransform=new ColorTransform(0,0,0,1,red,green,blue,1);
}
If this can't be done, is there a way to create a custom event that returns the forementioned data?