- Home
- Categorie
- Digital Marketing
- Grafica, Visual Design & UX
- Fullscreen e tween
-
Fullscreen e tween
Ciao a tutti, ho trovato questo bellissimo effetto qui ma non riesco a renderlo fullscreen, qualcuno può aiutarmi?
Il codice è questo:Stage.scaleMode = "noScale" Stage.align = "TL" _global.itens = [mc1, mc2, mc3, mc4, mc5]; _global.nome = ["Notícias", "Info", "Fólio", "Links", "Contato"]; _global.swf = ["01.swf", "02.swf", "03.swf", "04.swf", "05.swf"]; // _global.largura = 300; _global.altura = 300; // Reverse = function () { for (var i = 0; i<itens.length; i++) { if (i != selecionado) { itens*.bt.enabled = true; itens*.bt.useHandCursor = true; // itens*.top.tween("_width", 80, tempo, AnimType); itens*.sombra.tween(["_width", "_height"], [80, 98], tempo, AnimType); itens*.fd.tween(["_width", "_height"], [80, 80], tempo, AnimType); itens*.meio.tween(["_width", "_height"], [70, 70], tempo, AnimType); itens*.mask.tween(["_width", "_height"], [70, 70], tempo, AnimType); // descarregaMovie = function () { itens*.alvo.unloadMovie(); }; itens*.alvo.alphaTo(0, tempo, "", 0, descarregaMovie); } } }; for (var i = 0; i<itens.length; i++) { itens*.i = i; itens*.alvo._alpha = 0; itens*.titulo.text = nome*; // itens[0].top.tween("_width", largura+10, tempo, AnimType); itens[0].sombra.tween(["_width", "_height"], [largura+10, altura+28], tempo, AnimType); itens[0].fd.tween(["_width", "_height"], [largura+10, altura+10], tempo, AnimType); itens[0].meio.tween(["_width", "_height"], [largura, altura], tempo, AnimType); itens[0].mask.tween(["_width", "_height"], [largura, altura], tempo, AnimType); itens[0].alvo.loadMovie(swf[0]); itens[0].alvo.alphaTo(100, tempo); itens[0].bt.enabled = false; itens[0].bt.useHandCursor = false; //i itens*.bt.onRollOver = function() { this._parent.meio.colorTo("0xffff00", tempo/4); }; itens*.bt.onRollOut = function() { this._parent.meio.colorTo("0x333333", tempo); }; itens*.bt.onRelease = function() { _global.selecionado = this._parent.i; this.enabled = false; this.useHandCursor = false; // this._parent.alvo.loadMovie(swf[selecionado]); this._parent.alvo.alphaTo(100, tempo); // this._parent.top.tween("_width", largura+10, tempo, AnimType); this._parent.sombra.tween(["_width", "_height"], [largura+10, altura+28], tempo, AnimType); this._parent.fd.tween(["_width", "_height"], [largura+10, altura+10], tempo, AnimType); this._parent.meio.tween(["_width", "_height"], [largura, altura], tempo, AnimType); this._parent.meio.colorTo("0x333333", tempo); this._parent.mask.tween(["_width", "_height"], [largura, altura], tempo, AnimType); Reverse(); }; } onEnterFrame = function () { mc2._x = mc1._x+mc1.fd._width+3; mc3._x = mc2._x+mc2.fd._width+3; mc4._x = mc3._x+mc3.fd._width+3; mc5._x = mc4._x+mc4.fd._width+3; };
Grazie in anticipo
-
Ciao,
in che senso renderlo fullscreen ?
Vuoi che l' swf venga riprodotto fullscreen ma le dimensioni degli oggetti devono aumentare in base alla grandezza dello stage oppure non devono scalare, deve scalare solo lo sfondo ?
-
Vorrei che le tesserine si disponessero in orizzontale lungo tutto lo stage senza scalare, lo sfondo ho intenzione di toglierlo per cui il tutto è limitato solo alle tesserine.
P.S. Dimenticavo, ho flash 8
-
Bisognerebbe studiarsi la logica del codice.
Purtroppo sono tante righe ed io non ne ho il tempo materiale in quanto potrebbe portar via anche mezza giornata un lavoretto del genere.
Confido in qualche altro utente
-
Ed io che mi sono illusa
Grazie lo stesso Flep per avermi risposto ;)..
Cmq se può servire mi sono avvalsa nelle mie prove di questo codice dello stesso autore ed il resto dei componenti che ho inserito sullo stage insieme a quelle tesserine funzia:
#include "lmc_tween.as" Stage.align = "TL"; Stage.scaleMode = "noScale"; // -- _global.setStage = function() { slis = new Object(); slis.onResize = function() { // center c_meio.tween("_x", Stage.width/2, 1, "easeoutBack"); c_meio.tween("_y", Stage.height/2, 1, "easeoutBack"); c_fd.tween("_x", Stage.width/2, 1, "easeoutBack", 0.1); c_fd.tween("_y", Stage.height/2, 1, "easeoutBack", 0.1); // top t_meio.tween("_width", Stage.width, 1, "easeoutBack"); t_fd.tween("_width", Stage.width, 1, "easeoutBack", 0.1); // bot b_meio.tween("_width", Stage.width, 1, "easeoutBack"); b_meio.tween("_y", Stage.height-30, 1, "easeoutBack"); b_fd.tween("_width", Stage.width, 1, "easeoutBack", 0.1); b_fd.tween("_y", Stage.height-40, 1, "easeoutBack", 0.1); b_down.tween("_y", Stage.height-25, 1, "easeoutBack"); }; Stage.addListener(slis); slis.onResize(); }; setStage(); b_meio.onRelease = function() { getURL("stage.zip", "_blank"); }; ```:)