..:: MX Studio Fóruns ::..: Porque dah errado??? - ..:: MX Studio Fóruns ::..

Jump to content

Publicidade




ATENÇÃO

Para evitar posts desnecessários e que não influam para o andamento e desenvolvimento do fórum, clique aqui e leia todas as regras.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Porque dah errado???

#1 User is offline   Natan 

  • Group: Moderador Global
  • Posts: 7350
  • Joined: 28-February 04

Posted 01 October 2004 - 04:41 PM

eu to fazendo um menu onde os botes chamam arquivos externos em um mc...........ateh agora tava tudo certo........fiz um arquvio onde tenho um combo box, um list e um text area, todos carregando arquivo em xml.........quando colokei pra carrega o arquivo ele carrega mas naum consigo acessa o combo box e assim as informações............o combo aparece mas quando cliko naum abaixa as opções...........e agora????

valew
0

#2 User is offline   Vagner Becker 

  • Group: Membros
  • Posts: 111
  • Joined: 26-May 04

Posted 02 October 2004 - 10:10 AM

Olá Natand.

Por acaso as informações que deveriam aparecer neste
combobox, estão no primerio swf?

Se for isso. Vc tem que passar as variáveis para o movie
que você chamou.Se seu projeto for online tá resolvido é
só quando chamar o swf colocar o parâmetro adicional "GET"
mas se for local aí o bixo pega vc terá que usar o comando Local conection
aí é uma confusão depende de um monte coisa.

Um abraço
Vagner Becker
Curitiba
0

#3 User is offline   Natan 

  • Group: Moderador Global
  • Posts: 7350
  • Joined: 28-February 04

Posted 02 October 2004 - 11:35 AM

ae Vagner Becker

esse meu arquivo eh parecido com uma coluna desse site:

http://www.flashmasters.com.br/?site=colun...tra&cat=9&id=46

e como eu coloko isso?????

tah ai o codigo q usei:

CODE
fscommand("allowscale", false);
stop();

// define a posição do movieclip holder,
// no qual serão carregados os arquivos externos
holder._x = 0;
holder._y = 0

// isto é uma propriedade comum à todos movieclips
// seu valor padrão (default) é false
MovieClip.prototype.preloading = false;

// ativa um novo processo de carregamento
// um número ilimitado de movieclips pode ser definido
MovieClip.prototype.setPreload = function(action, timeline) {
this.mcTotal = this.total = 0;
this.carregado = this.porcentagem = 0;
this.action = action;
if(arguments.length > 2) {
this.timeline = new Array();
for(var i = 1; i < arguments.length; i++) {
 this.mcTotal += arguments[i].getBytesTotal();
 this.timeline.push(arguments[i]);
}
} else {
this.mcTotal = timeline.getBytesTotal();
this.timeline = timeline;
}
this._xscale = 0;
this._visible = true;
this.preloading = true;
this.finishPreload = function() {
this.total = this.carregado = this.porcentagem = 0;
this._xscale = 0;
this._visible = this.preloading = false;
this.action();
}
}

// este método deve ser chamado de um movieclip
// dentro de um evento enterFrame
MovieClip.prototype.doPreload = function() {
if(this.preloading) {
if(typeof(this.timeline) == "object") {
 for(var j = 0; j < this.timeline.length; j++) {
  this.total += this.timeline[j].getBytesTotal();
  this.carregado += this.timeline[j].getBytesLoaded();
  }
} else {
   this.total = this.timeline.getBytesTotal();
   this.carregado = this.timeline.getBytesLoaded();
}
if(this.total != this.mcTotal) {
 this.porcentagem = Math.round(this.carregado*100/this.total);
 this._xscale = this.porcentagem;
}
if(this.porcentagem == 100) this.finishPreload();
}
}


esse saum nos botoes

CODE
on(release) {

// função que deverá ser executada
// quando o arquivo externo carregar
  var img1handler = function() {
_root.holder.gotoAndStop(2);
}

// carrega o arquivo externo
_root.holder.loadMovie("meu arquvivo externo");

  // ativa o novo preloader
_root.preloader.setPreload(img1handler, _root.holder);

}


valew
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic



Publicidade




1 User(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)