Can anyone see a reason why the above code by Pellepiano will work in firefox but in IE it seems to just bring up a blank window with a scrollbar next to where the swf is embedded? This is cinfusing the hell out of me...You help is muchly appreciated.
So, in an effort to get this question answered I ended up placing this same post on several different forums such as Kirupa and Flashkit. A user at Kirupa replied with the following solution which works a treat in both IE and FireFox. Here is the user's response -
*shudders at code*
Try doing it with PHP. It'd be very easy, just when you call your swf, use this instead:
Did you copy and paste pellepiano's code directly? if so IE is possibly going wrong because the board converted part of the classid attribute into a
depending on how you want the movie to be cached you might be better off using flashvars instead of appending the query string to the filename. if you add the variables to the filename, each time their values change the movie needs to be reloaded from the server (sometimes this is desirable, sometimes it isn't)
Thanks for getting back. There was a smiley in the middle of the code when I copied it but it looked ok when i pasted it...however perhaps it wasn't. Good to know though and next time I will try that code again.
For my purposes though, the php code above did the trick. I don't need to use the value more than once. It is just to personalise my flash party invite to the people we are sending it to. So it says, "RecipientName, You're invited!" in the welcome text...and it meant that we could send a different link to each person with their name as the value tagged to the end of the link.
Of course it would have been even better if I could have worked out a way of sending a group email where the recipient's email address is used as the value instead of their name and when they click on the link to the php page it takes that value cross-references their name in a database or text file and then displays their name in the swf file. Much easier then having to send seperate emails to everyone. Anyways, i guess that's for next time. Of course the only thing I wouldn't know how to do here is how to get their email address sent to the php file with the user only having to click the link in the email.
By the way, do you know if it is possible to embed flash in an email successfully across multiple platforms?