class People extends MovieClip { private var num:Number; private var thisPeople:MovieClip; private var thisPeople2:MovieClip; function init() { var PeopleNum = Math.floor(Math.random()*10)%3 + 1; _x = 275+40*num; _y = 140; // attach TimeMan movieclip inside container movieclip thisPeople = attachMovie("People"+PeopleNum, "People1", 1); thisPeople.onPress = function() { this.gotoAndPlay(2); _root.e04.start(); } } }