KBD

Keith Devens .com

Friday, November 21, 2008 Flag waving
Code is poetry. – wordpress.org

Archive: May 20, 2002

← May 19, 2002May 21, 2002 →

Daily link icon Monday, May 20, 2002

Flash

From http://www.flashguru.co.uk, via Chris Langreiter, the FlashMX event model.

Ok, the article should have been a few pages shorter. Someone should teach the author about the point of a metaphor. You can use a metaphor to introduce an unfamiliar topic in familiar terms, but then you drop the metaphor. Smiley mad

Google/Dilbert

I don't get it... if they're not redesigning their logo, what's with the Dilbert? (via Dane Carlson)

Mozilla bug fixed

I had run into this same bug. Glad it's been fixed.

Sysinternals

Sysinternals looks like they have a ton of cool amazing utilities for Windows. Probably worth checking out.

Comments

I don't know what surprises me more. That we still have huge discussions on how to comment code, that Slashdot still posts things regarding commenting code, or that I'm sitting here reading it.

Stephen Jay Gould

Oh, no. Stephen Joy Gould just died today. Thanks to Justin for the heads up.

And Slashdot reports this too.

Flash parameters

I know there's a way to pass a parameter to flash using the <param> tags in HTML. I need to know what param tags Flash will understand, and then how to retrieve the parameter in Flash. Any assistence will be appreciated. Smiley

Ok, the only way I found was to pass parameters in general was to pass them on the URL-line. So you'd have something like:

<param name="movie" value="movie.swf?key=value">
 and
<embed src="movie.swf?key=value">

Then you can just access it through JavaScript (caugh, caugh... ActionScript), like so:

url = this._url;
pos = url.indexOf("?");
params = url.substr(pos+1);
param = params.split("=");
key = param[0]
value = param[1];
//This code only works for one parameter, of course.

I thought there was a way to pass parameters to flash in a general way through <param> tags, but I couldn't find anything showing that I could do that. If there is a way, someone please tell me.

Finally, the only thing I don't know about the parameter passing scheme above is what URL decoding needs to be done Smiley

Update: if you really wanted to be cheap, you can do it in 3 lines instead of 5 or 6 and just do:

url = this._url;
pos = url.indexOf("=");
value = url.substr(pos+1);

This is way less general than the first, but will give you exactly the same result for one parameter, if you just need the value Smiley

Updated 6-Jun-02: I don't know why I didn't link to the place I found this, but I didn't. I found the link again in an e-mail I had sent, so here it is at Flash Kit.com.

Blogicon

Via BlogSnob, Blogicon. Basically, a blogger's dictionary. Very neat. Only comment: "LOL" is much older than blogging.

Continuations made simple

This might be just what I need. Via LtU, Continuations Made Simple and Illustrated.

Here's Ehud's description:

An introduction to continuations using Python.

Starts by showing code in CPS, and only then talks about capturing the current continuation. Since call/cc is quite confusing, this seems like a good approach.

Glad he thinks call/cc is confusing too. I don't feel quite so bad for not understanding it yet. I get basically what continuations are supposed to be, but I wouldn't know how to use them, or really know what's going on when someone else uses them, let alone how they're implemented, which is almost as important.

Hopefully this article will give me the "aha".

← May 19, 2002May 21, 2002 →
November 2008
SunMonTueWedThuFriSat
 1
2345678
9101112131415
16171819202122
23242526272829
30 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 5 posts

Recent comments XML

new⇒Calif. Supreme Court to take up gay marriage ban

I would argue the point is not​definitional.  While the word​marriage is su...

Justin: Nov 20, 4:37pm

Java join function

Meh, don't have null strings in​your string arrays imo, but you're​welcome ...

Keith: Nov 19, 7:51pm

Girls, please don't get breast implants

sorry but another thing i have to​make a comment on about you​men...the men...

happynow: Nov 17, 11:36pm

Books by Vincent Cheung

to all Cheung​fans:

read:

http://www.progin​osko.com/aquascum/cheung.h...

Zamir: Nov 16, 9:07am

Spider solitaire

To undo or not to undo that is the​question.
I'm an undoer. 
My dad​was n...

Can Turk: Nov 15, 2:50pm

Generated in about 0.054s.

(Used 7 db queries)

mobile phone