Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/06/2008, 22:01
vzti2
 
Fecha de Ingreso: marzo-2008
Mensajes: 15
Antigüedad: 16 años, 8 meses
Puntos: 0
Respuesta: Ayuda con Flash y HTML

Este es el codigo de los Actions del flash

Código:
stop();

// total is length of label_list OR link_list 
// OR total frames inside "flashmo thumbnails"
var total:Number = 10;
// length of label_list array and length of link_list array must be equal 
// to length of frames inside "flashmo thumbnails" movieclip

var label_list:Array = new Array( "BVLGARI AQVA", "HUGO BOSS DARK BLUE", "BVLGARI ROSE ESSENTIELLE", "FLOWER KENZO", "GUESS", "PARIS HILTON", "360 PERRY ELLIS", "HUGO BOSS SOUL", "TOUS", "HUGO BOSS XY");

var link_list:Array = new Array("aqva.html", "darkblue.html", "bvlgari.html", "flower.html", "guess.html", "paris.html", "360.html", "soul.html", "tous.html", "xy.html");


var radiusX:Number = 330;

var radiusY:Number = 90;

var centerX:Number = 400;

var centerY:Number = 120;

var speed:Number = 0.005;
tn_group_mc._visible = false;
info.text = ""; fm_label.text = "";

for( var i = 0; i < total; i++)
{
	var t = tn_group_mc.duplicateMovieClip("tn"+i, i);
	t.tn_mc.gotoAndStop(i+1); t.tn_shadow_mc.gotoAndStop(i+1);
	t.fm_label = label_list[i];
	t.fm_url = link_list[i];
	
	t.angle = i * ((Math.PI*2)/total);
	t.onEnterFrame = mover;
	
	t.fm_button.onRollOver = function()
	{
		fm_label.text = "Nombre del Perfume: " + this._parent.fm_label;
		info.text = "URL: " + this._parent.fm_url;
	}
	t.fm_button.onRollOut = function()
	{
		info.text = ""; fm_label.text = "";
	}
	t.fm_button.onRelease = function()
	{
		getURL( this._parent.fm_url );
	}
}
function mover()
{
	this._x = Math.cos(this.angle) * radiusX + centerX;
	this._y = Math.sin(this.angle) * radiusY + centerY;
	var s = this._y /(centerY+radiusY);
	this._xscale = this._yscale = s*100;
	this.angle += this._parent.speed;
	this.swapDepths(Math.round(this._xscale) + 100);
}
this.onMouseMove = function()
{

	speed = (this._xmouse-centerX) * 0.0001;
}
Y bueno el descuadre siempre suele pasar entre IE y Firefox, tengo los contenidos en unas tablas, y por eso quisiera saber si existe alguna manera de q se vean bien en ambos exploradores

Aqui te doy el ejemplo de una de ellas

Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Web Vzti2 - Perfumes</title>
<script language="JavaScript" src="js/derechos.js"></script>
<script src="../AC_RunActiveContent.js" type="text/javascript"></script>
<style type="text/css">
<!--
.style7 {font-family: Geneva, Arial, Helvetica, sans-serif}
.style8 {font-family: "Kristen ITC"}
.style9 {
	font-family: Geneva, Arial, Helvetica, sans-serif;
	font-size: 14px;
}
.style10 {
	font-family: "Monotype Corsiva";
	font-size: 24px;
}
.style11 {font-size: 14px}
.style13 {color: #666666}
-->
</style>
</head>

<body>
<center><table width="1024"  height="768" border="0" background="imagenes/fondo.jpg">
  <tr>
    <th width="38%" height="632" scope="col">&nbsp;</th>
    <th width="38%" scope="col">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="imagenes/360.gif" width="258" height="248" /></th>
    <td width="24%" scope="col"><p align="left" class="style10">&nbsp;</p>
      <p align="left" class="style10">&nbsp; </p>
      <p align="left" class="style10">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="style13">360º Perry Ellis</span></p>
      <p align="justify"><span class="style8"><span class="style7"><span class="style11"><strong>Precio: 
      </strong>Bs. F 400</span></span></span></p>
      <p align="justify"><span class="style9"><strong>Contenido: </strong>Locion Coporal<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gel de Baño <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Perfume xxx ml<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Perfume xx ml</span></p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:history.go(-1)" style="color:#CC6699">Volver al Menu</a></p>
      </td>
  </tr>
</table>
</center>
</body>
</html>
Espero puedas ayudarme un poco