User:Kruhly/Flash/Magnifier

From WikiEducator
Jump to: navigation, search

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

Magnifier

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 ...