Flash Movie Maker Update: Open hyperlinks in the same window

This is an Archived Article

This is an archived Blog Article referencing an earlier version of Toufee. These articles are maintained for the sake of posterierity. Information presented on these pages mat not apply to this new version of Toufee.

It's here finally...we've updated the Toufee flash movie maker so that you can set hyperlinks to open in the same window as the flash movie. The default behaviour of hyperlinks however will still remain - they open in a new browser window. However, you now have the option to change this to open hyperlinks in the same window. Let me explain this with a test flash movie of mine (I know you're complaining, its the same old promobanner flash movie that you might have been used to by now:) ). So here is a simple flash movie with a hyperlink button on it (Learn More). As is the default behavior, Toufee will open this hyperlink in a new window.

We'll be now adding a few lines of code to the HTML code that Toufee generates so that hyperlinks open in the same window. The original HTML code of this movie is this:

<p style="visibility:visible;"><object type="application/x-shockwave-flash" data="http://pro.toufee.com/cgi2/player.pl?userID=56&projID=promobanner" height="280" width="200" style="width:200px;height:280px"><param name="movie" value="http://pro.toufee.com/cgi2/player.pl?userID=56&projID=promobanner" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="salign" value="lt" /><param name="wmode" value="transparent"/> <param name="flashvars" value="userID=56&projID=promobanner"/></object></p>

Wherever it says userID=56&projID=promobanner we'll be appending an additional parameter called target=_self such that it reads userID=56&projID=promobanner&target=_self (you'll have to change it at three places in the code). Also, you would add this <param name="allowscriptaccess" value="always"/> just before the </object> tag. So the final code would be something like this (note I've highlighted the extra code)

<p style="visibility:visible;"><object type="application/x-shockwave-flash" data="http://pro.toufee.com/cgi2/player.pl?userID=56&projID=promobanner&target=_self"height="280" width="200" style="width:200px;height:280px"><param name="movie" value="http://pro.toufee.com/cgi2/player.pl?userID=56&projID=promobanner&target=_self" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="salign" value="lt" /><param name="wmode" value="transparent"/> <param name="flashvars" value="userID=56&projID=promobanner&target=_self"/><param name="allowscriptaccess" value="always"/></object></p>

Here is the promobanner flash movie after the change

Hope this helps. I will keep you posted with more flash movie tips and flash movie creation tutorials shortly. Btw, happy Easter holidays to all!

  • 10 years ago
  • 2628 Views

Contact Us