Advertisement
WindowsTV

Untitled

Dec 5th, 2015
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function addObject(rootObj, libraryMc, mcName, x, y, frame)
  2. {
  3.     trace (libraryMc +  ": " + mcName);
  4.     rootObj.attachMovie(libraryMc, mcName, rootObj.getNextHighestDepth(), {_x:x, _y:y});   
  5. } // end of the function
  6.  
  7.  
  8.  
  9. //the code I want to work inside the function
  10. objectFigure2_mc.gotoAndStop(2); //objectFigure2 is the mcName
  11.  
  12. //how I call my function
  13. addObject(this, "object_mc", "objectFigure2_mc", 139, 417);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement