Pregunta

I have a dynamic page (say myFlashContainer.jsp) which renders different Flash content based on which link was clicked.

Now the code which renders the Flash is rendered as follows;

<object height="100%" align="l" width="100%" id="player" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
<param value="always" name="allowScriptAccess">
<param value="player.swf" name="movie">
<param value="high" name="quality">
<param value="transparent" name="wmode">
<param value="" name="bgcolor">
<param value="exactfit" name="scale">
<param value="tl" name="salign">
<param value="false" name="menu">
<param value="" name="FlashVars">
<embed height="100%" align="l" width="100%" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowscriptaccess="always" flashvars="" menu="false" salign="tl" name="player" bgcolor="" wmode="transparent" scale="exactfit" quality="high" src="player.swf">
</object>

Now the Flash content is not actually created by me, but by some third-part vendor. I am more into UI development (HTML/CSS/JS)

So my question is how does different Flash content appear given that all pages use "player.swf" as the value.

Is there some kind of scripting which makes it possible ? If yes, what should I look for in the code ?

¿Fue útil?

Solución

A Flash player can be a complex program. Like PHP or Javascript it can load content dynamically. Check out the wikipedia article about it.

Otros consejos

The data might be sent using GET-like array (player.swf?param1=value1&param2=value2) in the src attribute and maybe the movie param.

You need to find out how your third party swf actually works and what kind of interaction it expects. There are several ways that player.swf could have been programmed. Using Flashvars is the more common way to have different load settings, but the .swf could also be calling a javascript function of yours.

You need to find out how you're suposed to interact with their swf.

So depending on the clicked link, you would set up the flash container differently (change the flashvar parameters, the javascript function or even something else)

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top