Ir para conteúdo
Fórum Script Brasil

Hugo Frinzi

Membros
  • Total de itens

    2
  • Registro em

  • Última visita

Tudo que Hugo Frinzi postou

  1. Não, mas ele está no caminho correto. Não consigo fazer ele fncionar de jeito nenhum... Já tentei colocá-lo na mesma pasta e não deu certo também... Já testei em 2 servidores diferente e nada... :(
  2. Estou precisando de uma ajuda. É o seguinte tenho um swf que carrega swf's externos e um som de fundo. O problema é esse: quando dou um Ctrl+Enter, a animação funciona normalmente, mas quando publico a animação, ele não carrega, diz que não acha o XML (que chama os swf's) e acaba só aparecendo o movie principal. Meus códigos são esses: Movie Principal: import bairroEscola; var bEscola:bairroEscola; var bg_sound:Sound = new Sound(); var numSecondsOffset:Number = new Number(); var centerX:Number = plotArea._width/2; var speed:Number = 0.1;//352; var degrees:Number = 90; var largura:Number = lineTest._width-(stage._width+plotArea._width); if (_root.caminho == undefined) { _root.caminho = "personagens/"; } bEscola = new bairroEscola(_root.caminho); bg_sound.loadSound(_root.caminho+"trilha.mp3"); numSecondsOffset = (bg_sound.position/1000); bg_sound.onLoad = function(success:Boolean):Void { if (success) { bg_sound.start(numSecondsOffset,1000); } }; lineTest.onEnterFrame = moveImagem; function moveImagem() { var angle:Number = this._parent.degrees*(Math.PI/180); if (this._parent.degrees<0) { this._parent.speed = Math.abs(this._parent.speed); } if (this._parent.degrees>180) { this._parent.speed = -this._parent.speed; } this._parent.degrees += this._parent.speed; this._x = this._parent.largura*(Math.cos(angle)/2)-this._parent.largura/2; } this.onMouseMove = function() { speed = (this.plotArea._xmouse-centerX)*0.001; }; AS: class bairroEscola { private static var filename_list:Array; private static var url_list:Array; private static var url_target_list:Array; private static var title_list:Array; private static var description_list:Array; private static var folder:String; private static var xml_loader:XML; public function bairroEscola(path:String) { filename_list = new Array(); url_list = new Array(); url_target_list = new Array(); title_list = new Array(); description_list = new Array(); folder = new String(path); xml_loader = new XML(); xmlLoader(path); } private function xmlLoader(path:String) { xml_loader.ignoreWhite = true; xml_loader.load(path+"thumbnail_list.xml"); xml_loader.onLoad = function(success:Boolean):Void { var flashmo_xml:XMLNode = new XMLNode(); flashmo_xml = this.firstChild; if (success) { for (var i:Number = 0; i<flashmo_xml.childNodes.length; i++) { filename_list.push(flashmo_xml.childNodes.attributes.filename.toString()); url_list.push(flashmo_xml.childNodes.attributes.url.toString()); url_target_list.push(flashmo_xml.childNodes.attributes.target.toString()); title_list.push(flashmo_xml.childNodes.attributes.title.toString()); description_list.push(flashmo_xml.childNodes.attributes.description.toString()); _root.lineTest.Pontos_Turisticos[filename_list].createEmptyMovieClip("img",_root.lineTest.Pontos_Turisticos[filename_list].getNextHighestDepth()); _root.lineTest.Pontos_Turisticos[filename_list].img.loadMovie(folder+filename_list+".swf"); _root.lineTest.Pontos_Turisticos[filename_list].url_list = url_list; _root.lineTest.Pontos_Turisticos[filename_list].url_target_list = url_target_list; _root.lineTest.Pontos_Turisticos[filename_list].title_list = title_list; _root.lineTest.Pontos_Turisticos[filename_list].onRelease = function() { //navigateToURL(new URLRequest(this.url_list),this.url_target_list)); getURL(this.url_list, this.url_target_list); if (this.url_target_list != "_blank") { _root.plotArea.play(); } _root.lineTest.onEnterFrame = _root.moveImagemInicial; }; _root.lineTest.Pontos_Turisticos[filename_list].onRollOver = function() { //this.img.tooltips this.img.tooltips._alpha = 100; this.img.tooltips.texto.text = this.title_list; switch (this._name) { case "conselho" : this.img.tooltips.startDrag(true); break; case "escola_livre" : this.img.tooltips.startDrag(true); break; case "meio_ambiente" : this.img.tooltips.startDrag(true); break; default : break; } }; _root.lineTest.Pontos_Turisticos[filename_list].onRollOut = function() { this.img.tooltips._alpha = 0; switch (this._name) { case "conselho" : this.img.tooltips._y = -10000; break; case "escola_livre" : this.img.tooltips._y = -10000; break; case "meio_ambiente" : this.img.tooltips._y = -10000; break; default : break; } this.img.tooltips.stopDrag(); }; _root.lineTest.Pontos_Turisticos[filename_list].onDragOut = function() { this.img.tooltips._alpha = 0; switch (this._name) { case "conselho" : this.img.tooltips._y = -10000; break; case "escola_livre" : this.img.tooltips._y = -10000; break; case "meio_ambiente" : this.img.tooltips._y = -10000; break; default : break; } this.img.tooltips.stopDrag(); }; } } else { trace("XML NOT FOUND"); } }; } public function dadosXML():Array { return filename_list; } } Se alguém puder me ajudar, agradeço !!!
×
×
  • Criar Novo...