Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function addObject(rootObj, libraryMc, mcName, x, y, frame)
- {
- trace (libraryMc + ": " + mcName);
- rootObj.attachMovie(libraryMc, mcName, rootObj.getNextHighestDepth(), {_x:x, _y:y});
- } // end of the function
- //the code I want to work inside the function
- objectFigure2_mc.gotoAndStop(2); //objectFigure2 is the mcName
- //how I call my function
- addObject(this, "object_mc", "objectFigure2_mc", 139, 417);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement