Log
.swf Browser
My .swf Browser (I need a better name) is very close to a state that works ok-ish. I just need to work on making the scrollbars change length and finish writing a cgi to display the movies alone. I’ve got logic to display only movies that can be displayed in the user’s plugin. In other words, MX experiments won’t show up as options in Flash Player 5. I find it a little amazing that a version 5 movie can load mx movies, but it does. I just have to remember to turn off compression in the mx publish settings.
It’s driven by a cgi that returns an xml document to the flash player. The really tricky thing about it was parsing the height and width of the movie itself. If you grab height and width with actionscript, it gives you only the size of elements on stage, not the stage size. So, I used a little perl script courtesy of Flash Kit that parses the file headers. Perfect for scaling the loaded movie.
The only real remaining issue is that a lot of my movies fail when loaded into a movie clip. Too much reliance on using absolute paths… But, anything that relies on grabbing _xmouse and _ymouse is flaky at best. The “click draw” movies are especially buggy when it comes to getting the mouse position. And trying to do a hitTest—forgetaboutit. It seems like maybe the globaltolocal and localtoglobal functions would do what I need. But I feel like that go against the spirit, that all my movies should just work…
I need to do some research and trials.
By the way, Hossam, if you still read this thing (um, does anyone read it?), this is is the final product of the search engine thing that we talked about in class. A little mutated, but the general idea.
06/19/02 08:08PM Flash
Recently Played on iTunes
-
“12:51”
Room on Fire
The Strokes
10/02/08 20:57 -
“Hospital Food”
Electro-Shock Blues
Eels
10/02/08 20:53 -
“Captain Easychord”
Sound-Dust
Stereolab
10/02/08 20:48