Name: Anonymous 2007-07-23 12:29 ID:jjBic4pT
I'm trying to write a method to create a MovieClip instance and then play it at a certain frame within the clip.
sb is a blank array initialized with 0 length. zoomj is the MovieClip object in the library. I find the Actionscript library to be batshit loopy at times, so I have no idea wtf I'm doing wrong.
_global.genClip = function (inFrame:Number, inX:Number, inY:Number){
var bob:Number = sb.push( createEmptyMovieClip( "barfo", getNextHighestDepth( ) ) ) - 1;
sb[bob].attachMovie( "zoomj", "bleh", getNextHighestDepth(), {_x:( inX + 67.2 ), _y:( inY + 67.2 ) } );
sb[bob].gotoAndPlay( inFrame );
}
sb is a blank array initialized with 0 length. zoomj is the MovieClip object in the library. I find the Actionscript library to be batshit loopy at times, so I have no idea wtf I'm doing wrong.
_global.genClip = function (inFrame:Number, inX:Number, inY:Number){
var bob:Number = sb.push( createEmptyMovieClip( "barfo", getNextHighestDepth( ) ) ) - 1;
sb[bob].attachMovie( "zoomj", "bleh", getNextHighestDepth(), {_x:( inX + 67.2 ), _y:( inY + 67.2 ) } );
sb[bob].gotoAndPlay( inFrame );
}