He ACE,

Try casting your string _pValue to a Sprite or MovieClip, because you cannot add a string to the displaylist.

Cheers,

Sidney

On Apr 24, 2008, at 3:30 PM, ACE Flash wrote:

Hi there,

I would like to define a variable, so I could pass any name to
createNavigatorButton and using removeNavigatorButton to remove it.

I wrote a simple code here http://www.privatepaste.com/e8tI4OgtHg, but I got an error msg => TypeError: Error #1034: Type Coercion failed: cannot
convert "_Flash" to flash.display.DisplayObject.


Any suggestion?

Thanks you
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to