On Apr 26, 2011, at 20:52, varai wrote:

> Does anyone know on how to embed an swf file in myfolder/views/pages/
> home.ctp?
> 
> I tried the following embed stmt and it is not working:
> <div id="content1">
> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/
> swflash.cab#version=7,0,19,0" width="550" height="300"
> title="introductory animation">
>       <param name="movie" value="main_ani.swf" />
>       <param name="quality" value="high" />
>       <embed src="main_ani.swf" width="550" height="300" quality="high"
> pluginspage="http://www.macromedia.com/go/getflashplayer";
> type="application/x-shockwave-flash"></embed>
> </object></div>

Define "not working".

Can you access main_ani.swf directly in your web browser?


> I also tried the following after reading
> http://bakery.cakephp.org/articles/alkemann/2008/11/25/flashhelper-a-wrapper-for-the-swfobject-js-class
> <?php echo $this->renderSwf('main_ani.swf',530,300,'content1'); ?>
> 
> and I'm getting the error below
> Fatal error: Call to undefined method View::renderSwf() in C:\wamp\www
> \merry_flowers\views\pages\home.ctp on line 25
> 
> I couldn't find the renderSwf helper as stated in the link above in C:
> \wamp\www\cakephp\cake\libs\view\helpers

I haven't read that tutorial, but I just skimmed it, and it doesn't say to call 
$this->renderSwf; it says to call $flash->renderSwf.


> By the way, does anyone know on where to store swf files in cakephp
> projects?

Presumably wherever you like, under the webroot.


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to