forcing an adobe frame to load or page refresh after 1-2 seconds

Discussion in 'Graphics & Multimedia' started by ecstasy, Aug 18, 2007.

  1. #1
    Hi,

    I have setup php redirection for e.g.

    https: // ecstasylove . org/arts (index.php)

    to

    https: // ecstasylove . org (/index.php) (flash file embedded, frame 66 (the arts section of the animation))

    but this only works 90% (in Opera) and less in other browsers or having to double page load otherwise to stop it going to the welcome on frame 5.


    https: // ecstasylove . org/arts (index.php) looks like:

    <?
    header("Location:https://ecstasylove.org/index.php?framestart=165");
    ?>
    Code (markup):

    https: // ecstasylove . org (/index.php) looks like:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
                                                          "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
          <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
          <title>ecstasy</title>
    
          <link rel="stylesheet" type="text/css" href="index.css" media="all">
          <script type="text/javascript" src="swfobject.js"></script>
    
    <?php
          if ($_GET ['doctype'] or ($_GET ['skipflash'] == 'true'))      {
                print "\t" . '<meta name="robots" content="noindex">' . "\n";
          }
    ?>
    </head>
    <body>
    <?php
    $iframe = false;
    if(isset($_GET['show_frame'])) {
    	include_once 'frames_config.php';
    	
    	$request = '/'.dirname($_GET['show_frame']).'/';
    	
    	if(isset($frames_config[$request]) && !empty($frames_config[$request])) {
    		$framestart = $_GET['framestart'] = $frames_config[$request];
    
    	}
    	
    	$iframe = true;
    }
    
    if($iframe) echo '<iframe src="/index.php?framestart='.$framestart.'" frameborder="0" width="100%" height="750px" scrolling="no"></iframe>';
    else {
    ?>
    &nbsp;
    <div id="flashdiv" class="div-for-flash">
          <?php require "./fcms_html.php"; ?>
    </div>
    
    <script type="text/javascript">
          // <![CDATA[
          
          var so = new SWFObject (
                // name of the fCMSPro enabled swf
                'fCMSPro.swf<?php
    if (isset($_GET["framestart"]) && !empty($_GET["framestart"])) echo("?framestart=".$_GET["framestart"]);
    ?>"', 
                // object/embed id
                'fCMSPro',
                // width
                '100%', 
                // height
                '100%', 
                // required flash player version
                '7', 
                // background color
                '#ffffff'
          );
          so.addParam ('scale', 'noscale');
                
          <?php 
                // add fCMS generated parameters
                print_fCMS_parameters();
    
                // replace flashdiv with html content
                if (! $_GET ['skipflash'] == 'true')
                      print "so.write ('flashdiv');\n";
          ?>
    
          // ]]>
    </script>
    <?php } ?>
    </body>
    </html>
    Code (markup):

    actionscript on frame 1 of animation looks like:

    if (_root.framestart!=undefined) gotoAndStop(_root.framestart);
    Code (markup):

    How can I force this to always work or have the page start loading then refresh after 1-2 seconds to hopefuly guarantee it will get to the correct position?

    If that can't be done can you suggest another way of redirecting?

    I've been told flash doesn't support php get and only reads from the url.

    Thanks for any help,
    e
     
    ecstasy, Aug 18, 2007 IP