• Hi,

    I’m working on a custom theme for a friend of mine and I have created a flash navigation bar.

    blog

    I’ve integrated the flash file with swfObject 2 and added the “allowScriptAccess=always” parameter. The swf shows up but the links are not working. It is coded in Actionscript 2 and I’m using getURL() for the links. Here is the actionscript :

    this.onEnterFrame=function(){
        var a = pupille_mc._y-_ymouse;
        var b = pupille_mc._x-_xmouse;
        var angleA = Math.atan2(a, b);
        pupille_mc._rotation= angleA/(Math.PI/180);
    }
    news_btn.onPress=function()
    {
        clic("http://www.julienbecker.com/kahn/");
    }
    gallery_btn.onPress=function()
    {
        clic("http://www.julienbecker.com/kahn/?page_id=23");
    } 
    
    forum_btn.onPress=function()
    {
        clic("http://gengiskahn.actifforum.com/");
    } 
    
    function clic(u)
    {
        getURL(u,"_self");
    }

    I’ve done a simple hmtl page

    test

    where I’ve integrated the same swf with the same method and the the links are working. So the problem must come from wordpress !? I’ve no plugin activated. I’m working on a mac and when I test the blog locally with MAMP I’ve the same issue.

    Thanks for any help

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter jbeka

    (@jbeka)

    Is there nobody who knows this issue ?

    Thread Starter jbeka

    (@jbeka)

    My header div was over my swf. I just added a z-index=-1 in my css and everything was fine !

    Hi Jbeka,

    I’m having the same issue but am really new to this whole css, php, flash thing. could you explain your solution in “idiot” resolution? 😉 Can you please post the actual part of the css with your adition as it appears in the file?

    Thanks so much. 🙂

    In fact, I dont think its an issue or z-order in my case. If I set the actionscript to open in a blank window, it works every time… when I set to any method other than blank, like “_self” (which is what i want) it stops working. 🙁 this goes for while using the swfobject 2 or embedding the banners manually in the php code. 🙁 I’ve looked everywhere and no solution is working for me…

    @holymonkey
    I am having this issue too:

    button1_btn.addEventListener(MouseEvent.CLICK, myButtonFunction3);
    function myButtonFunction3(event: MouseEvent) {
    var request:URLRequest = new URLRequest(“http://www.linkexample.com/”);
    navigateToURL(request, “_self”);
    }

    …doesn’t work in WordPress until I drop:


    , “_self”

    …and then the link is opened in a new window. I’ve used this code with the target in files outside of WordPress and have no issues.

    Have you found a solution?

    If anyone is looking for a solution to this, by adding ‘ allowScriptAccess=”always” ‘ to the end of the object and param tags in the .php file, you’re problem might be solved. Hope to be of some help.

    Clay
    http://www.pika.me

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘flash navigation, links are not working’ is closed to new replies.