I am trying to tween an object in a parent MC
ActionScript Code:
[LEFT]Tweener.[COLOR=#000080]addTween[/COLOR][COLOR=#000000]([/COLOR]parent.[COLOR=#000080]newsHolder[/COLOR], [COLOR=#000000]{[/COLOR]x:-[COLOR=#000080]675[/COLOR], [COLOR=#0000FF]time[/COLOR]:parent.[COLOR=#000080]slideTime[/COLOR], transition:parent.[COLOR=#000080]slideTransition[/COLOR][COLOR=#000000]}[/COLOR][COLOR=#000000])[/COLOR];
[/LEFT]
Error : 1119: Access of possibly undefined property newsHolder through a reference with static type flash.display:DisplayObjectContainer.
Am I using the “parent.” incorrectly?
newsHolder is a sprite - how should I access it?
This works well when executed at the same level as newsHolder:
ActionScript Code:
[LEFT]Tweener.[COLOR=#000080]addTween[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000080]newsHolder[/COLOR], [COLOR=#000000]{[/COLOR]x:-[COLOR=#000080]675[/COLOR], [COLOR=#0000FF]time[/COLOR]:slideTime, transition:[COLOR=#000080]slideTransition[/COLOR][COLOR=#000000]}[/COLOR][COLOR=#000000])[/COLOR];
Tweener.[COLOR=#000080]addTween[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000080]infoTabHolder[/COLOR], [COLOR=#000000]{[/COLOR]x:-[COLOR=#000080]675[/COLOR], [COLOR=#0000FF]time[/COLOR]:slideTime, transition:[COLOR=#000080]slideTransition[/COLOR][COLOR=#000000]}[/COLOR][COLOR=#000000])[/COLOR];
[/LEFT]
Thanks
Ian