Hi guys, I've been having a bit of a problem upgrading from AS2 to AS3. I used to have this line:
I tried changing it to
but this gives me an error saying "1118: Implicit coercion of a value with static type flash.displayisplayObject to a possibly unrelated type flash.display:MovieClip."
How can I attach a library object to my field?
-------------------------
Matt Grande
C# Master.
Ruby on Rails Admirer.
ActionScript Student.
JavaScript Hate-Monger.
Code:
var si:MovieClip = searchField.attachMovie("toc_item", "ti"+pg, searchField.getNextHighestDepth(), ({x:40+c*285, y:r*150+90}));
I tried changing it to
Code:
var si:MovieClip = searchField.addChild(toc_item);
How can I attach a library object to my field?
-------------------------
Matt Grande
C# Master.
Ruby on Rails Admirer.
ActionScript Student.
JavaScript Hate-Monger.