Hello, i tried using '_self' in my flash links using SWFobject but that doesn't work, it does work when i don't use SWFobject. I've searched forums and sites for anwsers but none of them worked. So far the links only work when i use '_blank'
here is teh link of my test page:
http://www.hodiaudirekton.com/test.htm
i've used '_blank' on the Radiohead link
getURL ('http://www.hodiaudirekton.com/radiohead','_blank'); on the others i tried:
I tried some things proposed here on the forum but so far none of them where succesfull. this post is kinda ma last hope, i hope maybe one of you can help me thank you in advance :)
The weirdest thing is that on some of my older flash files, i went back and they work fine (_blank brings up new tab or window), but now, even if I copy/paste the exact same code... it brings up the browser "popup blocked" window. My code looks same as 'birds' does.
Well the flash files works perfectly without using the SWFobject. Then all the links work flawless.
Its when i use SWFobject they stop working, and all of my board members had the same problem an they all use different browsers and flashplayer versions...
"In Adobe Flash Player 9 update 3 (v9.0.115.0), calling getURL (or its ActionScript 3.0 equivalent, navigateToURL) does not work properly when the calling Flash Player movie (SWF) file is located in a different domain than its hosting HTML page. An exception to this issue is when the target name is "_blank" or the HTML parameter AllowScriptAccess is set to "always.""
add so.addParam("allowScriptAccess", "always"); to your swfobject script and all should be hunky-dory.
your SWFObject code is in the head of your document, but it isn't in an onload statement. that means the page is trying to execute the javascript before the DOM element <div id="flashcontent"> has been created.
you can either paste the SWFObject code in your markup AFTER the flashcontent DIV (leave the swfobject.js lin in the head though) or you can wrap your SWFObject code in an onload or domready call:
<script type="text/javascript"> window.onload = function (){ var so = new SWFObject("http://www.hodiaudirekton.com/designs/flash-files/hd-header.swf", "hd-header", "800", "286","1", "#FFFFFF"); so.addParam("wmode", "transparent"); so.write("flashcontent"); } </script>
BTW, even though you're using transparent mode, you should still declare a background color. it's a required param according to Geoff's docs, and wmode=transparent will nullify whatever color you specify anyway.
the links still don't work tough its very strange:
http://hodiaudirekton.ipbfree.com/index.php?
this one still does so i guess it must something with ipb mayeb i shoudl ask if anyone has problems with it there http://www.hodiaudirekton.com/test.htm