Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

lolwut Actionscript

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 );
}

Name: Anonymous 2007-07-23 23:28 ID:jjBic4pT

Since when can I use Haskell or C in a flash movie. I'm sure I could do some obfusicated bullshit writing outside libraries and then writing shit in actionscript (lol, rly dodged that bullet amirite) to use the libraries, and then finding a way to ahve flash include the libararies in the compiled swf.

>2
The clips are being created in root at this point in time (method is also in root) as I'm only getting everything to work before putting it all together. Objects in root can call the method to generate the required animation (at least in theory). I COULD just do all the shit in the objects themselves, but then I'd have to put it in all the objects which adds to the filesize and makes shit cluttered. Also, your suggestion did not work.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List