Passing web data; Web Player, HTML, Param, SendMessage

Looking back through this post http://forum.unity3d.com/viewtopic.php?t=4981&highlight=param+html and this documentation page, http://unity3d.com/support/documentation/Manual/Unity%20Web%20Player%20and%20browser%20communication.html … is there an easier way?

Specifically, is there anything like param that has come up with 2.0?

I have a chunk of data I need to pass into the web player (binary data represented as a hex string, maybe 500-1000 bytes). The web player needs these data immediately on load. Will SendMessage queue the event until the web player starts executing? (I.e., the first level loads and runs.) It looks like it would do the job, but I’m concerned about the message arriving in time (and not being dropped) across all possible browser configurations.

The easiest way to do that is to send a message from the unity player to the HTML, which then calls a callback function within the game. (CookieCutter does this)

Thanks – we’re now using something like the below code, dynamically generated in the web page that hosts the unity player.

		function GetPayload () {
			GetUnity.SendMessage("Payload", "SetData",
"1950555702005205470e15534617415a45550952010255030b4c4652164b"+
"165647065b0f5455075f545c120a5a58004448420d5b59085f4544715506"+
"5d490858504d555c08044e5c58030c5f0f1954050d5553510714");
		}