I want to load SWF file dynamically in my webpage. But I don’t know how to do it. Is it possible to load SWF from back-end? In this website Insert SWF into html page I found a way to load SWF, but it is static. I have a database where I will store the paths of the SWF files and load those files dynamically. Is there any way to dynamically change the source of the swf object [ “EMBED SRC=”file.swf” ]?
Any information will be very helpful to me. Thank you.
I want to load SWF file dynamically in my webpage. But I don’t know
Share
Though I have no personal experience using Wicket, but here’s how I understood it should go. Use the AttributeModifier to change the value of the
valueattribute of theparamtag and thesrcattribute of themovietag. You also need to give them the Wicket id’s on the HTML template to be able to refer them from the Java code. In general the HTML template would look something like this:You could also do it on JavaScript level to be even more dynamic by using for instance jQuery to switch the SWF sources. Here’s a working example.