[FX.php List] Dynamic Flash Text and PHP
david weiner
1265 at lucerneblvd.org
Tue Jan 13 12:06:38 MST 2009
It's actually pretty easy - just set up your php as you usually would
in a standard case for a foreach loop and your field, then assign a
variable to be equal to your field and close the loop. At the end
you'll put in the print statement of myVar=$yourvariable
so it ends up looking something like this (if you are going with the
Kirupa sample):
<?php
require_once('Connections/flash.php');
$flash_find = clone($flash);
$flash_find->layout = 'FMPlayout';
$flash_findCriterions = array('fragrance'=>'='.$_REQUEST['*'],);
foreach($flash_findCriterions as $key=>$value) {
$flash_find->AddDBParam($key,$value);
}
fmsSetPage($flash_find,'flash',1);
$flash_result = $flash_find->FMFind();
$flash_row = current($flash_result['data']);
$flash_row_key = key($flash_result['data']);
foreach( $flash_result['data'] as $flash_row_key=>$flash_row ) {
$x = $flash_row['FileMakerData'][0];
}
?>
<?php print "myVar=$x"; ?>
- David
On Jan 13, 2009, at 7:00 AM, Sam Laundon wrote:
> Does anyone know of source code or examples of creating dynamic text
> boxes populated by a field from FileMaker into a Flash SWF file
> using PHP.
>
> I have come across examples using mySQL, but I am not good enough at
> coding to be able to transcribe the code into a FileMaker/PHP
> solution.
>
> This is one example I found: Learn How to Use Flash with PHP and mySQL
> http://www.kirupa.com/developer/actionscript/flash_php_mysql.htm
>
> Thanks in advance for your help - Sam
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090113/b1abfea0/attachment-0001.html
More information about the FX.php_List
mailing list