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:
Anonymous2007-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
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:
Anonymous2007-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:
Anonymous2007-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.