John Singleton wrote:
> From: Glen Pike <[email protected]> To: Flash Coders List
> <[email protected]> Sent: Mon, March 8, 2010 3:04:47
> PM Subject: Re: [Flashcoders] Re: swf doesn't work the same online
> 
> var nNavs:Array = new Array(); for(var i:int = 0; i < numLinks;i++) {
>  var nav:Sprite = nav(nNames[i], nUrls[i], positions[i], 0x0e778a);
> 
> It throws error 1067 on the above line: implicit coercion of value
> type void to an unrelated type flash.display.Sprite, which frankly
> makes sense; however, I'm not sure how I should create the variable
> to push it onto the stack by doing otherwise. Thanks, John

are you really using glen's nav() function that returns a sprite, and
not accidently your original version?

and a remark: I'd recomemnd to avoid to sue the same variable name both
for a function and a local variable, this means asking for trouble
(althouight it propably works in your code as long as the nav variable
is local and the nav function is global).

cheers,
valentin

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to