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

Pages: 1-

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 14:04 ID:32iy/Wxt

Where are you createing the movieclips? try

var curDepth = _root.getNextHighestDepth();
_root.createEmptyMovieClip("barfo"+curDepth, curDepth)

Name: Anonymous 2007-07-23 14:36 ID:Heaven

ActionScript is not TOURING complete, use Haskell.

Name: Anonymous 2007-07-23 14:42 ID:/KOjSmbv

Or c++
c++ is TOURING COMPLETE extension to c
And it's not INTERPRETED like haskell, so it's faster than ASM

Name: Anonymous 2007-07-23 14:59 ID:gYr9a4W2

DONT USE C++ OR HASKELL BECAUSE D HAS GARBAGE COLLECTION

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.

Name: Anonymous 2007-07-24 0:01 ID:WU6U/gT7

I don't know much about Flash, but perhaps you need to call gotoandplay on zoomj, instead of barfo? Maybe this'll work:

_global.genClip = function (inFrame:Number, inX:Number, inY:Number){
    attachMovie( "zoomj", "bleh", getNextHighestDepth(), {_x:( inX + 67.2 ), _y:( inY + 67.2 ) } ).gotoAndPlay( inFrame );
}

Name: Anonymous 2007-07-24 1:43 ID:cLT129xK

Incidentally, and largely unrelated, is there anything out there to make flash movies in Linux? Wine is kind of a PITA.

Name: Anonymous 2007-07-24 3:11 ID:Aw1t4yrj

>>8
SWF::Builder

Name: Anonymous 2007-07-24 4:46 ID:Heaven

>>6
Write a Lisp interpreter in ActionScript.

Name: Anonymous 2007-07-24 15:38 ID:YdRqeeDr

>>10
Still doesn't get around the shittiness of actionscript.

Name: Anonymous 2010-12-11 15:55

OP here.
Anyone?

Name: Anonymous 2010-12-11 15:57

>>12
see >>10

Name: Anonymous 2010-12-24 11:21

Name: Anonymous 2011-02-04 14:43

Name: Anonymous 2011-02-04 16:49


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