Mariano,
Just tried it. The flash movie doesn't load.
I used the class exactly like provided (I made the correction from
downloadPath to animationPath), with the only difference being:
var $animationPath = WWW_ROOT . DS . 'swf'; as my sfw file is in the
swf folder in the root.
Then, from my view, I called <?php echo
$swfobject->display('/animations/lifechart.swf', 'Lifechart', '861' ,
'351' , '7' , '#fff'); ?>.
When rendered, the view creates an empty Flash movie of 861px width and
351 height. When right clicked, it says 'Movie not loaded'.
Did I do anything wrong? I also tried adding $this->autoRender = false;
to the index() method of the animations controller.
On Dec 25, 11:39 am, "Mariano Iglesias" <[EMAIL PROTECTED]>
wrote:
Fix this:
$filePath = $this->downloadPath . DS . $file;
Should be:
$filePath = $this->animationPath . DS . $file;
-MI
---------------------------------------------------------------------------
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
-----Mensaje original-----
De: Mariano Iglesias [mailto:[EMAIL PROTECTED]
Enviado el: Lunes, 25 de Diciembre de 2006 01:37 p.m.
Para: '[email protected]'
Asunto: RE: force swf refresh
Or can't you build a Proxy controller for such files and let the controller
add header tags for browsers not to cache (must-revalidate, etc.)? So then
from your view instead of placing the OBJECT tag to directly find the swf
you use the controller as a source, something like
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---