Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-07-2007, 12:04 AM   #1
Registered User
Join Date: Nov 2007
Posts: 1
Default FlashVars help

Hi, I am trying to pass some variables from a php page to flash files that are embedded on a page as thumbnails. Site is at www.grantportfolio.com. Click on either Web or Illustration to see the sections I am referring to.

I am trying to use the FlashVars method, here's the php page that is trying to pass the variables to the swf files:

PHP Code:
<?php $no_extension substr($swf0, -4); ?>
<script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','200','height','150','accesskey','grantportfolio','tabindex','1','title','flashthumbnails','src','flash/thumbs/th1','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','flash/thumbs/<?php echo $no_extension?>' ); //end AC code

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="200" height="150" accesskey="grantportfolio" tabindex="1" title="flashthumbnails">
    <param name="movie" value="flash/thumbs/<?php echo "$swf"?>">
    <param name="quality" value="high">
    <PARAM NAME=FlashVars VALUE="var_link=<?php echo $id2?>&var_link2=<?php echo $id?>">
    <embed src="flash/thumbs/<?php echo "$swf"?>" flashvars="var_link=<?php echo $id2?>&var_link2=<?php echo $id?>" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="200" height="150"></embed>
That php file is being included in this php page:

PHP Code:
<?php include("connect.php"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Grant Portfolio: Web Design and Development</title>
<link href="css/styles.css" rel="stylesheet" type="text/css">
<link href="css/port_styles.css" rel="stylesheet" type="text/css">
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>

<div id="container">
    <div id="top">
    <img src="images/slices/top.gif" class="slice" style="padding-bottom:0px; "></div>
        <div id="nav_content_contain">    
            <div id="middle">
                <div id="spacer_nav">&nbsp;</div>
                <div id="nav">
                    <?php include("nav.php"); ?>
                <div id="spacer">&nbsp;</div>
                <div id="content">
//this page data to display Section
$query_nav mysql_query("SELECT * FROM nav WHERE id = '$id' LIMIT 1");
                        while (
$result mysql_fetch_array($query_nav)) {
$this_page $result['link'];
                        $id2 is passed to swf file to create dynamic link
                        $title is the title of the thumbnail
                        $file contains the filename of the .swf
$query mysql_query("SELECT * FROM section WHERE nav_id = '$id'");
                        while (
$result mysql_fetch_array($query)) {
$id2 $result['id'];
$title $result['title'];
$file $result['file'];
$swf $result['swf'];
"<div style=\"float:left;\"><h5>$title</h5>";
            <!--bottom -->
            <div id="bottom">
              <img src="images/slices/bottom.gif" class="slice">            </div>
And the actionscript I have looks like this:

on(press) {
	getURL("selection.php?val=" + var_link + "&id=" + var_link2);
Any help would be greatly appreciated. Thanks!
music_lp90 is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FlashVars + Text + Help + Easy Question! WallySomebody ActionScript 2.0 0 01-15-2007 07:30 PM
Help with FlashVars Navigation Leifish ActionScript 2.0 1 05-28-2005 03:03 AM
flashvars and external text files BeoWolfe ActionScript 2.0 1 04-15-2005 09:05 PM
FlashVars and Valid Cazz HTML and JavaScript 4 03-29-2005 03:40 PM
escaping ASCII characters >127 in FlashVars with php urlencode ? _marabout_ ActionScript 1.0 (and below) 15 05-11-2004 08:12 AM

All times are GMT. The time now is 05:53 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.