мне нужно изменить цвет объекта при наведении курсора мыши на объект. Вот код:
CODE
chart1.param1.addEventListener(MouseEvent.MOUSE_OVER, onParamOver);
var colorInfo:ColorTransform = chart1.patam1.transform.colorTransform;
function onParamOver(event:MouseEvent):void
{
// Set the color of the ColorTransform object.
colorInfo.color = 0x003399;
// apply the change to the display object
chart1.param1.transform.colorTransform = colorInfo;
var colorInfo:ColorTransform = chart1.patam1.transform.colorTransform;
function onParamOver(event:MouseEvent):void
{
// Set the color of the ColorTransform object.
colorInfo.color = 0x003399;
// apply the change to the display object
chart1.param1.transform.colorTransform = colorInfo;
Но ничего не происходит.. и в выводе пишет: TypeError: Error #1009: Не удается вызвать свойство или метод со ссылкой на объект "null".