A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: PHP wrapper and secure URL

Hybrid View

  1. #1
    Senior Member
    Join Date
    Mar 2003
    Location
    UK
    Posts
    109

    PHP wrapper and secure URL

    Hi everyone

    I have a Facebook app I did in Flash. The app sits in a PHP wrapper. When I access the PHP with a normal URL call in the browser it loads and all is fine. However, when I try to access it through a secure URL (https) it says the Flash player is not installed. I can access the swf directly through the secure URL so my guess is that it's something in the PHP wrapper.

    The code's below. I would appreciate any advice.

    Thanks


    PHP Code:

    <!DOCTYPE html>
    <
    html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
        <
    head>
            <!-- Include 
    support librarys first -->
            <
    script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
            <
    script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script>                    
            <
    script type="text/javascript">    function redirect(id,perms,uri)    {var params window.location.toString().slice(window.location.toString().indexOf('?'));    top.location 'https://graph.facebook.com/oauth/authorize?client_id='+id+'&scope='+perms+'&redirect_uri='+uri+params;}    </script>        
        </
    head>
        <
    body>
            <
    div id="fb-root"></div><!-- required div -->
            <
    div id="flashContent">
                <
    h1>You need at least Flash Player 10.3 to view this page.</h1>
                <
    p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
            </
    div>  
            <
    script type="text/javascript">
                
    //This example uses dynamic publishing with swfObject. Login is handled in the swf            //Note we are passing in attribute object with a 'name' property that is same value as the 'id'. This is REQUIRED for Chrome/Mozilla browsers            
                
    swfobject.embedSWF("app6test.swf""flashContent""760""1617""10.3"nullnullnull, {name:"flashContent"});             
            </
    script>
        </
    body>
    </
    html

  2. #2
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    I would make sure the path to the swf is correct. It may have to be absolute.
    Using the Network tab in Chrome's developer tools, you can see what files are failing to load (in red) and see what path is being used. That will help you know what needs to change.

  3. #3
    Registered User
    Join Date
    Nov 2012
    Posts
    1
    I know I could 'just' adjust the image, but I'd still like to know how to do this

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center