I tried to implement something like this in my HTML code:
so.addParam("play", "false");
and in the SWFObject JS code:
var vp = play ? play : 'false'; this.addParam('play', vp);
Wanted to be able to do what I did prior to implementing SWFObject using <param name="play" value="false" />
Was curious if anyone knows how to do this? How about loop options without needing to hard code in the Flash timeline? Such as: <param name="loop" value="false" />
why not use stop(); in the first frame actionscript of the SWF? seems easier to implement and manage...
as for your code, the conditional seems off... instead of var vp = play ? play : 'false';
shouldn't it be: var vp = play ? 'true' : 'false';
following the logic of: [condition] ? [if yes] : [else]
also not sure if the boolean requires quotes (usually booleans aren't treated as strings and don't need the quotes). that means if 'vp' is supposed to be a true boolean, the correct code might be: var vp = play ? return true : return false;
sorry, i haven't tested any of this, it's really late here and i'm about to go to sleep. :D
having a stop() action inside flash is the standard way to ensure the behaviour you are after.
If param name="play" value="false" was working for you before (through standard object/embed) then so.addParam("play", "false"); will do exactly the same thing.