PHP Developers Network
http://forums.devnetwork.net/

dynamically changing flash content
http://forums.devnetwork.net/viewtopic.php?f=32&t=97906
Page 1 of 1

Author:  dsphp [ Tue Mar 31, 2009 12:30 pm ]
Post subject:  dynamically changing flash content

i have a html+php page that changes the contents of a flash embedded in it,based on some inputs provided.
but i'm not able to view the changed flash though it is present in the home directory of my xampp server

Author:  becky-atlanta [ Tue Mar 31, 2009 1:48 pm ]
Post subject:  Re: dynamically changing flash content

What is your code?

Author:  dsphp [ Tue Mar 31, 2009 2:39 pm ]
Post subject:  Re: dynamically changing flash content

<?php
{
session_start();
if(isset($_SESSION['arr']))
{
if($_POST["text"]=='')
{

startsearch($_POST["search"]);
unset($_SESSION['arr']);
$_SESSION['count']=0;
$_SESSION['arr']=array();
}
else
{
array_push($_SESSION['arr'],$_POST["text"]);
$_SESSION['count']=$_SESSION['count']+1;
}
}
else
{
$_SESSION['count']=0;
$_SESSION['arr']=array();
}
}
?>

<?php


function startsearch($srch)
{
//here we have used php ming to create a flash from the values given by the user

$myMovie->save("linear.swf");
}
?>




<html>
<head>

<title>Learn Data Structures the Flash Way</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="stylesheet.css" type="text/css" />

</head>

<body onLoad="document.f.text.focus()">

<div id="container">




<div id="content">
<span id="flash"><EMBED src="linear.swf" WIDTH=554 HEIGHT=500 loop="false" TYPE="application/x-shockwave-flash" PLUGINSPAGE= "http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" bgcolor="#663333"> </EMBED></span>
<br>

<form name="f" action = "<? echo $_SERVER['PHP_SELF']?>" method="post">
Array value: <input type="text" name="text" value="<?=$text?>" size="30"><br><br>
Search value: <input type="text" name="search" value="<?=$search?>" size="30"><br><br>
<input type="submit" name="sub1">
<br>

*-Press submit after entering every value of the array and finally enter the search value
</form>
</div>
</div>





</body>
</html>

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/