SitePoint Sponsor

User Tag List

Results 1 to 1 of 1
  1. #1
    SitePoint Member
    Join Date
    Oct 2013
    0 Post(s)
    0 Thread(s)

    Converting old flash website for iPhone

    I need to edit an old website created in flash (actionscript 2) so that it can be accessed from an iPhone / iPad etc. The website uses a php page with a flashcontent div to display the .swf file. I don't have access to the original flash file but have used google's swiffy to convert the .swf to html and inserted this code into the existing index.php file in place of the default link to download flash but with no joy.

    <table class="media_table" cellpadding="0" cellspacing="0">
                <td class="media_td">
                    <div id="flashcontent">
                    <div id="swiffycontainer" style="width: 840px; height: 560px">
                var stage = new swiffy.Stage(document.getElementById('swiffycontainer'),
                    <script type="text/javascript">
                        // <=!=[=C=D=A=T=A=[
                        var swf = "<?php echo $swf ?>";
                        var so = new SWFObject(swf, "flashcontent", "100%", "100%", "8", "#000000");
                        so.addVariable("host", "http://<?php echo getenv("SERVER_NAME")?>/");
                        so.addVariable("debugremote", true);
                        so.addVariable("amfversion", "amfphp");
                        so.addParam("AllowScriptAccess", "always");
                        so.addParam("allowFullScreen", "true");
                        // ]=]=>
                    <?php if($trace){ ?>
                        <script type="text/javascript">
                    <?php } ?>
    The following links and the swiffy output are included within the <head>:
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <script src=""></script>

    The page / swiffy output loads but it is not displaying the content / connecting with the database - what am I missing here?
    Is there a better approach to doing this?
    Last edited by Force Flow; Oct 21, 2013 at 17:53. Reason: added code tags

Tags for this Thread


Posting Permissions

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