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

Pages: 1-

Actionscript Help

Name: noko 2007-11-20 21:18

for(i=0,l=books.length;i<l;i++){
clips.push(_root.createEmptyMovieClip("clip"+i,1).loadMovie(books[i][1], 1));
}
trace(clips[0]._x);

---

For some reason the trace prints 'undefined'.  books[i][1] is an image url;  Only 1 image loads though, and I can't move them because they all become 'undefined' in the array.  Advice?

Name: Anonymous 2007-11-20 21:22

UPDATE:

I changed the loop to:
for(i=0,l=books.length;i<l;i++){
clips.push(_root.createEmptyMovieClip("clip"+i,i).loadMovie(books[i][1], 1));
}

it now loads all the images but they're still undefined

Name: Anonymous 2007-11-20 22:02

lol actionscript

Name: Anonymous 2007-11-21 10:53

Is ActionScript as stupid as JavaScript? I mean typeof NaN; 1/-0; stuff are sometimes objects but not quite there; typeof null == typeof {} but try and access null's properties; null vs false vs NaN vs Infinity vs fucking dipshits stop it; for iterates over an array's keys, no simple and reliable way to tell an object's class or whether it has certain property, etc.?

Name: Anonymous 2007-11-21 10:59

Oh, and there's much more... NaN != NaN; bullshit automatic conversion between string and numbers combined with a nice unique operator to add and concatenate; undefined and anything related to it; unified ints and floats for lots of awesome, subtle bugs; lack of integer division; semicolons, braces and empty regexes cause problems; magic hidden methods in objects you can't replicate (but don't dare to treat as any other key); all object keys must be strings; little better than alert() to debug; and the general principle that if something walks like a duck, quacks like a duck, and looks like a duck, it may be a rhino and stick his horn up your ass when you try to use it like a duck.

Name: Anonymous 2007-11-21 11:04

Overall, JavaScript has some interesting ABSTRACT BULLSHITE, but its implementation in the language is a total failure, its type system is utter bullshit, and its language implementations are even worse than the language. Plus they have this habit of crapping out when something goes wrong (which, having a terribly broken type system, is going to happen very often), going DO NOT WANT and just halting execution.

Name: Anonymous 2007-11-21 11:19

I quite like Javascript. Nice lil language.

Name: Tab !UIZncl.5Go 2007-11-21 12:06

I'd go with ObjC myself.

Name: Anonymous 2007-11-21 12:13

>>8
ObjC

oh god  

Name: Anonymous 2007-11-21 16:40

>>9-1
lol

Name: OP 2007-11-21 17:27

>.>

Name: Anonymous 2007-11-22 15:18

I think you need to wait for the movies to load before trying to access them

Name: Anonymous 2010-11-14 9:10

Name: Anonymous 2010-12-20 14:54

Name: Anonymous 2010-12-24 10:14

Name: Anonymous 2011-02-03 6:54

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