NGINX Rewrite to Properly Pass a Variable to Flash Object (SWF)?

I have this rewrite rule:

location /emd/ {
                rewrite ^/emd/([0-9]*)$ /js/flash/player.swf?id=$1;

That does not work, the variable is not passing, but if I do this:

location /emd/ {
                rewrite ^/emd/([0-9]*)$ /js/flash/player.swf?id=$1 redirect;

It works.

I would love for the browser to just show a single url and not forward the browser on.

I can get this url to work, however

this works too: /emd/?id=90584

Which is odd.

I want
/emd/90584 to work if possible

All feedback appreciated.