Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorbirds
    • CommentTimeMar 2nd 2008 edited
     
    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:

    getURL ('http://www.hodiaudirekton.com/art','_self');

    wich didn't work...

    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 :)
  1.  
    I've been having this SAME PROBLEM.

    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.
    • CommentAuthorAran
    • CommentTimeMar 2nd 2008
     
    Um. The _self link work for me in IE7 and FF2 using the latest 9.0.115 build of flash player (the player with the most security restrictions in place)

    Do you have any flash / pop up blockers running?

    Flash's implementation of _self vs _blank etc SHOULD be the same as in HTML. I don't know what to suggest as it is working for me....


    Aran
    • CommentAuthorbirds
    • CommentTimeMar 3rd 2008
     
    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...
    • CommentAuthorphilip
    • CommentTimeMar 3rd 2008
     
    it's a Flash Player security setting
    http://kb.adobe.com/selfservice/viewContent.do?externalId=50c1cf38&sliceId=2

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

    - philip
    • CommentAuthorbirds
    • CommentTimeMar 3rd 2008
     
    oh thank you :)

    it works flawlesly

    i tought it never would be solved, thank you :)
    • CommentAuthorbirds
    • CommentTimeMar 3rd 2008
     
    damm my test now works, but integrated in my forum it still refuses to work,

    this one works:
    http://www.hodiaudirekton.com/test.htm

    this one not :( :
    http://hodiaudirekton.ipbfree.com/index.php

    i don't know why this one isn't working ipbfree normally supports javascrits i never had any problems with that.
    • CommentAuthorbirds
    • CommentTimeMar 6th 2008
     
    anyone any ideas why it could be that implemented in this other enviroment this isn't working anymore,
    wich other info is needed?
    • CommentAuthorphilip
    • CommentTimeMar 6th 2008
     
    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.

    - philip
    • CommentAuthorbirds
    • CommentTimeMar 7th 2008
     
    Ok thank your really helpfull :)

    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

    anyway thanks for all the help