Ir para conteúdo
Fórum Script Brasil

Anti-puff

Membros
  • Total de itens

    262
  • Registro em

  • Última visita

Posts postados por Anti-puff

  1. Criar campo de texto e formatar

    
    this.createTextField("tfNewfield",this.getNextHighestDepth(),50,50,50,20);
        this.tfNewfield.text = "1";
        this.tfNewfield.embedFonts = false;
        fmtEmphasis = new TextFormat();
        fmtEmphasis.size = 11;
        fmtEmphasis.font = "Arial";
        fmtEmphasis.color = 0x000000
        fmtEmphasis.align = "right"
        this.tfNewfield.setTextFormat(fmtEmphasis);
    
    
    
    
    :blink: atribuir valor dinamicamente:
    this.tfNewfield.text = "Anti-puff";
    
    

  2. bem ... se o mp3 esta na mesma pasta do swf, e você carregou o nome do mp3 numa variavel "nome" assim:

    url.swf?nome=musica.mp3

    então no flash adicione:

    
    playsound(nome);
    
    
    function playsound(file){
    mySound = new Sound();
    mySound.loadSound(file.toString(),true);
    mySound.setVolume(100);
    mySound.start();
    }
    
    

    caso o mp3 esteja numa outra pasta, use:

    url.swf?nome=pasta/musica.mp3

    :blink:

  3. seu "TEXTO" esta assim com nome de variavel ou com nome de instancia ... pois _root.BT_first.MC_juca.TEXTO.text = "meu texto"; só funciona se TEXTO for o nome de instancia... se você usa "TEXTO" como variável tente: _root.BT_first.MC_juca.TEXTO = "meu texto";

  4. Achei uma solução interessante

    veja como ficou meu exemplo...

    Criei uma caixa de texto... "caixa"

    Código do Frame 1 da cena

    
    caixa="There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc. "
    
    
    function sobe(){
        _root.caixa.scroll =  _root.caixa.scroll + 1;
    }
    
    function desce(){
        _root.caixa.scroll =  _root.caixa.scroll - 1;
    }
    
    
    
    var up = false;
    var down = false;
    var iID = setInterval(masterTime,200)
    
    
    function masterTime(){
        if(up == true){
            sobe();
        }
        if(down == true){
            desce();
        }
    }
    
    código do Botão Subir
    on (rollOver) {
    up = true;
    }
    on (rollOut) {
    up = false;
    }
    
    código do Botão Descer
    on (rollOver) {
    down = true;
    }
    on (rollOut) {
    down = false;
    }
    

    a velocidade você controla mudando o valor 200 na linha:

    var iID = setInterval(masterTime,200)

    :blink:

  5. Para ser mais rápido use:

    
    
    on (rollOver) {
    _root.onEnterFrame = function() {
    _root.caixa.scroll  =  _root.caixa.scroll - 2;
    };
    }
    on (rollOut) {
    delete _root.onEnterFrame;
    }
    
    
    
    on (rollOver) {
    _root.onEnterFrame = function() {
    _root.caixa.scroll =  _root.caixa.scroll +2;
    };
    }
    on (rollOut) {
    delete _root.onEnterFrame;
    }
    
    
    
    
    Mais lento
    
    
    on (rollOver) {
    _root.onEnterFrame = function() {
    _root.caixa.scroll  =  _root.caixa.scroll - 0.1;
    };
    }
    on (rollOut) {
    delete _root.onEnterFrame;
    }
    
    
    
    on (rollOver) {
    _root.onEnterFrame = function() {
    _root.caixa.scroll =  _root.caixa.scroll + 0.1;
    };
    }
    on (rollOut) {
    delete _root.onEnterFrame;
    }
    
    
    

    :blink:

  6. nesse caso fica assim:

    
    on(release){
        getURL("java script:window.open('mapa.htm',new Date().getTime(),'width="+(System.capabilities.screenResolutionX-10)+",height="+(System.capabilities.screenResolutionY-73)+",top=yes,left=0'); void(0);");
    }
    
    

    usando System.capabilities.screenResolutionX e System.capabilities.screenResolutionY para pegar a largura e altura do monitor subtraída as bordas do ie ... nesse casso com valores 10 e 73 (Windows XP)

    :blink:

×
×
  • Criar Novo...