Is there any possibility I can “call” a local variable in a new function?
for ex.
function createMainText():void{
var dynText:TextField = new TextField();// local var
stage.addChild(dynText);
dynText.y=stage.stageHeight-80;
}
stage.addEventListener(Event.RESIZE, resiz);
function resiz(event:Event):void
// How can I "pass" this variable to the resiz function?
{ Tweener.addTween(dynText, {alpha:1, y:stage.stageHeight-80, time:0.3, transition:"easeIn"});
}