MultiMedia Systems/Multimedia Elements/Examples of Simulations
Contents
Flash Simulations
Masses and Springs
<flash>file=MassSpringLab2-rjk-random.swf|width=90%|height=500|bgcolor=#ffffff;|flashvars=?randomIndex=A|quality=best</flash>
<flash>file=MassSpringLab2-rjk-random.swf|width=90%|height=500|bgcolor=#ffffff;|flashvars=?randomIndex=A|quality=best</flash>
Blackbody radiation
<flash>file=Blackbody.swf|width=50%|height=300|quality=best</flash> embeds the following:
<flash>file=Blackbody.swf|width=50%|height=300|quality=best</flash>
</br>
Equations
<flash>file=Equation-grapher.swf|width=80%|height=500|flashvars=?coeffB=1|quality=best</flash> embeds the following:
<flash>file=Equation-grapher.swf|width=80%|height=500|flashvars=?coeffB=1|quality=best</flash>
</br>
Magnifier.swf
Interesting! The path to the image to be loaded needs to be relative to the current page not the location of the flash .swf for it to load:
<flash>file=Magnifier.swf|width=400|height=300|scale=noscale|salign=lt|flashvars=?glassSize=2&initialZoomSize=150&borderWidth=12&file=../../images/8/82/E_coli_sm.jpg&width=400&height=300</flash>
The following example
seems to indicate the same thing. Note: For the image to load underneath the magnifying glass, the height and width must be called as a "flashvars". The following creates the flash simulation above:
<flash>file=Magnifier.swf|width=400|height=300|scale=noscale|salign=lt| flashvars=?glassSize=2&initialZoomSize=150&borderWidth=12&file=../../images/8/82/E_coli_sm.jpg&width=400&height=300</flash>
The easiest way to get the correct defaults would be to export the simulation from eXe and look at the source ...
Open Office Impress swf export
<flash>file=Testswf.swf|width=60%</flash>