Comunidad de diseño web y desarrollo en internet online

mouse sobre nada

Citar            
MensajeEscrito el 26 May 2008 10:37 pm
hola como estan (oh señores programadores que le entienden al actionscript)

necesito ayuda con un codigo (haganme un paro no sean gachos)

lo que quiero hacer es un codigo que diga si el mouse no esta arriba de ningun objeto gotoanplay
(me la fume pero se que si se puede)

lo necesito para un menu y es lo unico que me falta para resolver el problema de un div en firefox
(dandome esa le resuelvo la vida a muchos)

es pero que me puedan ayudar (osea yo ni me imagino como, soy publicista no programador)

gracias

Por tanuz

5 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 27 May 2008 10:06 am
Solución para no programadores:

1. Dibuja un boto´n con hitArea grande como todo el escenario, es decir, de los 4 estados del botón, solo el último, se suele denominar a esto botón invisible
2. lo pones en el escenario, último layer (para que esté por debajo de todo) y que ocupe bien todo el escenario
3. Lo seleccionas en el escenario, le das a F9 (panel de acciones) y le pones este code

on(rollOver){
gotoAndPlay(lo que sea)
}

para evitar la manito, dale un nombre de instancia, por ejemplo miBoton y en la línea de tiempo que contiene a tu botón pones:

miBoton.useHandCursor = false

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 27 May 2008 06:30 pm
muchas gracias jorge

no habia pensdo esa opcion
me va servir mucho en esto

ve este codigo

Código :

<script language="JavaScript1.1">
function setFlashWidth(divid, newW){

document.getElementById(divid).style.width = newW+"px";
}
function setFlashHeight(divid, newH){
document.getElementById(divid).style.height = newH+"px";  
}
function setFlashSize(divid, newW, newH){

setFlashWidth(divid, newW);
setFlashHeight(divid, newH);
}

</script>
<style type="text/css">
<!--

#flashResizer {
   position:absolute;
   width:550px;
   height:165px;
   z-index:1;
   left: 12px;
   top: 12px;
   background-color: #FFFFFF;
}
.style1 {
   font-family: Arial, Helvetica, sans-serif;
   font-size: 12px;
}
.style2 {font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; }
-->
</style>
</head>
<body>
<table width="165" border="0">
  <tr>
    <td><img src="" alt="" name="" width="550" height="165" style="background-color: #FFFFFF" /></td>

  </tr>
  <tr>
    <td><h3 class="style2">EGGHEADS</h3>
      <p class="style1">UOVO was founded by two hard working, creative guys who shared a passion for entertaining interactive design. They soon figured out that if they joined forces they could give their clients the whole egg -  a one stop production house, bursting with creativity. Concept development, <a href="http://www.uovo.dk">web games</a>, cartoons, mobile games, e-learning, interactive web toys, <a href="http://www.uovo.dk">illustrations</a>, animations... to say it simply, we make fun stuff.  And we love doing it.  And that's important, because it means our clients get 110% from us. <br />
        <br />
      UOVO is a professional production house, but our true strength lies in our creativity.  When a client brings an idea to us, we don't just put it through a machine. We think about it and think about how we might make it better.  We take pride in the fact that we don't just know how to make things work, we also know what works. Take a look at our Cases to see some of the eggs we have cracked.</p>

      </td>
  </tr>
  <tr>
    <td><p>&nbsp;</p>
    </td>
  </tr>
</table>



<div id="flashResizer">

  <!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100%" height="100%" id="resizeFlash" align="top">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="resizeFlash.swf" /><param name="quality" value="high" /><param name="salign" value="lt" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><embed src="resizeFlash.swf" quality="high" salign="lt" wmode="transparent" bgcolor="#ffffff" width="100%" height="100%" name="resizeFlash" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>


y en flash le pones getURL("javascript:setFlashSize('flashResizer',550,600)");

y solucion para los div en fire fox

Por tanuz

5 de clabLevel



Genero:Masculino  

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.