Variables passed thru HTML

ok, here’s another mind-boggler.

I have an HTML page that passes a variable, the easy way.
This is the HTML generated by Flash, to which I’ve added the part in **bold **(that is, P1=BARTHEZ, thus passing the variable P1 to flash, whose value is BARTHEZ

 <html xmlns="" xml:lang="fr" lang="fr">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<body bgcolor="#ffffff">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=",0,0,0" width="960" height="570" id="football_13" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="football_13.swf**?P1=BARTHEZ**" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="football_13.swf**?P1=BARTHEZ**" quality="high" bgcolor="#ffffff" width="960" height="570" name="football_13" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="" />

In my flash movie, I have a text field named “player”.
In my code, I have

_root.player.text = P1

When I launch the HTML page, the field is correctly filled with “BARTHEZ” in my flash movie.

if I code

_root.player.text = P1
if (P1 == undefined){
else _root.gotoAndStop(4)

it should work just fine, but I always get to frame 3, even when the player.text displays “BARTHEZ”

Any help or hint would be greatly appreciated…