Hi. I'm trying to use CakePHP with Flash and can't seem to actually
get the movie to appear. I'm trying to use the swfobject and have
some pretty simple code which isn't working. I'm sure I'm missing
something simple. I have the swf file located in webroot/_swf/. Any
help would be greatly appreciated.
<?php
echo $javascript->link('swfobject.js', false);
?>
<div id="myContent"></div>
<?php
echo $javascript->codeBlock("
var so = new SWFObject('".$html->url('/_swf/test.swf')."',
'myContent', '300', '120', '6');
so.write('myContent');
");
?>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---