deanagit / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

interactively change flashvars or attr with javascript #453

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
it is just a feature i am looking for.
I thought swfobject offer me some method to replace the swf and its parameter 
by javascript....
but.. as i found.. it is not..

here is a suggestion. at least what can do is unload and reload according to 
the new option. thanks.

Original issue reported on code.google.com by yill...@gmail.com on 30 Mar 2010 at 8:26

GoogleCodeExporter commented 9 years ago
If you just want to pass new variables / invoke a method to change a video etc 
inside 
the swf, then use ExternalInterface (this functionality will not be added to 
SWFObject, as it is already available).

If you want to replace a swf with another on the page, then you can do that 
through 
API methods (it just involves a bit of extra code) - read this tut:
http://learnswfobject.com/advanced-topics/load-a-swf-using-javascript-onclick-ev
ent/

BTW - in future, post authoring questions etc to the list. More people will rad 
it / 
answer your questions there.

Original comment by aran.rhee@gmail.com on 30 Mar 2010 at 11:24