Supongo que habrá mejores maneras de hacerlo... En cada proyecto lo
modifico en algo... en este caso usa el JS C_FL_RunContent... (que no
es mio ni se de donde salio porque no es un proyecto propio), yo uso
normalmente el swfObject (o algo asi)...



On 16 ago, 09:57, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Perdón, NO ES UN HELPER, es un ELEMENT! :P
>
> On 16 ago, 09:55, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > Yo me hice este HELPER
>
> > <?php
> >         // parametros string
> >         $param_js = '';
> >         $param_object = '';
>
> >         // validar params
> >         $movie = isset($movie) ? $movie : 'Gurú meditation #movie';
> >         $version = isset($version) ? $version : '9';
> >         $width = isset($width) ? $width : 'Gurú meditation #width';
> >         $height = isset($height) ? $height : 'Gurú meditation #height';
> >         $title = isset($title) ? $title : '';
> >         $url = isset($url) ? $this->base.$url : $this->base.'/swf';
> >         $url_movie = "$url/$movie";
>
> >         // armar parametros
> >         $param_js  = "'movie','$url_movie'";
> >         $param_js .= ",'src','$url_movie'";
> >         $param_js .= ",'width','$width'";
> >         $param_js .= ",'height','$height'";
>
> >         $param_object .= '<param name="movie" value="'.$url_movie.'.swf" 
> > />';
>
> >         if( isset($wmode) )
> >         {
> >                 $param_object .= '<param name="wmode" value="'.$wmode.'" 
> > />';
> >                 $param_js .= ",'wmode','$wmode' ";
> >         }
>
> >         if( isset($quality) )
> >         {
> >                 $param_object .= '<param name="quality" 
> > value="'.$quality.'" />';
> >                 $param_js .= ",'quality','$quality' ";
> >         }
>
> >         if( isset($FlashVars) )
> >         {
> >                 $param_object .= '<param name="FlashVars" 
> > value="'.$FlashVars.'" />,';
>
> >                 $param_js .= ",'FlashVars','$FlashVars' ";
> >         }
>
> >         if( !empty($title) )
> >         {
> >                 $param_object .= '<param name="title" value="'.$title.'" 
> > />,';
> >                 $param_js .= ",'title','$title' ";
> >         }
>
> >         if( isset($scale) )
> >         {
> >                 $param_object .= '<param name="scale" value="'.$scale.'" 
> > />,';
> >                 $param_js .= ",'scale','$scale'";
> >         }
>
> > ?>
>
> > <script type="text/javascript">AC_FL_RunContent( 'codebase', 'http://
> > download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=<?
> > php echo $version ?>,0,28,0', 'pluginspage','http://www.adobe.com/
> > shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash', <?php
> > echo $param_js ?> );</script>
>
> > <?php if( isset($img) ): ?>
> >         <noscript>
> >                 <?php
> >                         if( isset($ahref) )
> >                         {
> >                                 // con enlace
> >                                 echo $html->link(
> >                                         $html->image( $img, array( 
> > 'width'=>$width, 'height'=>$height,
> > 'title'=>$title ) ),
> >                                         $ahref,
> >                                         array( 'title'=>$title ), null, null
> >                                 );
> >                         }
> >                         else
> >                         {
> >                                 // sin enlace
> >                                 echo $html->image( $img, array( 
> > 'width'=>$width, 'height'=>
> > $height, 'title'=>$title ) );
> >                         }
> >                 ?>
> >         </noscript>
> > <?php endif; ?>
>
> > Y para usarlo:
>
> >  <?php
> >                                 echo $this->renderElement('flash', array
> >                                         (
> >                                                 'movie'=>'logo',
> >                                                 'version'=>9,
> >                                                 'width'=>90,
> >                                                 'height'=>90,
> >                                                 'wmode'=>'transparent',
> >                                                 'quality'=>'high',
> >                                                 'scale'=>'noscale',
> >                                                 'title'=>'Logo de Bolín 
> > Bolón',
> >                                                 
> > 'FlashVars'=>"url_base=$this->base/"
>
> >                                         )
> >                                 )
> >                         ?>
>
> > On 15 ago, 19:26, "Pablo Moretti" <[EMAIL PROTECTED]> wrote:
>
> > > Alguno esta al tanto si existe algun ayudante para colocar archivos, flash
> > > ???
>
> > > PD : Ya se que se puede hacer, pero primero es mejor preguntar si ya esta
> > > echo :P


--~--~---------~--~----~------------~-------~--~----~
Has recibido este mensaje porque estás suscrito a Grupo "CakePHP-es" de Grupos 
de Google.
 Si quieres publicar en este grupo, envía un mensaje de correo 
electrónico a [email protected]
 Para anular la suscripción a este grupo, envía un mensaje a [EMAIL PROTECTED]
 Para obtener más opciones, visita este grupo en 
http://groups.google.com/group/CakePHP-es?hl=es.

-~----------~----~----~----~------~----~------~--~---

Responder a