Ciao a tutti, ho un problema da cui non ne so uscire. ho acquistato un template, questo:

http://www.flash-template-design.com...w.php?tid=1917

Se testo in locale tutto funziona perfettamente ma se carico i file su server non funziona. Il server nega l'esecuzione del file swf.

Regalo il template a chi mi aiuta a risolvere questo problema.
Qui sotto lo script del primo e del secondo frame:

codice:
Stage.scaleMode = "noScale"
Stage.align = "TL"

import TextField.StyleSheet;
var tyleSheet:StyleSheet = new StyleSheet();
tyleSheet.load("link.css");

stop()

var vars = new LoadVars()
vars.load("texts.htm")
vars.onLoad = function(ok){
	ok ? _global.textsLoaded = true : null
	}
Secondo frame:

codice:
stop()
import mx.utils.Delegate;
import mx.transitions.Tween;
import mx.transitions.easing.*;

var numOfItems:Number;
var radiusX:Number
var radiusY:Number
var centerX:Number
var centerY:Number
var speed:Number
var perspective:Number
var menuNames:Array = []
var home:MovieClip = this;
speed = 0.01;
perspective = 130;

MovieClip.prototype.ini = function(tx1){
	var vars:Array = tx1.split("$$$$")
	this.smashed.txt.autoSize = this.txt.autoSize = "left"
	this.smashed.txt.htmlText = vars[0]
	this.txt.htmlText = vars[1]
	this.txt._x = (this.smashed._x + this.smashed._width) - 11
	}

_global.fmt_container = {}
ASSetPropFlags(_global, "fmt_container", 7, 1);
_global.fmt_container.standard = this.global_font.getNewTextFormat()
_global.fmt_container._input = this.input_font.getNewTextFormat()

_global.def_fmt = _global.inp_fmt = new TextFormat()
var sample_fmt = _global.fmt_container.standard
_global.inp_fmt = _global.fmt_container._input
def_fmt.font = sample_fmt.font
def_fmt.bold = sample_fmt.bold
def_fmt.italic = sample_fmt.italic
def_fmt.size = sample_fmt.size

function init(){
radiusX = Stage.width / 3.5;
radiusY = Stage.height / 7;
centerX = Stage.width / 2;
centerY = Stage.height / 2;
content._x = Stage.width / 2 + 55
content._y = Stage.height / 2 + 15
bot._width = top._width = Stage.width
menu._y = Stage.height - 20
bot._x = Stage.width - bot._width
bot._y = Stage.height - bot._height/2
name._x = name._width/2 + 10
player._x = Stage.width - player._width/2.2
menu.menuGen(true)
if(!firstLoaded){
	xml.load("main.xml");
	firstLoaded = true
	}
if(_global.executeTocenter){
	tocenter(_root.bg_container)
	}
}


var aa = {}
aa.onResize = init
Stage.addListener(aa)

var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",100000);
tooltip._alpha = 0;

var xml:XML = new XML();
xml.ignoreWhite = true;

xml.onLoad = function()
{
	var nodes = this.firstChild.childNodes;
	numOfItems = nodes.length;
	for(var i=0;i<numOfItems;i++)
	{
		var t = home.attachMovie("item","item"+i,i-1);
		t.page = i
		t.angle = i * ((Math.PI*2)/numOfItems);
		t.onEnterFrame = mover;
		t.toolText = nodes[i].attributes.tooltip;
		menuNames.push(nodes[i].attributes.tooltip)
		t.content = nodes[i].attributes.content;
		t.icon.inner.loadMovie(nodes[i].attributes.image);
		t.r.inner.loadMovie(nodes[i].attributes.image);
		t.icon.onRollOver = over;
		t.icon.onRollOut = out;
		t.icon.onPress = released;
	}
	_root.menu.menuGen()
}

function over()
{
	var sou:Sound = new Sound();
	sou.attachSound("sover");
	sou.start();
	this._parent.gotoAndStop(2)
	home.tooltip.tipText.text = this._parent.toolText;
	home.tooltip._x = this._parent._x;
	home.tooltip._y = this._parent._y - this._parent._height/2;
	home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
	home.tooltip._alpha = 100;
}

function out()
{
	this._parent.gotoAndStop(1)
	delete home.tooltip.onEnterFrame;
	home.tooltip._alpha = 0;
}

