its declared outside that fucntion in the classes body, for access
outside this function
On Jul 29, 2008, at 9:35 PM, Marcelo Mandaji wrote:
have i tried to declare the variable navHolder correctly?
var navHolder:Sprite = new Sprite();
On Tue, Jul 29, 2008 at 4:07 PM, Patrick J. Jankun <[EMAIL PROTECTED]>
wrote:
Here is the whole function i use to, adding the same listeners to
another
object fires those without any prblems :| can someone explain to me
what is
wrong?
private function initNav() : void {
navHolder = new Sprite;
navHolder.addEventListener(MouseEvent.MOUSE_OVER,
navOnMouseOver);
navHolder.addEventListener(MouseEvent.MOUSE_OUT,
navOnMouseOut);
navHolder.addEventListener(MouseEvent.CLICK, navOnMouseClick);
navHolder.addEventListener(Event.MOUSE_LEAVE, navOnMouseOut);
for (var i : int = 0;i < navItemsTxt.length;i++) {
var nav_item : MovieClip = new navItem as MovieClip;
nav_item.tf.text = navItemsTxt[i];
nav_item.tf.selectable = false;
nav_item.bg.alpha = .2;
nav_item.y += (nav_item.height + vertGap) * i;
navHolder.addChild(nav_item);
}
navHolder.x = 20;
navHolder.y = stage.stageHeight - navHolder.height - 20;
stage.addEventListener(Event.RESIZE, stageResized);
addChild(navHolder);
}
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
--
/****
* Marcelo Mandaji
* http://www.marcelomandaji.com
* msn: [EMAIL PROTECTED]
**/
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders