|
Trouver une ressource
Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum. Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !
Sujet : comment faire un zoom en Action script? [ Archives / ActionScript ] (yoyotris)
Informations & options pour cette discussion
vendredi 4 avril 2003 à 23:45:20 |
comment faire un zoom en Action script?

yoyotris
|
Comment fait on un zoom en Action Script >>>> merci de votre reponse... LiQuIdE IcE
|
|
|
vendredi 4 avril 2003 à 23:45:53 |
Re : comment faire un zoom en Action script?

yoyotris
|
[size=2]LiQuIdE IcE  ------------------------------- Réponse au message : ------------------------------- > Comment fait on un zoom en Action Script >>>> merci de votre reponse... > LiQuIdE IcE[/size=6]
|
|
|
mardi 2 septembre 2003 à 02:46:51 |
Re : comment faire un zoom en Action script?

individis
|
Individis - Patrice Gobert - ------------------------------- Réponse au message : A associer à un bouton par exemple... Ya juste à préciser le clip que tu veux zoomer ------------------------------- on (press){ // -------------------------------------- _global._zoom = 1; _global._vitesse = 2; _global._grossissement = 3.5;//facteur grossissement. _global._orig_x = _root.objet-a-zoomer._x; //préciser le clip _global._orig_y = _root.objet-a-zoomer._y;//idem _global._larg = _root.objet-a-zoomer._width / _grossissement; _global._haut = _root.objet-a-zoomer._height / _grossissement; // -------------------------------------- zone = createEmptyMovieClip("zone_de_visee", 1); // -------------------------------------- zone.onMouseMove = function() { if (_zoom == 1) { this.rectangleur(_zoom, 15);// zoom et alpha : zoom : 1 = zoom, 0 = pas de zoom } else { this.rectangleur(_zoom, 0); } }; // -------------------------------------- zone.onPress = function() { if (_zoom == 1) { _root.myGallery.grossir(); } else { _root.myGallery.normaliser(); } }; // -------------------------------------- MovieClip.prototype.grossir = function() { this.px = _orig_x - ((this._xmouse) * _grossissement); this.py = _orig_y - ((this._ymouse) * _grossissement); var but = 100 * _grossissement; this.onEnterFrame = function() { if (this._xscale < but * .9) { this._xscale += (but - this._xscale) / _vitesse; this._yscale += (but - this._yscale) / _vitesse; this._x += (this.px - this._x +(114*_grossissement)) / _vitesse; //facteur de positionnement a calculer (empirique) this._y += (this.py - this._y+(97*_grossissement)) / _vitesse;//facteur a cacluler (empirique) } else { this._xscale = but; this._yscale = but; this._x = this.px+(114*_grossissement); this._y = this.py+(97*_grossissement); _zoom = _grossissement; zone.rectangleur(_zoom, 0); delete this.onEnterFrame; } }; }; // -------------------------------------- MovieClip.prototype.normaliser = function() { this.onEnterFrame = function() { if (this._xscale > 110) { this._xscale += (100 - this._xscale) / _vitesse; this._yscale += (100 - this._yscale) / _vitesse; this._x += (_orig_x - this._x) / _vitesse; this._y += (_orig_y - this._y) / _vitesse; } else { //remise a l'origine this._xscale = 100; this._yscale = 100; this._x = _orig_x; this._y = _orig_y; _zoom = 1; zone.rectangleur(_zoom, 15); delete this.onEnterFrame; } }; }; // -------------------------------------- MovieClip.prototype.rectangleur = function(zoom, alpha) { if (_xmouse <=20 or _xmouse>=645 or _ymouse<=160 or _ymouse>=500){ this.clear(); } else { this.clear(); var alpha_trait = (alpha != 0) ? 100 : 0; this.lineStyle(0, 0x000000, alpha_trait); var _xm = _xmouse; var _ym = _ymouse; var LA = 20//_larg * zoom/4; var HA = 20//_haut * zoom/4; this.moveTo(-LA + _xm, -HA + _ym); this.lineTo(LA + _xm, -HA + _ym); this.lineTo(LA + _xm, HA + _ym); this.lineTo(-LA + _xm, HA + _ym); this.lineTo(-LA + _xm, -HA + _ym); this.lineStyle(0, 0xFFFFFF, alpha_trait); this.beginFill(0xff9933, alpha); this.moveTo(-LA + _xm + 1, -HA + _ym + 1); this.lineTo(LA + _xm + 1, -HA + _ym + 1); this.lineTo(LA + _xm + 1, HA + _ym + 1); this.lineTo(-LA + _xm + 1, HA + _ym + 1); this.lineTo(-LA + _xm + 1, -HA + _ym + 1); this.endFill(); } }; }
|
|
|
mardi 2 septembre 2003 à 02:50:10 |
Re : comment faire un zoom en Action script?

individis
|
Individis - Patrice Gobert -
------------------------------- Réponse au message : ------------------------------- qq correction... en regard de l'oblet a zoomer... ------------------------------- on (press){ // -------------------------------------- _global._zoom = 1; _global._vitesse = 2; _global._grossissement = 3.5; _global._orig_x = _root.Objet-a-zoomer._x; _global._orig_y = _root.Objet-a-zoomer._y; _global._larg = _root.Objet-a-zoomer._width / _grossissement; trace(larg);trace(haut); _global._haut = _root.Objet-a-zoomer._height / _grossissement; // -------------------------------------- zone = createEmptyMovieClip("zone_de_visee", 1); // -------------------------------------- zone.onMouseMove = function() { if (_zoom == 1) { this.rectangleur(_zoom, 15);// zoom et alpha : zoom : 1 = zoom, 0 = pas de zoom } else { this.rectangleur(_zoom, 0); } }; // -------------------------------------- zone.onPress = function() { if (_zoom == 1) { _root.Objet-a-zoomer.grossir(); } else { _root.Objet-a-zoomer.normaliser(); } }; // -------------------------------------- MovieClip.prototype.grossir = function() { this.px = _orig_x - ((this._xmouse) * _grossissement); this.py = _orig_y - ((this._ymouse) * _grossissement); var but = 100 * _grossissement; this.onEnterFrame = function() { if (this._xscale < but * .9) { this._xscale += (but - this._xscale) / _vitesse; this._yscale += (but - this._yscale) / _vitesse; this._x += (this.px - this._x +(114*_grossissement)) / _vitesse; // this._y += (this.py - this._y+(97*_grossissement)) / _vitesse;// } else { this._xscale = but; this._yscale = but; this._x = this.px+(114*_grossissement); this._y = this.py+(97*_grossissement); _zoom = _grossissement; zone.rectangleur(_zoom, 0); delete this.onEnterFrame; } }; }; // -------------------------------------- MovieClip.prototype.normaliser = function() { this.onEnterFrame = function() { if (this._xscale > 110) { this._xscale += (100 - this._xscale) / _vitesse; this._yscale += (100 - this._yscale) / _vitesse; this._x += (_orig_x - this._x) / _vitesse; this._y += (_orig_y - this._y) / _vitesse; } else { //remise a l'origine this._xscale = 100; this._yscale = 100; this._x = _orig_x; this._y = _orig_y; _zoom = 1; zone.rectangleur(_zoom, 15); delete this.onEnterFrame; } }; }; // -------------------------------------- MovieClip.prototype.rectangleur = function(zoom, alpha) { if (_xmouse <=20 or _xmouse>=645 or _ymouse<=160 or _ymouse>=500){ this.clear(); } else { this.clear(); var alpha_trait = (alpha != 0) ? 100 : 0; this.lineStyle(0, 0x000000, alpha_trait); var _xm = _xmouse; var _ym = _ymouse; var LA = 20//_larg * zoom/4; var HA = 20//_haut * zoom/4; this.moveTo(-LA + _xm, -HA + _ym); this.lineTo(LA + _xm, -HA + _ym); this.lineTo(LA + _xm, HA + _ym); this.lineTo(-LA + _xm, HA + _ym); this.lineTo(-LA + _xm, -HA + _ym); this.lineStyle(0, 0xFFFFFF, alpha_trait); this.beginFill(0xff9933, alpha); this.moveTo(-LA + _xm + 1, -HA + _ym + 1); this.lineTo(LA + _xm + 1, -HA + _ym + 1); this.lineTo(LA + _xm + 1, HA + _ym + 1); this.lineTo(-LA + _xm + 1, HA + _ym + 1); this.lineTo(-LA + _xm + 1, -HA + _ym + 1); this.endFill(); } }; }
|
|
|
mercredi 17 décembre 2003 à 14:16:30 |
Re : comment faire un zoom en Action script?
|
mardi 6 janvier 2004 à 13:47:30 |
Re : comment faire un zoom en Action script?