function released(){
	this._parent.gotoAndStop(1)
	if(_global.dust){
		for(i in content){
			removeMovieClip(content[i])
			_global.dust = false
			}
		}
	_global.curLink = false
	_global.pageOn = true
	_global.num = this._parent.page
	_global.prev.enabled = true
	_global.prev.gotoAndPlay(7)
	menu["menuItem" + _global.num].bg.tt.enabled = false
	menu["menuItem" + _global.num].bg.gotoAndStop(6)
	_global.prev = menu["menuItem" + this._parent.page]
	var sou:Sound = new Sound();
	sou.attachSound("sdown");
	sou.start();
	content._visible = true
	home.tooltip._alpha = 0;
	for(var i=0;i<numOfItems;i++)
	{
		var t:MovieClip = home["item"+i];
		t.xPos = t._x;
		t.yPos = t._y;
		t.theScale = t._xscale;
		delete t.icon.onRollOver;
		delete t.icon.onRollOut;
		delete t.icon.onPress;
		delete t.onEnterFrame;
		if(t != this._parent)
		{
			var tw0:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,0,1,true);
			var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,0,1,true);
			//var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,100,0,1,true);
		}
		else
		{
			var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,100,1,true);
			var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,100,1,true);
			var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,Stage.width/2-280,1,true);
			var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,Stage.height/2-65,1,true);
			content.gotoAndPlay("p" + (t.page+1))
			var s:Object = this;
                s.onPress = unReleased;
		}
	}
}

function unReleased()
{
	_global.pageOn = false
    menu["menuItem" + this._parent.page].bg.tt.enabled = true
	menu["menuItem" + this._parent.page].bg.gotoAndPlay(6)
	var sou:Sound = new Sound();
	sou.attachSound("sdown");
	sou.start();
	
	delete this.onPress;
	content._visible = false
	for(var i=0;i<numOfItems;i++)
	{
		var t:MovieClip = home["item"+i];
		if(t != this._parent)
		{
			var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,0,t.theScale,1,true);
			var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,0,t.theScale,1,true);
			var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,0,100,1,true);
		}
		else
		{
			var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,100,t.theScale,1,true);
			var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,100,t.theScale,1,true);
			var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,t.xPos,1,true);
			var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,t.yPos,1,true);
			tw.onMotionStopped = function()
			{
						if(_global.dust){
		for(i in content){
			removeMovieClip(content[i])
			_global.dust = false
			}
		}
				for(var i=0;i<numOfItems;i++)
				{
					
					var t:MovieClip = home["item"+i];
					t.icon.onRollOver = Delegate.create(t.icon,over);
					t.icon.onRollOut = Delegate.create(t.icon,out);
					t.icon.onPress = Delegate.create(t.icon,released);
					t.onEnterFrame = mover;
					
				}
				if(_global.nextReady){_root.menu["menuItem" + _global.num2].bg.tt.onRelease()}
			}
		}
	}
}


function moveTip()
{
	home.tooltip._x = this._parent._x;
	home.tooltip._y = this._parent._y - this._parent._height/2;
}



function mover()
{
	this._x = Math.cos(this.angle) * radiusX + centerX;
	this._y = Math.sin(this.angle) * radiusY + centerY;
	var s = (this._y - perspective) /(centerY+radiusY-perspective);
	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)/7500;
}

init()

_root.createEmptyMovieClip("bg_container", -16000)
bg_container._alpha = 0

var lst = {}
lst.onLoadInit = function(mc){
	_root.menu.swapDepths(mc)
	_root.bot.swapDepths(mc)
	mc._y += 200
    tocenter(_root.bg_container)
	}

var loader = new MovieClipLoader()
loader.addListener(lst)
loader.loadClip("bg.jpg", _root.bg_container)

function tocenter(target){
	var tw6:Tween = new Tween(target,"_x",Strong.easeOut,target._x,Stage.width/2-target._width/2,50,false);
	var tw7:Tween = new Tween(target,"_y",Strong.easeOut,target._y,Stage.height/2-target._height/2,50,false);
	if(!_global.executeTocenter){var tw5:Tween = new Tween(target,"_alpha",Strong.easeOut,0,100,40,false);}
	_global.executeTocenter = true
	}