Re: [Flashcoders] Talking to Flash from JavaScript

2006-04-16 Thread Erik Porroa V.
Ey Jon. I know that you can control an flash object with Dreamweaver's behaviors (yep, JavaScript), but I'm not sure if it can control media components (If you are working with FLV). Go to Tag Inspector panel, then Behaviors, press "+" and choose Control Shockwave or Flash... I hope it wo

Re: [Flashcoders] Sorting objects within an Array ...

2006-04-14 Thread Erik Porroa V.
I forget you can use "Array.NUMERIC" when you want to sort an array :D So you must to put: aMovieClipsSorted.sort(Array.NUMERIC); Erik Porroa V. escribió: Ey Stephen, you can do something like this: //Create a function that return the sorted numbers function sortByNumber(a, b) { ret

Re: [Flashcoders] Sorting objects within an Array ...

2006-04-14 Thread Erik Porroa V.
Ey Stephen, you can do something like this: //Create a function that return the sorted numbers function sortByNumber(a, b) { return (a > b); } //I guess this array will be generated dinamically var aMovieClips:Array = new Array("mcClip0", "mcClip1", "mcClip2"); //A new array where will go the sc