titelyly37
|
Quelqu'un de vous pourrait-il m'envoyer un .fla pour que je parvienne à le faire sur titelyly37@tiscali.fr
merci d'avance
|
|
|
dimanche 28 mars 2004 à 16:49:27 |
Re : comment faire un zoom en Action script?

savaux
|
bonjour, Quelqu'un de vous pourrait-il m'envoyer un .fla ? pascal@savaux.org
merci d'avance
|
|
|
dimanche 31 juillet 2005 à 15:34:10 |
Re : comment faire un zoom en Action script?

natchou
|
Salut, meme question que titelyly et savaux: quelqu'un pourrait-il m'envoyer un fla s'il vous plait? Merci. 
|
|
|
dimanche 31 juillet 2005 à 15:35:51 |
Re : comment faire un zoom en Action script?
|
jeudi 11 août 2005 à 15:09:50 |
Re : comment faire un zoom en Action script?

Sankofa
|
Bonjour,
Bah ça serait pour demander la même chose que titelyly, savaux et natchou ^^ sankofa@hotmail.fr
Merci d'avance :)
|
|
|
Cette discussion est classé dans : script, action, zoom, size
Répondre à ce message
Sujets en rapport avec ce message
flash dans flash ??? action script [ par funzen ]
bonjour, j'ai bidouillé un zoom sur photo jpeg avec flashmx,maintenant j'aimerai introduire c'est photos avec zoom intégré une par une dans un fichier
Action script ? [ par MarkASH ]
Bonjour,je suis nouveau,j'vais pas vous raconter ma life,mais j'aime travaillé sur flash.Je cherche le code as qui zoom + et qui zoom -Merci.
probleme action script : swf externe [ par lunaticks ]
bonjour a tous, voici mon probleme, je vais essayé d'etre clair : j'ai un swf (nommons le 01) qui charge deux autre swf (02 et 03) le swf 02 contien
action script FLASH MX [ par tarektn ]
le but est de creer une animation FLASH qui permet à un ballon d'occiller entre 2 barres et d'avoir un boutton qui permet de faire une pause en un pre
Action Script contre copie d'écran [ par MAMYE ]
Bonjour,Je cherche à savoir s'il existe un moyen (AS) pour interdire les copies d'écran d'une animation Flash.Je sais interdire les copies d'écran dan
deplacer un objet avec action script [ par ahmbr ]
bonjourcomment deplacer un objet en utullusant actionscript dans flash 8je connait comment faire un symbole et une instance mais je ne sais pas commen
Luminosité d'un mc en action script [ par 0sted ]
Bonjour à tous,Alors voilà, j'aimerais tout simplement pouvoir faire ce meme changement de luminosité: làMais en action script : /.Est ce que c'est po
cherche code action script pour entrer ds une zone securisé [ par bastplanta ]
Bonjour a tous, je cherche un tutorial sur comment en action script gerer des mots de passe inscrit ds un xml ou autre pour acceder a une page securis
action script [ par moha007 ]
bonjour les amis !j'ai une animation .swf que j'aimerais mettre au mileu d'une autre animation, il s'agit d'un ecran pc qui affiche aleatoirement des
Création dynamique d'appli avec action script et XML [ par yosh ]
Bonjour à tous, Je boss actuellement sur un projet assez complexe consistant à créer dynamiquement une appli Flash à partir d'un fichier XML... Je vou
Livres en rapport
|
Téléchargements
Logiciels à télécharger sur le même thème :
Comparez les prix Nouvelle version
|