so I needed to record a double click in flash for a project and went looking for code.
wow. there's a lot of convoluted and LONG code out there for such a simple thing! recording a double click shouldn't require 30 lines of code. if it does, you're doing something seriously wrong.
here's MY actionscript 2 (AS2) code for detecting a double click in flash if you want to change the speed at which you want to detect make 'double_click_wait' higher or lower. 11 lines of code is all you should need.
//mouse double click
var double_click_wait = 300;
var lastClick = 0;
var mouseListener:Object = new Object();
mouseListener.onMouseUp = function() {
if ((getTimer()-previousClick) < double_click_wait) {
trace("mouse double click ");
previousClick = 0;
}
previousClick = getTimer();
};
Mouse.addListener(mouseListener);
This code is meant for pls files but could easily be adapted for m3u. no benefit I can see in doing that though compared to pls.
-----
So for a little personal project I'm doing in flash I'm building an mp3 player.
Playing mp3's with flash is pretty easy and and making some buttons with play pause etc is also not really an issue. But loading a playlist file... well now we have a problem.
Most people seem to want to just creat an xml file becuase flash does that easily. But that seems like a little lazyness at the start and alot of tedious work down the road creating xml files all the time. I'd rather not have all that extra work later on and I'd rather have native support of .pls files for playing music.
I googled and couldn't find anyone who got this running except some guy, ming chan with m3u years ago, but the source is since gone and disapeared. So for anyone who's also stuck, please feel free to use my actionscript code, but if you improve it (It's messy I know...) please post in the comments.
Anyways here's the source code for parsing a .pls file in actionscript2.
It's pretty raw and brute force, but it works just fine. You have 2 string arrays at the end, one with the file location and one with the id3 name. unfortunetly track time isn't in a .pls file (it's also not in an m3u either) so you have to read that on your own with another function. ...maybe I'll post that after I write it.
Like beer? who doesn't? I just finished working on the current Stella Artois.com website for xmas, it was designed here at my work (Lowe Roche) by us and Dan Purdy an uber talented flash guru. Beyond doing a bulk of the xml and php code that runs it I also designed the printable paper ornaments you see there (the bird and star).
Go try printing them out. they're free and fun!
it was also a great exercise in 3ds max to foldable form construction and just a fun break from my usual programming heavy job.
all emails originally sent to genpets.com also go to my database. (replies from me or them don't). November 2008 had 3017 emails alone. and I tried to reply to most of those!!
if you're stumbling accross this site and are curious, check out www.brandejs.ca/gp_emails.php
Went to the DMA's (Digital Marketing Awards) last night here in Toronto. we (lowe roche) managed to pick up a silver for Burnrate and a bronze for terrified fly as well as a few other certificates I think. I'm not sure actually.... there was free booze. It was at Circa (club) and actually alright. who can complain about a place with a giant master chief halo sculpture.
For those of you kicking around hong kong, starting November 7th you'll have a chance to 'meet the genpets'
Genpets will be at the Microwave International Media Arts Festival in the project room.
links:
http://microwavefest.net/
http://en.wikipedia.org/wiki/Microwave_International_New_Media_Arts_Festival
http://blog.makezine.com/archive/2008/10/meat_after_meat_joy_meat.html
Make apparently mentioned Meat after meat joy the show in New york where my flesh shoe is. there's a big image of my flesh shoe and a meat American flag, but they didn't add the artist names :(
ah well.
You can also read about the show at
Boing Boing:http://www.boingboing.net/2008/10/17/meat-art-show.html
trendhunter : http://www.trendhunter.com/trends/raw-meat-as-art-the-meat-after-meat-joy-exhibit
eat me daily : http://www.eatmedaily.com/2008/10/meat-after-meat-joy-art-gallery-show/
holytaco: http://www.holytaco.com/2008/10/29/its-art-made-out-of-meat-no-really/
I've been back at sculpting again lately. I've had a break the last 2 years and it's been great, but it was time to get back into things other than programming.
I've been focusing mainly on programming and the web for the past year, but there's some new sculpture techniques I've been toying with.
One of those techniques involves sculpting an object on the computer (which I do all the time using 3ds max) and then using software to unfold that object from a 3d form, to a set of flat 2d printable pieces. This mesh can then be rebuilt as a full 3d form in the real world.
If that doesn't make sense check out the low quality blackberry pics I have of a halo helmet (which a lot of people seem to be making these days) I did as a test.
yes it's only paper, but then the final stage is to brush or spray on resin to harden it and then fiberglass it.
this is SO much more efficient than sculpting in clay, then doing a mold, then fiberglass. this gets the basic full form out right away and skips the middle man. Clay could still easily be applied to the surface though.
My Nike Flesh shoe will be in new york October 16th for the following show. if you're around go check it out!
Meat After Meat Joy, curated by Heide Hatry
16 October - 15 November
opening reception:
Thursday 16 October, 5:30 - 8:30 PM
Sheffy Bleier, Lauren Bockow, Adam Brandejs, Tania Bruguera, Nezaket Ekici,
Anthony Fisher, Betty Hirst, Zhang Huan, Tamara Kostianovsky, Simone Racheli,
David Raymond, Dieter Roth, Carolee Schneemann, Stephen j Shanabrook,
Jana Sterbak, Jenny Walton, Pinar Yolacan
If the flesh disturbs you, then the reality behind the issue would disturb you far more if we opened our eyes long enough to see it. We live in a culture disconnected from what it is doing to itself and others, we choose to ignore rather than deal with the reality we have created for ourselves.
– Adam Brandejs
Meat After Meat Joy brings together the work of contemporary artists who use meat in their work (raw meat, the concept of meat, its symbolism and viscera) in order to investigate the paradoxical relationship meat has to the body. Meat combines flesh, skin, muscle, organs, blood — each with its own relationship to the body, yet meat’s only reference to the body is as a once-upon-a-time living biological thing. By putting these artists together, the exhibition seeks to investigate the uncanny effect meat as a medium is for artist and viewer. This is not a show about meat as spectacle but about meat as signification, precisely because meat does not signify (a body) but its very annihilation.
Skin is the body’s largest organ and greatest protection. It is the body’s most public point of vulnerability and private realm of pleasure. Flesh is associated with the body often the body of Christ. It can’t be separated from the body except when it is torn, crucified, burned, flayed. Muscle and fat are anatomy, as well as the fit body, the football body, the anorectic body, the fat body. Meat is the body without skin. It has no identity. Meat cannot have a mood, cannot feel, nor have an intention.
And yet, an exhibition on meat seems like an obvious continuation of discussions of contemporary art and the body. Certainly in relation to feminism, meat has been an erotic and eschatological component of a libratory, transgressive discourse of female sexuality and the body beginning with Carolee Schneemann’s path-breaking 1964 Meat Joy. After Meat Joy, the female body was no longer the ‘poulet” or chick but an erotic and political force of the laugh of the Medusa (Helene Cixous)—the writhing ecstatic female body freed from the constraints of patriarchal definition (meat is the indefinable flesh) that expresses an epistemology (Interior Scroll 1975) into ontology (the feminist movement). In Meat Joy, although controversial, raw meat —animal human—and the human body are at their most uncontested and merged, for meat is not the absence or the other the body but an act of reclamation and affirmation of all that patriarchy had previously “disemboweled” from the female body.
But forty years later, in Meat After Meat Joy, meat, as metaphor or synecdoche of the body, is different because we recognize more clearly that meat is precisely what the animal or human body is when it is not. In other words, meat has no body, can’t be a body, may have been a body but is only called meat because it is no body. Meat here is neither flesh nor skin, but the notion of the human or animal at its most base, absolute zero point of being, “being” as completely without “Being”.
– Heide Hatry
So my flesh shoe is again in the latest issue of shock magazine, anyone have a copy and want to scan or take a digital photo? my buddy mentioned he saw it at a friends but didn't get a shot.
Not sure where to buy the magazine so if anyone can lend a hand that would be wicked and most doubly appreciated!
they didn't actually tell me they were printing it....
(126) Total entries in journal
// Finland 2003
"That was when I realized. I asked myself could some of what these people be talking about actually be dangerous? And the best thing I can do is stay close to them, track what they are interested in and either hack it or try to confuse the spaces in which they operate". - Rob Van Kranenburg