PDA

View Full Version : [Actionscript] Function inside a MovieClip



DemonDomen
December 22nd, 2008, 04:07 PM
Hi

I'm making my own tree objects. The code adds a tree, from the library, and uses functions like addNode, which are IN the mc.

The problem is that I don't know, how to add the code and functions to the MovieClips, after they were dynamically added to the scene.

I've tried adding the code into the mc in the library, and adding an onLoad function. In every case I tried, I get "Warning: addNode is not a function".