hyperpixel 0 Denunciar post Postado Dezembro 10, 2009 esse código que tenho on (release) { getURL("Conteudo.php?valor=anuncioescolhido&item=4&idCliente=<?= $idCliente?>", "_self", "POST"); } mas não passou o id do usuário!! Alguem sabe como arrumo o código? desde já grato Compartilhar este post Link para o post Compartilhar em outros sites
hinom 5 Denunciar post Postado Dezembro 10, 2009 getURL("Conteudo.php?valor=anuncioescolhido&item=4&idCliente=<?= $idCliente?>", "_self", "POST");em vermelho... é uma sintaxe do php. Não tem a ver com ActionScript.. Compartilhar este post Link para o post Compartilhar em outros sites
Thiago de Oliveira Cruz 21 Denunciar post Postado Dezembro 10, 2009 Como o hinom disse Você precisa primeiramente passar a variavel para o flash... e então usar dentro dele. Não é permitido o uso de PHP dentro de arquivos .as ou .fla Passe via parametros flash vars ou get para o flash... e pegue essa variavel com loadVars ou _root.variavel Abraços Compartilhar este post Link para o post Compartilhar em outros sites
hyperpixel 0 Denunciar post Postado Dezembro 10, 2009 como passo parametros p swf deste modo?(vermelho) <script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0,width,497,height,165,src,../../bannerPages,quality,autolow,pluginspage,http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash,movie,../../bannerPages' ); //end AC code </script> <noscript> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="497" height="165"> <param name="movie" value="../../bannerPages.swf?idCliente=<?= $idCliente?>" /> <param name="quality" value="autolow" /> <embed src="../../bannerPages.swf?idCliente=<?= $idCliente?>" quality="autolow" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="497" height="165"></embed> </object></noscript> Compartilhar este post Link para o post Compartilhar em outros sites
hinom 5 Denunciar post Postado Dezembro 10, 2009 <param name="movie" value="../../bannerPages.swf?idCliente=<?= $idCliente?>" />sim..mas não recomendo utilizar dessa forma, pois poderá ter problemas com "widecards" utilize uma diretiva própria do objeto <param name="FlashVars" value="" /> exemplo <param name="movie" value="../../bannerPages.swf"> <param name="FlashVars" value="idCliente=<?php echo $idCliente;?>"> Compartilhar este post Link para o post Compartilhar em outros sites
hyperpixel 0 Denunciar post Postado Dezembro 11, 2009 Resolveu, muito grato <script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','497','height','165','src','../../bannerPages','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../../bannerPages','flashvars','idCliente=<?php echo $idCliente;?>' ); //end AC code </script> <noscript> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="497" height="165"> <param name="movie" value="../../bannerPages.swf" /> <param name="quality" value="high" /> <param name="FlashVars" value="idCliente=<?php echo $idCliente;?>"> <embed src="../../bannerPages.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="497" height="165"></embed> </object> </noscript> on (release) { idCliente = loadVariables("../../bannerPages.swf?idCliente = <?= $idCliente; ?>", "0", "GET"); getURL("Conteudo.php?valor=anuncioescolhido&item=4&idCliente = idCliente", "_self", "POST"); } http://forum.imasters.com.br/public/style_emoticons/default/natal_noel.gif Compartilhar este post Link para o post Compartilhar em outros sites
Thiago de Oliveira Cruz 21 Denunciar post Postado Dezembro 11, 2009 Que bom que consegiu ;) http://forum.imasters.com.br/public/style_emoticons/default/clap.gif Parabens! Compartilhar este post Link para o post Compartilhar em outros sites