ocelot
%Europe/Berlin %845 %2009, 21:17
Hey
ik wil een variabele van php naar flash doorsturen, dit werkt wel met: echo "variabele1=iets&";
maar daardoor komt "variabele1=iets&" op men site pagina terecht is er nu een andere manier dan die echo in php of kunnen we in de header van de site de variabelen opvangen in flash (localhost/site.php?variabele1=iets&)?
dit is mijn code:
<?php
require_once "./_lib/_classes/template.class.php";
require_once "./_lib/_includes/functions.inc.php";
require_once "./includes/config.inc.php";
$tpl = new Template("templates");
$tpl->set_file("page_tp", "headerfooter.tpl");
$tpl->set_file("content_tp", "filmpje.tpl");
echo "film=fotos&";
$tpl->parse("PAGE", "content_tp");
$tpl->pparse("htmlcode", "page_tp");
?>
public function Document()
{
var request:URLRequest = new URLRequest("filmpje.php");
request.method = URLRequestMethod.POST;
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
loader.addEventListener(Event.COMPLETE, completeHandler);
loader.load(request);
}
function completeHandler(evt:Event):void
{
var path = evt.target.data.film;
trace(path);
}
<h3>filmpje</h3>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="480" height="390">
<param name="movie" value="includes/StopMotion/StopMotion.swf" />
<param name="allowScriptAccess" value="includes/StopMotion/Document.as" />
<embed src="includes/StopMotion/StopMotion.swf" width="480" height="390" AllowScriptAccess='sameDomain' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
alvast bedankt
ocelot
ik wil een variabele van php naar flash doorsturen, dit werkt wel met: echo "variabele1=iets&";
maar daardoor komt "variabele1=iets&" op men site pagina terecht is er nu een andere manier dan die echo in php of kunnen we in de header van de site de variabelen opvangen in flash (localhost/site.php?variabele1=iets&)?
dit is mijn code:
<?php
require_once "./_lib/_classes/template.class.php";
require_once "./_lib/_includes/functions.inc.php";
require_once "./includes/config.inc.php";
$tpl = new Template("templates");
$tpl->set_file("page_tp", "headerfooter.tpl");
$tpl->set_file("content_tp", "filmpje.tpl");
echo "film=fotos&";
$tpl->parse("PAGE", "content_tp");
$tpl->pparse("htmlcode", "page_tp");
?>
public function Document()
{
var request:URLRequest = new URLRequest("filmpje.php");
request.method = URLRequestMethod.POST;
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
loader.addEventListener(Event.COMPLETE, completeHandler);
loader.load(request);
}
function completeHandler(evt:Event):void
{
var path = evt.target.data.film;
trace(path);
}
<h3>filmpje</h3>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="480" height="390">
<param name="movie" value="includes/StopMotion/StopMotion.swf" />
<param name="allowScriptAccess" value="includes/StopMotion/Document.as" />
<embed src="includes/StopMotion/StopMotion.swf" width="480" height="390" AllowScriptAccess='sameDomain' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
alvast bedankt
ocelot