E-anim...E-anim...Rien que E-anim
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.
-40%
Le deal à ne pas rater :
Tefal Ingenio Emotion – Batterie de cuisine 10 pièces (induction, ...
59.99 € 99.99 €
Voir le deal

tuto d' E-Anim

Page 5 sur 6 Précédent  1, 2, 3, 4, 5, 6  Suivant

Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Ven 11 Juin - 17:37

Spoiler:
Si vs voulez vous amusez....
Sauvez le phi nommez le "ce que vs voulez".....

1groupes avec une etoile
que vs nommez "particle" ds le groupe et ds ecran de base......(mettez 60 temps,pour que l'anim se joue)

au temps 0
roue crantée...>
faire une action immediate...>actionscript...>la fenetre mtasc s'ouvre
et vs mettez entre "ecrire ici"" et les 2 accolades...


var fireDelay = 4;
var fireworkContainer;
var stageWidth = 550;
var stageHeight = 400;
var particleIdx = 0;


//var fireworkContainer = _root.createEmptyMovieClip('fireworks', 99);
fireworkContainer.onEnterFrame = function(){
fireDelay--;
if (fireDelay <= 0){
// fire();
fireDelay = random(50);
}
};
//}
//function fire(){
var x = random(stageWidth);
var y = random(stageHeight/2);
var particleCount = 30 + random(30);
var colorIndex = random(_root.particle._totalframes+1);
for (var i = 0; i < particleCount; i++){
particleIdx++;
var thisParticle = _root.particle.duplicateMovieClip("particle"+particleIdx, particleIdx + 99, fireworkContainer);
thisParticle._x = x;
thisParticle._y = y;
_root.particle._visible=false;
// thisParticle.gotoAndStop(colorIndex);
thisParticle.direction = 360*Math.random();
thisParticle.xEnergy = thisParticle.yEnergy = 1 + Math.random()*10;
thisParticle.onEnterFrame = function(){
//psuedo-gravity
if (this.direction < 180){
this.direction += 2;
if (this.direction > 180) this.direction = 180;
}else if(this.direction > 180){
this.direction -= 2;
if (this.direction < 180) this.direction = 180;
}
this._x += Math.cos((this.direction-90)*Math.PI/180)*this.xEnergy;
this._y += Math.sin((this.direction-90)*Math.PI/180)*this.yEnergy;
this._alpha -= 1.1;
this._xscale *= 0.95;
this._yscale = this._xscale;
if (this._alpha <= 0 || this._xscale <= 0.3){
this.removeMovieClip();
}
};
}



........
likez sur Compiler en haut à droite de la fenetre
...........

vs testez et voili voilou...


Dernière édition par Admin le Jeu 17 Fév - 6:00, édité 1 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Dim 13 Juin - 5:17

un script de gremlins7

Spoiler:
Si vs voulez vous amusez....
Sauvez le phi nommez le "ce que vs voulez".....

1groupes avec
un rectangle tranparent "ceque vs voulez " ds ecran de base......


roue crantée...>
faire une action immediate...>actionscript...>la fenetre mtasc s'ouvre
et vs mettez entre "ecrire ici"" et les 2 accolades...


var Distance:Number=5000;
var XCamera:Number=120;
var YCamera:Number=200;
var phi:Number=0;
var phi_inc:Number=0.35;
var amp:Number=200;
var speed:Number=8;
var Points =new Array();
Points = new Array(
{x:4,y:63,z:0},
{x:12,y:71,z:0},
{x:4,y:67,z:0},
{x:7,y:71,z:0},
{x:33,y:82,z:0},
{x:54,y:87,z:0},
{x:57,y:15,z:0},
{x:34,y:27,z:0},
{x:16,y:45,z:0},
{x:81,y:14,z:0},
{x:81,y:90,z:0},
{x:100,y:15,z:0},
{x:105,y:88,z:0},
{x:124,y:21,z:0},
{x:125,y:84,z:0},
{x:145,y:28,z:0},
{x:145,y:79,z:0},
{x:160,y:36,z:0},
{x:160,y:73,z:0},
{x:170,y:41,z:0},
{x:171,y:70,z:0},
{x:180,y:44,z:0},
{x:180,y:68,z:0},
{x:188,y:44,z:0},
{x:188,y:69,z:0},
{x:76,y:5,z:0},
{x:108,y:5,z:0},
{x:180,y:24,z:0},
{x:181,y:36,z:0},
{x:72,y:101,z:0},
{x:87,y:108,z:0},
{x:167,y:93,z:0},
{x:179,y:88,z:0},
{x:176,y:75,z:0},
{x:213,y:35,z:0},
{x:242,y:32,z:0},
{x:233,y:59,z:0},
{x:239,y:83,z:0},
{x:231,y:84,z:0});
var Links =new Array();
Links =new Array
(new Array(0,1,2,3,4,5,6,7,8,0));
Links.push(new Array(9,10));
Links.push(new Array(11,12));
Links.push(new Array(13,14));
Links.push(new Array(15,16));
Links.push(new Array(17,18));
Links.push(new Array(19,20));
Links.push(new Array(21,22));
Links.push(new Array(9,10));
Links.push(new Array(6,9,11,13,15,17,19,21,23));
Links.push(new Array(5,10,12,14,16,18,20,22,24));
Links.push(new Array(6,25,26,27,28,19));
Links.push(new Array(5,29,30,10));
Links.push(new Array(14,31,32,33,20));
Links.push(new Array(23,34,35,36,37,38,24));

var X=new Array(Points.length);
var Y=new Array(Points.length);

_root.onEnterFrame=function(){
this.clear();
this.beginFill(0xe6e6e6);
this.lineStyle(1,0x0000ff);

if(phi<2*Math.PI){
phi=phi+phi_inc;
} else{
phi=phi_inc;
}
for(var i:Number=0;i<Points.length;i++) {
Points[i].z=amp*Math.sin(2*3.14*speed*Points[i].x+phi);
X[i]=Points[i].x*Distance/(Points[i].z+Distance)+Points[i].x+XCamera/2;
Y[i]=Points[i].y*Distance/(Points[i].z+Distance)+Points[i].y+YCamera/2;
}
for(var i:Number=0;i<Links.length;i++){
this.moveTo(X[Links[i][0]],Y[Links[i][0]]);
for(var j:Number=1;j<Links[i].length;j++){
this.lineTo(X[Links[i][j]],Y[Links[i][j]]);
}}};



........
likez sur Compiler en haut à droite de la fenetre
...........

vs testez et voili voilou...


Dernière édition par Admin le Jeu 17 Fév - 6:00, édité 1 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Mer 16 Juin - 16:23

Spoiler:
Si vs voulez vous amusez....
Sauvez le phi nommez le "ce que vs voulez".....

1groupe avec
un rectangle transparent que vs nommez "clip " ds ecran de base......


roue crantée...>
faire une action immediate...>actionscript...>la fenetre mtasc s'ouvre
et vs mettez entre "ecrire ici"" et les 2 accolades...


_root. eclair = function (A, B, Width, roughness) {
_root.clip.lineStyle(Width, 0xA2E7FD, Width*25);
var angle = Math.atan2(B.y-A.y, B.x-A.x);
var dist = Math.sqrt(Math.pow(B.x-A.x, 2)+Math.pow(B.y-A.y, 2));
var MidPoint = {x:A.x+dist/2*Math.cos(angle), y:A.y+dist/2*Math.sin(angle)};
var d2 = (dist/2*roughness)*2*Math.random()-(dist/2*roughness+0.1);
var NewPoint = {x:MidPoint.x+d2*Math.cos(angle-Math.PI/2), y:MidPoint.y+d2*Math.sin(angle-Math.PI/2)};
if (dist>30) {
var ang = angle+(Math.random()*Math.PI/2)-Math.PI/4;
var branchlength = dist/2;
var dest = {x:NewPoint.x+branchlength*Math.cos(ang), y:NewPoint.y+branchlength*Math.sin(ang)};
_root. eclair(NewPoint, dest, Width/1.5, roughness);
}
if (dist>10) {
_root. eclair(A, NewPoint, Width, roughness);
_root. eclair(NewPoint, B, Width, roughness);
} else {
_root.clip.moveTo(A.x, A.y);
_root.clip.lineTo(NewPoint.x, NewPoint.y);
_root.clip.lineTo(B.x, B.y);
}};
_root.action= function () {
_root.clip.clear();
var pta = {x:Math.random()*500, y:0};
var ptb = {x:Math.random()*360, y:Math.random()*360};
_root. eclair(pta, ptb, 2,0.45);
};
_root.onEnterFrame = _root.action;


........
Clikez sur Compiler en haut à droite de la fenetre
...........

vs testez et voili voilou...


Dernière édition par Admin le Jeu 17 Fév - 6:01, édité 1 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Lun 5 Juil - 1:15

fastoche a écrit:
Spoiler:

Si vs voulez vous amusez....
Sauvez le phi nommez le "ce que vs voulez".....

1groupe avec
un rectangle transparent que vs nommez "ceque vsvoulez " ds ecran de base......


roue crantée...>
faire une action immediate...>actionscript...>la fenetre mtasc s'ouvre
et vs mettez entre "ecrire ici"" et les 2 accolades...


_global.ecouteur = {};
Mouse.addListener(_global.ecouteur);
_global.ecouteur.onMouseDown = function() {
this.souris = {xd:_root._xmouse, yd:_root._ymouse};
this.onMouseMove = function() {
_root.clip.clear();
_root.clip.lineStyle(2, 0x0000ff, 100);
_root.clip.beginFill(0x00ffff, 50);
_root.clip.moveTo(this.souris.xd, this.souris.yd);
_root.clip.lineTo(this.souris.xd, _root._ymouse);
_root.clip.lineTo(_root._xmouse, _root._ymouse);
_root.clip.lineTo(_root._xmouse, this.souris.yd);
_root.clip.lineTo(this.souris.xd, this.souris.yd);
};};
_global.ecouteur.onMouseUp = function() {
// _root.rectSelect.clear();
delete this.onMouseMove;
};
_root.createEmptyMovieClip("clip", 10);




........
Clikez sur Compiler en haut à droite de la fenetre
...........

vs testez et voili voilou...


Dernière édition par Admin le Jeu 17 Fév - 6:01, édité 1 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Lun 5 Juil - 17:51



Spoiler:
Si vs voulez vous amusez....
Sauvez le phi nommez le "ce que vs voulez".....

1groupe avec
votre clip nommé "etoile" ds ecran de base......


roue crantée...>
faire une action immediate...>actionscript...>la fenetre mtasc s'ouvre
et vs mettez entre "ecrire ici"" et les 2 accolades...


for (var i =0; i< 150; i++)
{
_root.etoile. duplicateMovieClip ( "star" + i, i);
_root["star" + i]. _x= random(550);
_root["star" + i]. _y= random(400);
_root.etoile._visible =false;
// l'alpha va determiner le plan et donc la vitesse de l'etoile
// dans le champ d'etoile
_root["star" + i]. _alpha= random(100);
}
_root.onEnterFrame = function ( ) {
for (var i=0; i<150; i++) {
// Decrementation du _x de l'etoile selon son plan (vitesse)
_root["star" + i]._x -= (_root["star" + i]._alpha >>> 6) + 1.2;

// Si l'etoile sors de l'ecran a gauche
if (_root["star" + i]._x < 0)
{
_root["star" + i]._x = 549; // Alors on l'affiche sur le bord droit
_root["star" + i]._y = random(400); // avec un _Y aleatoire
_root["star" + i]._alpha = random(100);
}}

};


........
Clikez sur Compiler en haut à droite de la fenetre
...........

vs testez et voili voilou...


Dernière édition par Admin le Jeu 17 Fév - 6:01, édité 1 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Dim 31 Oct - 4:27

revision rollover
Spoiler:

Si vs voulez vous amusez....

Sauvez le phi nommez le "ce que vs voulez".

1 groupe avec votre image au temps 0 (avec un stop)......... au temps 30 vs la faites descendre tt en bas (avec un stop)..

vs restez ds le groupe au temps 0 vs lui faites faire une action...>immediate....> actionscript...>la fenetre mtask s'ouvre vs mettez entre
"ecrire ici" et les "2 guillemets...>c'est 2 lignes (je precise qd meme que l'on peut faire de meme avec un bouton ,....donc....... ,sans script)


mc.onRollOver = function ( ) {
mc.gotoAndPlay (2);
};



..................
et voilà le tour est joué



Dernière édition par Admin le Jeu 17 Fév - 5:46, édité 1 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Mer 1 Déc - 0:56

script que j'ai repris de zone flash


Spoiler:
Si vs voulez vous amusez....
Sauvez le phi nommez le "bombe".....

1 groupe avec votre vaisseau "spaceinvaders" ds ecran de base...



roue crantée...>
faire une action immediate...>actionscript...>la fenetre mtasc s'ouvre

mettre en "class bombe{" et "static function action_0(mc:MovieClip):Void{"


static var gravite = 0.2;
static var vitesse = 2;
static var taille = 3;
static var ymin = 50;
static var ymax = 275;
static var xmin = -0.5*_root.spaceinvaders._width;
static var xmax = 450+0.5*_root.spaceinvaders._width;







et vs mettez entre "ecrire ici"" et les 2 accolades...

_root.attachMovie("spaceinvaders", "spaceinvaders", 0);

var xmin = -0.5*_root.spaceinvaders._width;
var xmax = 300+0.5*_root.spaceinvaders._width;


_root.spaceinvaders._x = xmin;
_root.spaceinvaders._y = ymin;

_root.createEmptyMovieClip("ligne", 1);
_root.ligne.lineStyle(0, 0, 100);
_root.ligne.moveTo(0, ymax);
_root.ligne.lineTo(450, ymax);

var ecouteur = new Object();

var largage = true;

ecouteur.onKeyDown = function() {
if (Key.isDown(Key.SPACE) && largage) {
bombe.larguerUneBombe();
largage = false;
}
};

ecouteur.onKeyUp = function() {
largage = true;
};

Key.addListener(ecouteur);

_root.tomber = function () {

this.vy += bombe.gravite;
this._x += this.vx;
this._y += this.vy;

if (this._y>bombe.ymax) {this.removeMovieClip();}
};}

static function larguerUneBombe () {
var depth = _root.getNextHighestDepth();
var bombe1 = _root.createEmptyMovieClip("bombe1"+depth, depth);
bombe1._x = _root.spaceinvaders._x;
bombe1._y = _root.spaceinvaders._y;
bombe1.beginFill(0, 100);
bombe1.moveTo(-0.5* bombe.taille, 0);
bombe1.lineTo(-0.5* bombe.taille, - bombe.taille);
bombe1.lineTo(0.5* bombe.taille, - bombe.taille);
bombe1.lineTo(0.5* bombe.taille, 0);
bombe1.lineTo(-0.5* bombe.taille, 0);
bombe1.endFill();
bombe1.vx = bombe.vitesse;
bombe1.vy = 0;
bombe1.onEnterFrame = _root.tomber;


_root.spaceinvaders.onEnterFrame = function() {
this._x += bombe.vitesse;
if (this._x>bombe.xmax) {this._x = bombe.xmin;}
else if (this._x < bombe.xmin) {this._x = bombe .xmax;}
};

...........

vs testez et voili voilou...


Dernière édition par Admin le Jeu 17 Fév - 5:47, édité 1 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Dim 5 Déc - 21:06

révision duplication tableau
Spoiler:
Si vs voulez vous amusez....

1 groupe avec un rond nommé "clip"ds ecran de base...

Sauvez le phi nommez le "cequevsvoulez".

Allez dans
proget...>programmation mtasc...>une fenetre s'ouvre...

mettre entre "ecrire ici" et les "2accolades"




var max = 20;
var tab = new Array();
var startSize = 20;
var augm = 10;
for(var i= 0;i< max; i++) {
_root.clip.duplicateMovieClip("clip"+i,i);

tab[i] = eval("clip"+i);
tab[i].xscale = startSize+(augm*i);
tab[i].yscale = startSize+(augm*i);
tab[i]._xscale += tab[i].xscale;
tab[i]._yscale += tab[i].yscale;
tab[i]._alpha = 100-(5*i);
_root.clip._visible = false;
}
_root.onEnterFrame = function ( ) {
tab[0]._x = _root._xmouse;
tab[0]._y = _root._ymouse;
for(var i= 1 ;i< max; i++) {
tab[i]._x += (tab[i-1]._x-tab[i]._x)/2;
tab[i]._y += (tab[i-1]._y-tab[i]._y)/2;
}};

...........
voili voilou Very Happy Very Happy


Dernière édition par Admin le Jeu 17 Fév - 5:47, édité 1 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Mar 21 Déc - 6:54

les obstacles et les points_courbes sont draguables

Spoiler:
Si vs voulez vous amusez....

Sauvez le phi nommez le "rally".

1 groupe avec un rectangle transparent nommé"ce que vs voulez"ds ecran de base...
lui faire faire une "action immediate"...>"actinscript"...>la fenetre mtasc s'ouvre...>

mettre entre "class rally{" et "static function action_0(mc:MovieClip):Void{"

static var LARG = Stage.width;
static var HAUT = Stage.height;
static var nb_points_courbe = 10;
static var nb_obstacles =10;
static var nbrvoit = 8;
static var tb_voit = [];


...............
mettre entre "ecrire ici" et les "2accolades"

_global.PI_4 = Math.PI / 4;
_root.presser = function () {
this.startDrag(true);};
_root.relacher = function () {
this.stopDrag();};

_root.createEmptyMovieClip("circuit", 100);
for (var i = 0; i < nbrvoit ; i++) {
var voit = _root.createEmptyMovieClip("voit" + i, 150 + i);
tb_voit.push(voit);
voit.lineStyle(18, 0);
voit.lineTo(0, -20);

voit.lineStyle(12, 0x646464);
voit.lineTo(0, 0);
voit._x = LARG / 3 + 20 * i;
voit._y = HAUT / 2;
voit.vitesse = 0;
voit.virage = 0;
voit.vitesse_maxi = 8 + i / 5;
}
var tb = [];
for (var i = 0; i < nb_points_courbe; i++) {
tb[i] = _root.createEmptyMovieClip("c" + i, i);
var phase = 2 * Math.PI * i / nb_points_courbe;
tb[i]. lineStyle(35, 0, 100);
tb[i]. lineTo(0, 1);
tb[i].lineStyle(32, 0x0000ff, 100);
tb[i]. lineTo(0, 0);
tb[i]. _x = LARG / 2 + LARG /2.5 * Math.sin(phase);
tb[i]. _y = HAUT / 2 + HAUT / 2.5 * Math.cos(phase);
tb[i]._x0 = tb[i]._x;
tb[i]._y0 = tb[i]._y;
tb[i].onPress = _root.presser;
tb[i].onRelease = tb[i].onReleaseOutside = _root.relacher;}

var tb_obs = [];
for (var i = 0; i < nb_obstacles; i++) {
tb_obs[i] = _root.circuit.createEmptyMovieClip("obs" + i, 200 + i);
var phase = 2 * Math.PI * i / nb_obstacles;
tb_obs[i]. lineStyle(35, 0x000000, 100);
tb_obs[i]. lineTo(0, 1);
tb_obs[i]. lineStyle(32, 0xd0f000, 100);
tb_obs[i]. lineTo(0, 0);
tb_obs[i]. _x = LARG / 2 + LARG / 5 * Math.sin(phase);
tb_obs[i]. _y = HAUT / 2 + HAUT / 5 * Math.cos(phase);
tb_obs[i]._x0 = tb_obs[i]._x;
tb_obs[i]._y0 = tb_obs[i]._y;
tb_obs[i].onPress = _root.presser;
tb_obs[i].onRelease = tb_obs[i].onReleaseOutside = _root.relacher; }

MovieClip.prototype.courbe = function(epaisseur, couleur, transparence) {
this.clear();
this.beginFill(0xffffff,0);
this.moveTo(0, 0);
this.lineTo(rally.LARG, 0);
this.lineTo(rally.LARG, rally.HAUT);
this.lineTo(0, rally.HAUT);
this.lineTo(0, 0);
this.lineStyle(2, couleur, transparence);
var ptx;
var pty;
var i = 0;
var ptx0 = (tb[0]._x + tb[1]._x) / 2;
var pty0 = (tb[0]._y + tb[1]._y) / 2;
this.moveTo(ptx0, pty0);

while(++i < tb.length - 1) {
ptx = (tb[i]._x + tb[i + 1]._x) / 2;
pty = (tb[i]._y + tb[i + 1]._y) / 2;
this.curveTo(tb[i]._x, tb[i]._y, ptx, pty);
}
ptx = (tb[0]._x + tb[i]._x) / 2;
pty = (tb[0]._y + tb[i]._y) / 2;
this.curveTo(tb[i]._x, tb[i]._y, ptx, pty);
this.curveTo(tb[0]._x, tb[0]._y, ptx0, pty0);

};
MovieClip.prototype.bouger = function() {
this.vitesse += (this.vitesse_maxi - this.vitesse) / 12;
var rot = this._rotation * Math.PI / 180;
this._x += Math.sin(rot) * this.vitesse;
this._y -= Math.cos(rot) * this.vitesse;
};
MovieClip.prototype.test_contact = function(autre_clip) {
this._rayon = 3 + this.vitesse * 5;

this._rayon_AV = 2 * this._rayon;
var rot = this._rotation * Math.PI / 180;
var rot_plus_PI_4 = rot + _global.PI_4;
var rot_moin_PI_4 = rot - _global.PI_4;
var rot_plus_PI_4_AV = rot + 0.08;
var rot_moin_PI_4_AV = rot - 0.08;
this.x1 = this._x + Math.sin((rot_plus_PI_4)) * this._rayon;
this.y1 = this._y - Math.cos((rot_plus_PI_4)) * this._rayon;
if (autre_clip.hitTest(this.x1, this.y1, true)) {
this.virage = -2 * (this.vitesse_maxi - this.vitesse);
this._rotation += this.virage;
this.vitesse *= 0.8;
}
this.x2 = this._x + Math.sin((rot_moin_PI_4)) * this._rayon;
this.y2 = this._y - Math.cos((rot_moin_PI_4)) * this._rayon;
if (autre_clip.hitTest(this.x2, this.y2, true)) {
this.virage = 2 * (this.vitesse_maxi - this.vitesse);
this._rotation += this.virage;
this.vitesse *= 0.8;
}
this.x3 = this._x + Math.sin(rot_plus_PI_4_AV) * this._rayon_AV;
this.y3 = this._y - Math.cos(rot_plus_PI_4_AV) * this._rayon_AV;
if (autre_clip.hitTest(this.x3, this.y3, true)) {
this._rotation += this.virage;
this.vitesse *= 0.4;
}
this.x4 = this._x + Math.sin(rot_moin_PI_4_AV) * this._rayon_AV;
this.y4 = this._y - Math.cos(rot_moin_PI_4_AV) * this._rayon_AV;
if (autre_clip.hitTest(this.x4, this.y4, true)) {
this._rotation += this.virage;
this.vitesse *= 0.4;
}};
_root. faire_bouger=function() {
for (var i = 0; i < rally.nbrvoit; i++) {
for (var j = 0; j < rally.nbrvoit; j++) {
if (i != j) {
rally.tb_voit[i].test_contact(rally.tb_voit[j]);
}}
rally.tb_voit[i].test_contact(_root.circuit);
rally. tb_voit[i].bouger();
}};
_root.tracer_circuit = function () {
_root.circuit.courbe(10,0, 100);
};
setInterval(_root.tracer_circuit, 70);
setInterval(_root.faire_bouger, 12);



...........
voili voilou Very Happy Very Happy


Dernière édition par Admin le Jeu 17 Fév - 5:48, édité 1 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Jeu 23 Déc - 5:11

Spoiler:
Si vs voulez vous amusez....

Sauvez le phi nommez le "cequevsvoulez".
1 groupe avec un rectangle transparent nommé "ce que vs voulez"ds ecran de base...

lui faire faire une action....roue crantée....>action immediate....>actionscript...>
la fenete mtasc s'ouvre....

mettre entre "ecrire ici" et les "2accolades"



var LARG = Stage.width;
var HAUT = Stage.height;
var tc =12;
var nb_points =12;

_root.presser = function () {
this.presse = true;
this.startDrag(true);};
_root.relacher = function () {
this.presse = false;
this.stopDrag();};

var tb = [];
for (var i = 0; i < nb_points; i++) {
tb[i] = _root.createEmptyMovieClip("c" + i, i);
tb[i].lineStyle(20, 0xff0000, 50);
tb[i].lineTo(0, 1);
tb[i]._x = 50 + 30 * i;
tb[i]._y = 100 + 30 * i;
tb[i].onPress = _root.presser;
tb[i].onRelease = _root.c.onReleaseOutside = _root.relacher;
}

_root.courbe = function () {
this.clear();
this.lineStyle(2,0x0000ff);
this.beginFill(0x000000, 50);
var ptx;
var pty;
var i = 0;
var ptx0 = (tb[0]._x + tb[1]._x) / 2;
var pty0 = (tb[0]._y + tb[1]._y) / 2;
this.moveTo(ptx0, pty0);
i = 0;
while (++i < tb.length - 1) {
ptx = (tb[i]._x + tb[i + 1]._x) / 2;
pty = (tb[i]._y + tb[i + 1]._y) / 2;
this.curveTo(tb[i]._x, tb[i]._y, ptx, pty);
}
ptx = (tb[0]._x + tb[i]._x) / 2;
pty = (tb[0]._y + tb[i]._y) / 2;
this.curveTo(tb[i]._x, tb[i]._y, ptx, pty);
this.curveTo(tb[0]._x, tb[0]._y, ptx0, pty0);
this.endFill();
};

_root.trace_tangentes = function () {
this.lineStyle(0, 0xff0000, 80);
this.moveTo(tb[0]._x, tb[0]._y);
var i = tb.length;
while (i-- > 0) {
this.lineTo(tb[i]._x, tb[i]._y);
}
};
MovieClip.prototype.deplacement = function(X, Y, vitesse) {
this.onEnterFrame = function() {
if ( !this.presse ) {
this._x += (X - this._x) / vitesse;
this._y += (Y - this._y) / vitesse;
}
};};
_root.trait.onEnterFrame = function() {
_root.courbe(5, 0xff00ff, 50);
_root. trace_tangentes();
};
var h=0;
_root.hasard = function () {
h = (h++ >= tb.length ) ? 0 : h;
tb[h].deplacement(random(LARG), random(HAUT), 5);
var phase = 2 * Math.PI * h / tb.length;
var px = LARG / 2 + random(LARG / 2) * Math.sin( phase);
var py = HAUT / 2 + random(HAUT / 2) * Math.cos( phase);
tb[h].deplacement(px, py, 5);};
setInterval(_root.hasard, 500);


...........
voili voilou Very Happy Very Happy


Dernière édition par Admin le Jeu 17 Fév - 5:48, édité 1 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Mar 28 Déc - 18:08

tj sur un script de Jl Gaujal

Spoiler:
Si vs voulez vous amusez....

Sauvez le phi nommez le "cequevsvoulez".
1 groupe avec un rectangle transparent nommé "ce que vs voulez"
ds ecran de base...

lui faire faire une action....roue crantée....>action immediate....>
actionscript...>
la fenete mtasc s'ouvre....

mettre entre "ecrire ici" et les "2accolades"



var LARG = Stage.width;
var HAUT = Stage.height;
var centreX = LARG / 2;
var centreY = HAUT / 2;

var nb_points = 12;
_global.PI_4 = Math.PI / 4;

var tb = [];
for (var i = 0; i < nb_points; i++) {
tb[i] = _root.createEmptyMovieClip("h" + i, 200 + i);
var phase = 2 * Math.PI * i / nb_points;

tb[i]. _x = LARG / 2 + LARG / 3 * Math.sin(phase);
tb[i]._y = HAUT / 2 + HAUT / 3 * Math.cos(phase);
tb[i]._x0 = tb[i]._x;
tb[i]._y0 = tb[i]._y;
}

_root.createEmptyMovieClip("circuit", 1000);

MovieClip.prototype.courbe = function(epaisseur, couleur, transparence) {
this.clear();
this.lineStyle(epaisseur);
this.beginFill(couleur, transparence);

var ptx;
var pty;
var i = 0;
var ptx0 = (tb[0]._x + tb[1]._x) / 2;
var pty0 = (tb[0]._y + tb[1]._y) / 2;
this.moveTo(ptx0, pty0);
i = 0 ;
while ( ++i < tb. length - 1 ) {
ptx = (tb[i]._x + tb[i + 1]._x) / 2;
pty = (tb[i]._y + tb[i + 1]._y) / 2;
this.curveTo(tb[i]._x, tb[i]._y, ptx, pty);
}
ptx = (tb[0]._x + tb[i]._x) / 2;
pty = (tb[0]._y + tb[i]._y) / 2;
this.curveTo(tb[i]._x, tb[i]._y, ptx, pty);
this.curveTo(tb[0]._x, tb[0]._y, ptx0, pty0);
this.endFill();
};
MovieClip.prototype.ANGUINEA = function(obj, duree) {
this.o = obj;
this.t = [];
var v = 1 / duree;
for (var n = 0; n <= 1; n + = v) {
var s = 1 - 2 / (n + (1 / n));
for (var prop in this. o ) {
this.t.push(this.o[prop] - s * (this.o[prop] - this[prop]));
}
}
this.pt = 0;
this.onEnterFrame = function() {
for (var prop in this.o ) {
this[prop] = this.t[this.pt++];
}
if (this.pt > = this.t.length ) {
delete this.o;
delete this.t;
delete this.pt;
delete this.onEnterFrame;
}};
}
var ho=0;
var tbh = [];
_root.hasard = function () {


ho = (ho++ >= tb.length ) ? 0 : ho;
var phase = 2 * Math.PI * ho / tb.length;
var rx = random(LARG / 5);
var ry = random(HAUT / 5);
var px = tb[ho]._x0 + rx * Math.sin(phase);
var py = tb[ho]._y0 + ry * Math.cos(phase);
tb[ho].ANGUINEA({_x:px, _y:py}, 40);
px = tb[ho]._x0 + 0.8 * rx * Math.sin(phase);
py = tb[ho]._y0 + 0.8 * ry * Math.cos(phase);
tbh[ho].ANGUINEA({_x:px, _y:py}, 80);
};

_root.tracer_circuit = function () {
_root.circuit.courbe(5, 0xccbbaa, 50);
};

setInterval(_root.tracer_circuit, 60);
setInterval(_root.hasard, 500);

for (var i = 1 ; i < nb_points + 1 ; i++) {
var b = tbh[i - 1] = _root.createEmptyMovieClip("heure" + i, 1000 + i);

b. lineStyle(32, 0xff0000);
b. moveTo(0, 0);
b. lineTo(1, 0);
b. lineStyle(28, 0xffffee, 100);
b. lineTo(0, 0);
b. _x = centreX;
b. _y = centreY;
b._x0 = b._x;
b._y0 = b._y;

b.createTextField("tex", 0, -10, -10, 20, 20);
b.tex. type = "dynamic";
b.tex. border = false;
b.tex. background = false;
b.tex. selectable = false;
b.tex. autosize = "center";
b.tex. html = false;
b.tex. embedFonts = false;
b.tex. text = nb_points - i + 7;
b.tex. text = ((nb_points - i + 7) > 12) ? nb_points - i + -5 : nb_points - i + 7;

var fo = new TextFormat();
fo.bold = true;
fo.font = "_typewriter";
fo.size = 16;
b.tex.setTextFormat(fo);
}
MovieClip.prototype.elastique = function(longueur) {
var angle = this._rotation / 180 * Math.PI;
for (var i = centreX; i > 0; i-- ) {
var px = this._x + i * Math.cos(angle);
var py = this._y + i * Math.sin(angle);
if (_root.circuit.hitTest(px, py, true)) {
px = i * Math.cos(angle);
py = i * Math.sin(angle);
break;
}}
var i = 0 ;
var px = this._x + i * Math.cos(angle);
var py = this._y + i * Math.sin(angle);
longueur = Math.sqrt((px * px) + (py * py)) * 0.95;
longueur = (this._name == "c0") ? longueur / 1.8 : longueur;
longueur = (this._name == "c1") ? longueur / 2 : longueur;
longueur = (this._name == "c2") ? longueur / 2.8: longueur;

var tiers_longueur = 2 * longueur / 3;
this.clear();
var yy = -this.tic * (Math.sin(this.t));
this.lineStyle(this.epaisseur + 4, 0, 100);
this.moveTo(0, 0);
this.curveTo(tiers_longueur, yy, longueur, 0);
this.lineStyle(this.epaisseur, this.couleur, 100);
this.moveTo(0, 0);
this.curveTo(tiers_longueur, yy, longueur, 0);
this.t += 0.4;
this.tic /= 1.1;

if (this.tic > 2) {
this.onEnterFrame = function() {
this.elastique(this.long);
};
} else {
delete this.onEnterFrame;
}
};
_root.onEnterFrame = function ( ) {

var d = new Date();
var a_s = (360 / 60 * d.getSeconds());
var a_m = (360 / 60 * d.getMinutes());
var a_h = (360 / 12 * d.getHours());
var s = -90 + a_s;
var m = -90 + a_m + Math.floor(a_s / 60);
var h = -90 + a_h + Math.floor(a_m / 12);

MovieClip.prototype.actionner = function(rotatio) {
this._rotation = rotatio;
this.tic = 120;
this.t = 0.4;
this.elastique(this.long);

};

this.c.actionner();

if ( s != _root.mem_seconde ) {
_root.c0.actionner(s);
_root.c1.actionner(m);
_root.c2.actionner(h);
_root.mem_seconde = s;

if ( m ! = _root.mem_minute ) {
_root.c1.actionner(m);
_root.c2.actionner(h);
_root.mem_minute = m;
}
if ( h != _root.mem_heure ) {
_root.mem_heure = h;
}}}

var Rayon = centreY - 4;
for ( var i = 0 ; i < 3 ; i ++ ) {
var a = _root.createEmptyMovieClip("c" + i, 50 - i);
a._x = centreX;
a._y = centreY;
a.long = Rayon - (20 * i) - 1;
a.epaisseur = 2 + 7 * i;
a.couleur = 0xaa66ee * i;
}

setInterval(_root.temps, 1000);



...........
voili voilou Very Happy Very Happy
suite à un message privé
mon fichier as
http://nogdum.free.fr/pendmolle.as


Dernière édition par Admin le Dim 13 Mar - 5:18, édité 2 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Jeu 30 Déc - 17:43

Admin a écrit: sur un script je Jl Gaujal

Spoiler:
Si vs voulez vous amusez....

Sauvez le phi nommez le "cequevsvoulez".
1 groupe avec un rectangle transparent nommé "ce que vs voulez"
ds ecran de base...

lui faire faire une action....roue crantée....>action immediate....>
actionscript...>
la fenete mtasc s'ouvre....

mettre entre "ecrire ici" et les "2accolades"



var LARG_2 = Stage.width / 2;
var HAUT_2 = Stage.height / 2;
_global.PIsur180 = Math.PI / 180;

var ch = _root.createEmptyMovieClip("HE", 2002);


ch. lineStyle( 3, 0x000000);
ch. moveTo(0, 0);
ch. lineTo(100 , 0);
ch. lineStyle( 3 - 1, 0x00ffff - (255 - 2.55 ));
ch. lineTo(0, 0);
ch. _x = LARG_2;
ch. _y = HAUT_2;


var cm = _root.createEmptyMovieClip("MN", 2001);


cm. lineStyle( 3, 0x000000);
cm. moveTo(0, 0);
cm. lineTo(115 - 1.2 / 1, 0);
cm. lineStyle( 3 - 1, 0xff00ff - (255 - 2.55 ));
cm. lineTo(0, 0);
cm. _x = LARG_2;
cm. _y = HAUT_2;


var cs = _root.createEmptyMovieClip("SE", 2003);

cs.lineStyle(3, 0x000000);
cs. moveTo(0, 0);
cs. lineTo(125, 0);
cs. lineStyle(2, 0xffddaa);
cs. lineTo(0, 0);
cs. _x = LARG_2;
cs. _y = HAUT_2;


var fond = _root.createEmptyMovieClip("FOND", -10);

fond. lineStyle(255, 0x442200,100);
fond. moveTo(LARG_2, HAUT_2);
fond. lineTo(LARG_2, HAUT_2 + 1);
fond. lineStyle(250, 0xffffff, 100);
fond. lineTo(LARG_2, HAUT_2);

_root.temps=function () {
var d = new Date();
var a_s = (360 / 60 * d.getSeconds());
var a_m = (360 / 60 * d.getMinutes());
var a_h = (360 / 12 * d.getHours());
var s = -90 + a_s;
var m = -90 + a_m + Math.floor(a_s / 60);
var h = -90 + a_h + Math.floor(a_m / 12);
cm._rotation = m;
ch._rotation = h;
cs._rotation = s;
};
setInterval(_root.temps, 1000);
_root.temps();
_root. bouger_balle=function() {

this._x += this.vx;
this._y += this.vy;
this.test_bordure();
this.test_aiguille(cs);
this.test_aiguille(cm);
this.test_aiguille(ch);

};
MovieClip.prototype.test_bordure = function() {
var dx = (this._x - LARG_2);
var dy = (this._y - HAUT_2);
var dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist > 120) {
var a_mur = Math.atan2(dx, dy);
var a_bal = Math.atan2(-this.vy, this.vx);
var a_R = (2 * a_mur) - a_bal;
var vit = Math.sqrt((this.vx * this.vx) + (this.vy * this.vy)) * 0.96;
this.vx = Math.cos(a_R) * vit;
this.vy = -Math.sin(a_R) * vit;
//--- afin d'éviter les oscillations incongrues en bordure
this._x += -dx / 50;
this._y += -dy / 50;
}
if (dist < 60) {
this.vx += dy / 80;
this.vy += dx / 80;
}
};
MovieClip.prototype.test_aiguille = function(mc1) {
var dx = (this._x - LARG_2);
var dy = (this._y - HAUT_2);
var a_mur = -mc1._rotation * _global.PIsur180;
var a_aig = Math.atan2(dy, dx);
var diff = (a_mur + a_aig) / _global.PIsur180;
if (Math.abs (diff) < 4 ) {
if (this.vx == 0 || this.vy == 0) {
this.vx = Math.cos(a_aig) * 5;
this.vy = -Math.sin(a_aig) * 5;
}
var a_bal = Math.atan2 (-this.vy, this.vx);
var a_R = (2 * a_mur) - a_bal;
var vit = Math.sqrt((this.vx * this.vx) + (this.vy * this.vy)) * 1.02;
this.vx = Math.cos(a_R) * vit;
this.vy = -Math.sin(a_R) * vit;
this._x += this.vx;
this._y += this.vy;
}
};
for (var i = 1; i < 13; i++) {
var b = _root.createEmptyMovieClip("BALLE" + i, 1000 + i);

b. lineStyle(10, 0x000000);
b. moveTo(0, 0);
b. lineTo(1, 0);
b. lineStyle(8, 0xaaaaaa + Math.random() * 0x444444, 100);
b. lineTo(0, 0);
b. _x = LARG_2 + 110 * Math.cos(2 * Math.PI * i / 12);
b. _y = HAUT_2 - 110 * Math.sin(2 * Math.PI * i / 12);

b.vx = 0;
b.vy = 0;
b.onEnterFrame = _root.bouger_balle;

}
setInterval(_root.test_bordure, 1000);
setInterval(_root.test_aiguille, 1000);



...........
voili voilou Very Happy Very Happy


Dernière édition par Admin le Jeu 17 Fév - 5:50, édité 1 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Jeu 30 Déc - 17:49

tj sur un script de Jl Gaujal

Spoiler:
Si vs voulez vous amusez....

Sauvez le phi nommez le "cequevsvoulez".
1 groupe avec un rectangle transparent nommé "ce que vs voulez"
ds ecran de base...

lui faire faire une action....roue crantée....>action immediate....>
actionscript...>
la fenete mtasc s'ouvre....

mettre entre "ecrire ici" et les "2accolades"



var LARG = Stage.width;
var HAUT = Stage.height;
var centreX = LARG / 2;
var centreY = HAUT / 2;

var nb_points = 12;
_global.PI_4 = Math.PI / 4;

var tb = [];
for (var i = 0; i < nb_points; i++) {
tb[i] = _root.createEmptyMovieClip("h" + i, 200 + i);
var phase = 2 * Math.PI * i / nb_points;

tb[i]. _x = LARG / 2 + LARG / 3 * Math.sin(phase);
tb[i]._y = HAUT / 2 + HAUT / 3 * Math.cos(phase);
tb[i]._x0 = tb[i]._x;
tb[i]._y0 = tb[i]._y;
}

_root.createEmptyMovieClip("circuit", 1000);

MovieClip.prototype.courbe = function(epaisseur, couleur, transparence) {
this.clear();
this.lineStyle(epaisseur);
this.beginFill(couleur, transparence);

var ptx;
var pty;
var i = 0;
var ptx0 = (tb[0]._x + tb[1]._x) / 2;
var pty0 = (tb[0]._y + tb[1]._y) / 2;
this.moveTo(ptx0, pty0);
i = 0 ;
while ( ++i < tb. length - 1 ) {
ptx = (tb[i]._x + tb[i + 1]._x) / 2;
pty = (tb[i]._y + tb[i + 1]._y) / 2;
this.curveTo(tb[i]._x, tb[i]._y, ptx, pty);
}
ptx = (tb[0]._x + tb[i]._x) / 2;
pty = (tb[0]._y + tb[i]._y) / 2;
this.curveTo(tb[i]._x, tb[i]._y, ptx, pty);
this.curveTo(tb[0]._x, tb[0]._y, ptx0, pty0);
this.endFill();
};
MovieClip.prototype.ANGUINEA = function(obj, duree) {
this.o = obj;
this.t = [];
var v = 1 / duree;
for (var n = 0; n <= 1; n + = v) {
var s = 1 - 2 / (n + (1 / n));
for (var prop in this. o ) {
this.t.push(this.o[prop] - s * (this.o[prop] - this[prop]));
}
}
this.pt = 0;
this.onEnterFrame = function() {
for (var prop in this.o ) {
this[prop] = this.t[this.pt++];
}
if (this.pt > = this.t.length ) {
delete this.o;
delete this.t;
delete this.pt;
delete this.onEnterFrame;
}};
}
var ho=0;
var tbh = [];
_root.hasard = function () {


ho = (ho++ >= tb.length ) ? 0 : ho;
var phase = 2 * Math.PI * ho / tb.length;
var rx = random(LARG / 5);
var ry = random(HAUT / 5);
var px = tb[ho]._x0 + rx * Math.sin(phase);
var py = tb[ho]._y0 + ry * Math.cos(phase);
tb[ho].ANGUINEA({_x:px, _y:py}, 40);
px = tb[ho]._x0 + 0.8 * rx * Math.sin(phase);
py = tb[ho]._y0 + 0.8 * ry * Math.cos(phase);
tbh[ho].ANGUINEA({_x:px, _y:py}, 80);
};

_root.tracer_circuit = function () {
_root.circuit.courbe(5, 0xccbbaa, 50);
};

setInterval(_root.tracer_circuit, 60);
setInterval(_root.hasard, 500);

for (var i = 1 ; i < nb_points + 1 ; i++) {
var b = tbh[i - 1] = _root.createEmptyMovieClip("heure" + i, 1000 + i);

b. lineStyle(32, 0xff0000);
b. moveTo(0, 0);
b. lineTo(1, 0);
b. lineStyle(28, 0xffffee, 100);
b. lineTo(0, 0);
b. _x = centreX;
b. _y = centreY;
b._x0 = b._x;
b._y0 = b._y;

b.createTextField("tex", 0, -10, -10, 20, 20);
b.tex. type = "dynamic";
b.tex. border = false;
b.tex. background = false;
b.tex. selectable = false;
b.tex. autosize = "center";
b.tex. html = false;
b.tex. embedFonts = false;
b.tex. text = nb_points - i + 7;
b.tex. text = ((nb_points - i + 7) > 12) ? nb_points - i + -5 : nb_points - i + 7;

var fo = new TextFormat();
fo.bold = true;
fo.font = "_typewriter";
fo.size = 16;
b.tex.setTextFormat(fo);
}
MovieClip.prototype.elastique = function(longueur) {
var angle = this._rotation / 180 * Math.PI;
for (var i = centreX; i > 0; i-- ) {
var px = this._x + i * Math.cos(angle);
var py = this._y + i * Math.sin(angle);
if (_root.circuit.hitTest(px, py, true)) {
px = i * Math.cos(angle);
py = i * Math.sin(angle);
break;
}}
var i = 0 ;
var px = this._x + i * Math.cos(angle);
var py = this._y + i * Math.sin(angle);
longueur = Math.sqrt((px * px) + (py * py)) * 0.95;
longueur = (this._name == "c0") ? longueur / 1.8 : longueur;
longueur = (this._name == "c1") ? longueur / 2 : longueur;
longueur = (this._name == "c2") ? longueur / 2.8: longueur;

var tiers_longueur = 2 * longueur / 3;
this.clear();
var yy = -this.tic * (Math.sin(this.t));
this.lineStyle(this.epaisseur + 4, 0, 100);
this.moveTo(0, 0);
this.curveTo(tiers_longueur, yy, longueur, 0);
this.lineStyle(this.epaisseur, this.couleur, 100);
this.moveTo(0, 0);
this.curveTo(tiers_longueur, yy, longueur, 0);
this.t += 0.4;
this.tic /= 1.1;

if (this.tic > 2) {
this.onEnterFrame = function() {
this.elastique(this.long);
};
} else {
delete this.onEnterFrame;
}
};
_root.onEnterFrame = function ( ) {

var d = new Date();
var a_s = (360 / 60 * d.getSeconds());
var a_m = (360 / 60 * d.getMinutes());
var a_h = (360 / 12 * d.getHours());
var s = -90 + a_s;
var m = -90 + a_m + Math.floor(a_s / 60);
var h = -90 + a_h + Math.floor(a_m / 12);

MovieClip.prototype.actionner = function(rotatio) {
this._rotation = rotatio;
this.tic = 120;
this.t = 0.4;
this.elastique(this.long);

};

this.c.actionner();

if ( s != _root.mem_seconde ) {
_root.c0.actionner(s);
_root.c1.actionner(m);
_root.c2.actionner(h);
_root.mem_seconde = s;

if ( m ! = _root.mem_minute ) {
_root.c1.actionner(m);
_root.c2.actionner(h);
_root.mem_minute = m;
}
if ( h != _root.mem_heure ) {
_root.mem_heure = h;
}}}

var Rayon = centreY - 4;
for ( var i = 0 ; i < 3 ; i ++ ) {
var a = _root.createEmptyMovieClip("c" + i, 50 - i);
a._x = centreX;
a._y = centreY;
a.long = Rayon - (20 * i) - 1;
a.epaisseur = 2 + 7 * i;
a.couleur = 0xaa66ee * i;
}

setInterval(_root.temps, 1000);



...........
voili voilou Very Happy Very Happy


Dernière édition par Admin le Jeu 17 Fév - 5:50, édité 1 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Jeu 30 Déc - 17:51

tj sur un script de jl Gaujal

Spoiler:
Si vs voulez vous amusez....

Sauvez le phi nommez le "cequevsvoulez".
1 groupe avec un rectangle transparent nommé "ce que vs voulez"
ds ecran de base...

lui faire faire une action....roue crantée....>action immediate....>
actionscript...>
la fenete mtasc s'ouvre....

mettre entre "ecrire ici" et les "2accolades"



var tb_jour = ["Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi"];

var tb_mois = ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre"];

var tb_nombre = [];
tb_nombre.push("zéro","une","deux","trois","quatre","cinq","six","sept");
tb_nombre.push("huit","neuf","dix","onze","douze","treize","quatorze");
tb_nombre.push("quinze","seize","dix-sept","dix-huit","dix-neuf");
tb_nombre.push("vingt","vingt et une","vingt-deux","vingt-trois");
tb_nombre.push("vingt-quatre","vingt-cinq","vingt-six");
tb_nombre.push("vingt-sept","vingt-huit","vingt-neuf");
tb_nombre.push("trente","trente et une","trente-deux","trente-trois");
tb_nombre.push("trente-quatre","trente-cinq","trente-six");
tb_nombre.push("trente-sept","trente-huit","trente-neuf");
tb_nombre.push("quarante","quarante et une","quarante-deux","quarante-trois");
tb_nombre.push("quarante-quatre","quarante-cinq","quarante-six");
tb_nombre.push("quarante-sept","quarante-huit","quarante-neuf");
tb_nombre.push("cinquante","cinquante et une","cinquante-deux","cinquante-trois");
tb_nombre.push("cinquante-quatre","cinquante-cinq","cinquante-six");
tb_nombre.push("cinquante-sept","cinquante-huit","cinquante-neuf");

_root.creer_champ_texte=function(nom, ar_couleur, tx_color, bo_couleur) {

var tex = this.createTextField(nom, this.getNextHighestDepth(), 10, 10+2, Stage.width-18, Stage.height-18-4);
tex.html = true;
tex.type = "dynamic";
tex.selectable = false;
tex.wordWrap = true;
tex.multiline = true;
tex.textColor = tx_color;
tex.border = true;
tex.borderColor = bo_couleur;
tex.background = true;
tex.backgroundColor = ar_couleur;
};
var txt_format = new TextFormat("Courier New", 14, null, false, false, false, "", "", "justify", 5, 5, 0, -4);
_root.creer_champ_texte("le_texte",0xffffff,0x336600,0xdd9944);

var AVANT = "<FONT COLOR='#0000ff'>";
var APRES = "</FONT> ";
var memoire = -1;
var maintenant=0;
var v_day=0;
var v_dat=0;
var v_moi=0;
var v_heu=0;
var v_min=0;
var v_sec=0;
var tmp=0;

_root.afficher_temps=function () {
maintenant = new Date();
v_sec = maintenant.getSeconds();

if (memoire ! = v_sec ) {
memoire = v_sec;
tmp = "";

v_day = maintenant.getDay();
for ( var i = 0 ; i < 7 ; i++ ) {
tmp += (i == v_day) ? AVANT+tb_jour[i]+APRES : tb_jour[i]+" ";}

v_dat = maintenant.getDate();
for ( var i = 1 ; i <= 31 ; i++ ) {
var le_jour = tb_nombre[i];
le_jour = (i == 1) ? "premier" : le_jour;
le_jour = (i == 21) ? "vingt et un" : le_jour;
le_jour = (i == 31) ? "trente et un" : le_jour;
tmp += (i == v_dat) ? AVANT+le_jour+APRES : le_jour+" ";}

v_moi = maintenant.getMonth();
for ( var i = 0 ; i < 12 ; i++ ) {
tmp += (i == v_moi) ? AVANT+tb_mois[i]+","+APRES : tb_mois[i]+" ";}

v_heu = maintenant.getHours();
for (var i = 0 ; i <= 23 ; i++ ) {
tmp += (i == v_heu) ? AVANT+tb_nombre[i]+APRES : tb_nombre[i]+" ";}
tmp += (v_heu<2) ? AVANT+"heure,"+APRES : AVANT+"heures,"+APRES;

v_min = maintenant.getMinutes();
for ( var i = 0 ; i <= 59 ; i++ ) {
tmp += (i == v_min) ? AVANT+tb_nombre[i]+APRES : tb_nombre[i]+" ";}
tmp += (v_min<2) ? AVANT+"minute,"+APRES : AVANT+"minutes,"+APRES;

for ( var i = 0 ; i <= 59 ; i++ ) {
tmp += (i == v_sec) ? AVANT+tb_nombre[i]+APRES : tb_nombre[i]+" ";}
tmp += (v_sec<2) ? AVANT+"seconde."+APRES : AVANT+"secondes."+APRES;

_root.le_texte.htmlText = tmp;
_root. le_texte.setTextFormat(_root.txt_format);}
}

setInterval(_root.afficher_temps,100);




...........
voili voilou Very Happy Very Happy


Dernière édition par Admin le Jeu 17 Fév - 5:51, édité 1 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Lun 3 Jan - 18:02

Spoiler:
Si vs voulez vous amusez....

Sauvez le phi nommez le "cequevsvoulez".
1 groupe avec votre image nommé "photo"
ds ecran de base...

lui faire faire une action....roue crantée....>action immediate....>
actionscript...>
la fenete mtasc s'ouvre....

au dessus de [/b]"class cquecscoulez { "[/b]


import flash.filters.DisplacementMapFilter;
import flash.display.BitmapData;
import flash.geom.Point;



mettre entre "ecrire ici" et les "2accolades"


var mc1:MovieClip = _root.createEmptyMovieClip ("mc1",_root.getNextHighestDepth ());
var bmp:BitmapData = new BitmapData (_root.photo._width, _root.photo._height, true, 0);
mc1.attachBitmap (bmp,_root.getNextHighestDepth ());
mc1._visible = false;

var compteur:Number = 0;
var compteur_1:Number = 0;

var point_0:Point = new Point (0, 0);

var baseX = _root.photo._width / 2;
var baseY = _root.photo._height / 2;
var numOctaves = 1;
var randomSeed = Math.floor (Math.random () * 0xffffff);
var stitch = true;
var fractalNoise = true;
var channelOptions = 3;
var grayScale = false;
_root.onEnterFrame = function () {
compteur += (1.4 + Math.sin (compteur_1 += 0.1)) / 10;
var point_1 = new Point (Math.sin (compteur / 3) * _root.photo._width / 1, Math.sin (compteur / 2) * _root.photo._height / 1);
var offsets = new Array (point_1, point_1, point_1);
var cpt1 = _root.photo._width * Math.sin (compteur / 4);
bmp.perlinNoise (baseX, baseY, numOctaves, randomSeed, stitch, fractalNoise, channelOptions, grayScale, offsets);
var filter:DisplacementMapFilter = new DisplacementMapFilter (bmp, point_0, 2, 1, cpt1, cpt1, "wrap", 0x000000, 100);
_root.photo.filters = new Array (filter);
};



...........
voili voilou Very Happy Very Happy


Dernière édition par Admin le Jeu 17 Fév - 5:51, édité 1 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Mer 5 Jan - 6:45

sur un script de Jl Gaujal....

Spoiler:
Si vs voulez vous amusez....

Sauvez le phi nommez le "cequevsvoulez".
1 groupe avec vos images nommées "peinture"
ds ecran de base...

dans ce goupe 9 images de 0 à 8 temps (pour un meilleur travail 1 stop a chaque temps et supprimer les photos qui sont dessous
histoire de ne pas avoir 9 photos au temps 8 pae exemple )





lui faire faire une action....roue crantée....>action immediate....>
actionscript...>
la fenete mtasc s'ouvre....

mettre entre "ecrire ici" et les "2accolades"



_root.fond.gotoAndStop (7);
_root.fond._quality = "medium";

MovieClip.prototype.courbe = function (tc, epaisseur, couleur, transparence) {
var nb = tc.length;
var tmx = [];
var tmy = [];
for (var i = 0 ; i < nb - 1 ; i++ ) {
tmx.push ((tc[i]._x + tc[i + 1]._x) / 2);
tmy.push ((tc[i]._y + tc[i + 1]._y) / 2);
}
tmx.push ((tc[0]._x + tc[nb - 1]._x) / 2);
tmy.push ((tc[0]._y + tc[nb - 1]._y) / 2);
this.clear ();
this.lineStyle (epaisseur);
this.beginFill (couleur, transparence);
this.moveTo (tmx[nb - 1], tmy[nb - 1]);
for ( var i = 0 ; i < nb ; i++ ) {
this.curveTo (tc[i]._x, tc[i]._y, tmx[i], tmy[i]);
}
this.endFill ();
};

var nb = 6;
var tm = [];
for (var i = 0 ; i < 9 ; i++ ) {
var ma = _root.createEmptyMovieClip ("masque_" + i, 1000 + 2 * i);
tm.push (ma);
ma.tc = [];
ma._x = 275;
ma._y = 200;
ma._r = (i % 2 == 0 ) ? -1 : 1;
for (var j = 0; j < nb; j++) {
var c = ma.createEmptyMovieClip ("c" + j, j);
ma.tc.push (c);
c._x = 550 * Math.sin (2 * Math.PI / nb * j);
c._y = 400 * Math.cos (2 * Math.PI / nb * j);
}
ma.courbe(ma.tc, 0, 0xff0000, 100);

ma.onEnterFrame = function () {
this._rotation += (this._r0 - this._rotation) / 5;
for ( i = 0 ; i < this.tc.length; i++ ) {
this.tc[i]._x += (this.tc[i]._x0 - this.tc[i]._x) / 55;
this.tc[i]._y += (this.tc[i]._y0 - this.tc[i]._y) / 55;
}
var q = this.q;
this.courbe (this.tc, 0, 0xff0000, 100);
q.courbe(this.tc, 5, 0xff0000, 0);
q._rotation = this._rotation;
};
}

var tp = [];
for (var i = 0 ; i < 9 ; i++ ) {
var p = _root.peinture.duplicateMovieClip ("peinture" + i, 100 + 2 * i);
tp.push (p);
p.gotoAndStop (i + 1);
p._xscale = p._yscale = 135;
p.setMask (tm[i]);
http://p._alpha = 100 - 4 * i;
}
var tq = [];
for (var i = 0 ; i < 9 ; i++ ) {
var q = _root.createEmptyMovieClip ("traits_" + i, 101 + 2 * i);
tq.push (q);
q._x = 275;
q._y = 200;
tm[i].q = q;
}
_root.tracer = function () {
for (var i = 0 ; i < tm.length ; i++ ) {
var ma = tm[i];
ma._r0 += ma._r * 35;
var c = ma.tc[random (ma.tc.length)];
c._x0 = -300 + random (2 * 300);
c._y0 = -300 + random (2 * 300);
}
};
setInterval(_root.tracer, 2000);
_root.tracer ();




...........
voili voilou Very Happy Very Happy


Dernière édition par Admin le Jeu 17 Fév - 5:52, édité 1 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Sam 8 Jan - 6:02

sur un script de Jl Gaujal
plan de travail 550x400

Spoiler:
Si vs voulez vous amusez....

Sauvez le phi nommez le "cequevsvoulez".
1 groupe avec un rectangle transparent nommé "ce que vs voulez"
ds ecran de base...

lui faire faire une action....roue crantée....>action immediate....>
actionscript...>
la fenete mtasc s'ouvre....

mettre entre "ecrire ici" et les "2accolades"



_global.SW = Stage.width;
_global.SH = Stage.height;
_global.SWsur2 = _global.SW / 2;
_global.SHsur2 = _global.SH / 2;
Stage.scaleMode = "exactFit";

MovieClip.prototype.rectangle_arrondi_ombre = function(larg, haut, rayon, epais, couleur, transp) {
var mc1 = this.createEmptyMovieClip("rectangle_arrondi", 10000);
mc.onLoad = function() {

for (var i = 6 ; i > 0 ; i - = 0.5 ) {
this. lineStyle(2 * i, 0x000000, 40 - i * 6);
this. moveTo(larg + i, rayon * 0.7 + 5 * i);
this. lineTo(larg + i, haut - rayon + 2 * i);
this. curveTo(larg, haut, larg - rayon + 2 * i, haut + i);
this. lineTo(rayon * 0.7 + 5 * i, haut + i);}

this. moveTo(rayon, 0);
this. lineStyle(epais, 0x000000, 100);
this. beginFill(couleur, transp);
this. moveTo(rayon, 0);
this. lineTo(larg - rayon, 0);
this. curveTo(larg, 0, larg, rayon);
this. lineTo(larg, haut - rayon);
this. curveTo(larg, haut, larg - rayon, haut);
this. lineTo(rayon, haut);
this. curveTo(0, haut, 0, haut - rayon);
this. lineTo(0, rayon);
this. curveTo(0, 0, rayon, 0);
this. endFill();
}

mc.onLoad();
};

_root.createEmptyMovieClip("cadre", -1111);
_root.cadre._x = 2;
_root.cadre._y = 2;
_root.cadre.rectangle_arrondi_ombre(_global.SW - 4,_global. SH - 4, _global.SW / 20, 2, 0x996633, 10);

MovieClip.prototype.chargement_jpg = function(jpg, couleur, larg, haut) {
var cible = this.dest;
cible._alpha = 0;
cible.loadMovie(jpg);
_root. id = setInterval(function (mc1) {
var d = mc1["dest"];
if (d._width > 0 ) {
clearInterval(_root.setInterval);
d.memw = d._width;
d.memh = d._height;
d.proportion = (d._width / d._height);
d._width = Math.floor(mc1._w0 * 2);
d._height = Math.floor(mc1._h0 * 2);
d._alpha = 99;
with (d) {
lineStyle(4, 0x444444, 80);
moveTo(this._x + memw + 1, this._y - 1);
lineTo(this._x + memw + 1, this._y + memh + 1);
lineTo(this._x - 1, this._y + memh + 1);
lineStyle(4, 0xaaaaaa, 80);
lineTo(this._x - 1, this._y - 1);
lineTo(this._x + memw + 1, this._y - 1);
}

mc1._alpha = 99;
mc1._width = mc._w0;
mc1._height = mc._h0 * 1.5;
mc1.onPress = _root.cliquer;

} else {
var pourcent = (d.getBytesLoaded() / d.getBytesTotal());
mc._width = pourcent * mc._w0;
mc._height = pourcent * mc._h0 * 1.6;
}
}, 100, this);
};

MovieClip.prototype.cliquer = function() {
_global.memoire.swapDepths(0);
_global.memoire.relacher();
if ( _global.memoire ! = this ) {
_global.memoire = this;

delete this.onEnterFrame;

var grossissement_V = _global.SH * 0.9;
var grossissement_H = grossissement_V * this.dest.proportion;
var positiont_V = _global.SHsur2 * 1.1;

this._alpha = 99;
this.swapDepths(_root.niveau++);

var x_deb = this._x;
var y_deb = this._y;
var dis_x = (_global.SWsur2 - x_deb) / 2;
var dis_y = (positiont_V - y_deb) / 2;
var vitesse = Math.PI / 20;
var angle = -Math.PI;
var limite = -Math.PI / 3.3;
var decalage = Math.PI / 6;

this.onEnterFrame = function() {
angle += vitesse;
var s = 1 + Math.cos(angle - Math.sin(angle - decalage));
this._x = x_deb + s * dis_x;
this._y = y_deb + s * dis_y;
this._width += (grossissement_H - this._width) / 5;
this._height += (grossissement_V - this._height) / 3;

if (angle >= limite ) {
this._width = grossissement_H;
this._height = grossissement_V;
delete this.onEnterFrame;
}};}};

MovieClip.prototype.relacher = function() {
delete this.onEnterFrame;
this.onEnterFrame = function() {
this._width += (this._w0 - this._width) / 4;
this._height += (this._h0 - this._height) / 4;
this._x += (this._x0 - this._x) / 4;
this._y += (this._y0 - this._y) / 4;
if (this._yscale < 70) {
this._width = this._w0;
this._height = this._h0 * 1.5;
this._x = this._x0;
this._y = this._y0;
this._alpha = 50;
delete this.onEnterFrame;
}};};

_root.allons_y = function(tableau) {
var L = _global.SW / (tableau.length + 2);
L = Math.floor(L * 0.9);
var M = L + 5;
for (var i = 0 ; i < tableau.length ; i++ ) {
var clip = _root.createEmptyMovieClip("cadre" + i, i);
clip.onLoad = function() {

this._alpha = 30;
this.lineStyle(4, 0, 20);
this.moveTo(-(L + 2), L);
this.lineTo(M, L);
this.lineTo(M, -(L - 3));

this.moveTo(M, -L);
this.lineStyle(0, 0x999999);
this.beginFill(0xfff6f0, 100);
this.lineTo(-M, -L);
this.lineTo(-M, L);
this.lineStyle(0, 0);
this.lineTo(M, L);
this.lineTo(M, -L);
this.endFill();

this._x0 = (1.2 * (i + 1)) * L;
this._y0 = L;
this._x = this._x0;
this._y = this._y0;

this._w0 = L + 3;
this._h0 = L - 5 + 3;
this._width = this._w0;
this._height = this._h0;

this.createEmptyMovieClip("dest", i + 200);

this.dest.onLoad = function() {
this._x = -L - 3;
this._y = -L + 2;
var ladress = tableau[i] + "?" + random(99999);
ladress = tableau[i];
this._parent.chargement_jpg(ladress, 0xff8800, 20, 50);
};
this.dest.onLoad();
};
clip.onLoad();
}};


var niveau = 10000;

_global.fichier = [];
_global.repertoire = "http://fastoche07.free.fr/repertoire/";//ici l'adresse..ici l'adresse
// .......................................................................................
_global.fichier[0] = "01.jpg";
_global.fichier[1] = "02.jpg";
_global.fichier[2] = "03.jpg";
_global.fichier[3] = "04.JPG";
_global.fichier[4] = "05.JPG";
_global.fichier[5] = "06.JPG";
_global.fichier[6] = "07.JPG";
_global.fichier[7] = "08.JPG";
_global.fichier[8] = "09.JPG";
_global.fichier[9] = "10.JPG";
_global.fichier[10] = "11.JPG";
_global.fichier[11] = "12.JPG";
_global.fichier[12] = "13.JPG";
_global.fichier[13] = "14.JPG";
_global.fichier[14] = "15.JPG";
_global.fichier[15] = "16.JPG";
_global.fichier[16] = "17.jpg";
_global.fichier[17] = "19.jpg";
_global.fichier[18] = "19.jpg";
_global.fichier[19] = "20.jpg";
_global.fichier[20] = "21.jpg";
_global.fichier[21] = "22.jpg";
_global.fichier[22] = "23.jpg";
// ............................ici _global.fichier[23] = "24.jpg";
...............................................................
for (var i = 0; i < _global.fichier.length; i++ ) {
_global. fichier[i] =_global. repertoire + _global.fichier[i];
}
_root.createEmptyMovieClip("phototheque", 0);
_root.allons_y(_global.fichier);
_root.phototheque.onLoad();

........................
maintenant le dossier "repertoire"....
sur votre bureau vous creez un nouveau dossier que vs nommez "repertoire"
avec dedans vos photos nommez "01.jpg","02.jpg","03.jpg","04.jpg" etc ..etc...
si vous avez plus de 23 photos.....>vous rajoutez au script...
_global.fichier[23] = "24.jpg";
_global.fichier[24] = "25.jpg";etc etc ......
ce dossier "repertoire" vous l'heberger....vs mettes l'adresse de ce dossiere "repertoire"...
.........à ces lignes qui ce trouve ci dessus.....
_global.repertoire = "http://fastoche07.free.fr/repertoire/";//ici l'adresse..ici l'adresse
// .......................................................................................
vous la remplacez par la votre (ce qui est en bleu).....


...........
voili voilou Very Happy Very Happy


Dernière édition par Admin le Jeu 17 Fév - 5:53, édité 1 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Mar 11 Jan - 7:30

Spoiler:
Si vs voulez vous amusez....

Sauvez le phi nommez le "cequevsvoulez".
1 groupe avec un rectangle transparent nommé "ce que vs voulez"
ds ecran de base...

lui faire faire une action....roue crantée....>action immediate....>
actionscript...>
la fenete mtasc s'ouvre....

mettre entre "ecrire ici" et les "2accolades"




_global.LARG_2 = Stage.width / 2;
_global.HAUT_2 = Stage.height / 2;
_global.PIsur180 = (Math.PI / 180);
_global.nbr_balles = 60;

MovieClip.prototype._3D = function(c_X, c_Y, s_X, s_Y) {
var tmp = this.z * c_Y - this.x * s_Y;
var n_X = this.z * s_Y + this.x * c_Y;
var n_Z = this.y * s_X + tmp * c_X;
var n_Y = this.y * c_X - tmp * s_X;
var p = 300 / (300 + n_Z);

this._x = _global.LARG_2 + n_X * p;
this._y = _global.HAUT_2 + n_Y * p;
var gros = (20 + 100 * p);

this._xscale = gros;
this._yscale = gros;
var rang = Math.ceil(2000 - n_Z * 50);
this.swapDepths(rang);

};

var k=0;
var decalage=0;
for (var i = 0 ; i < _global.nbr_balles ; i++ ) {
var C = _root.createEmptyMovieClip("MC" + i, i);
C.lineStyle(30);
C.lineTo(0, 1);
C.lineStyle(28, 0x998877 * ( (i + 1 ) * 1024 ) , 100 ) ;
C.lineTo(0, 0);
C.x = 100 * Math.cos((k * 33 + decalage) * _global.PIsur180 ) ;
C.y = 100 * Math.sin((k * 33 + decalage) * _global.PIsur180 ) ;
C.z = -150 + 20 * k;
if (k == 15 ) {
decalage += 60;
k = 0;
} else {
k++;
}
}

var frein = 1;

_root.onMouseMove = function () {
frein = 1;
_root. updateAfterEvent();
};

var pX=0;
var pY=0;
var angle=0;
var ang=0;
_root.onEnterFrame = function () {
pX -= (_root._ymouse - _global.HAUT_2) / 70 * frein;
pY -= (_root._xmouse - _global.LARG_2) / 70 * frein;
var cosX = Math.cos(pX * _global.PIsur180);
var sinX = Math.sin(pX * _global.PIsur180);
var cosY = Math.cos(pY * _global.PIsur180);
var sinY = Math.sin(pY * _global.PIsur180);
frein *= 0.996;
for (var i = 0; i < _global.nbr_balles; i++) {
angle = ang++ / 10;
this["MC" + i].x *= (1 - Math.sin(angle) / 60);
this["MC" + i].y *= (1 - Math.cos(angle) / 60);
this["MC" + i]._3D(cosX, cosY, sinX, sinY);
}
};




...........
voili voilou Very Happy Very Happy


Dernière édition par Admin le Jeu 17 Fév - 5:53, édité 1 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Mer 12 Jan - 8:12

Spoiler:
Si vs voulez vous amusez....

Sauvez le phi nommez le "cequevsvoulez".
1 groupe avec un rectangle transparent nommé "ce que vs voulez"
ds ecran de base...

lui faire faire une action....roue crantée....>action immediate....>
actionscript...>
la fenete mtasc s'ouvre....

mettre entre "ecrire ici" et les "2accolades"




Spoiler:


....................................................

Spoiler:
Si vs voulez vous amusez....

Sauvez le phi nommez le "ce que vs voulez".
1 groupe avec un rectangle transparent nommé "clip"
ds ecran de base...

lui faire faire une action....roue crantée....>action immediate....>
actionscript...>
la fenete mtasc s'ouvre....

mettre entre "ecrire ici" et les "2accolades"




_root.createEmptyMovieClip("clip",1);
var flower = new Array(700, -700, 600, -600, 500, -500, 400, -400, 300, -300, 100, -200, 100, -100);
var xOrig = 250;
var yOrig = 400;
var i = 0;

_root.bouquet=function (AA, BB, speed) {

_root.clip.lineStyle(0, 0x00ff00, 100);
_root.clip. moveTo(xOrig, yOrig);
_root.clip. curveTo(xOrig+flower[AA]*Math.sin(i/speed)/2,yOrig-flower[BB]/3, xOrig+flower[AA]*Math.sin(i/speed)/3, yOrig-flower[BB]/2);
_root.clip. lineStyle(25, 0xff0000, 75);
_root.clip. moveTo(xOrig+flower[AA]*Math.sin(i/speed)/3, yOrig-flower[BB]/2);
_root.clip.curveTo(xOrig+flower[AA]*Math.sin(i/speed)/3+10, yOrig-flower[BB]/2, xOrig+flower[AA]*Math.sin(i/speed)/3+10, yOrig-flower[BB]/2+10);
_root.clip. curveTo(xOrig+flower[AA]*Math.sin(i/speed)/3, yOrig-flower[BB]/2+10, xOrig+flower[AA]*Math.sin(i/speed)/3, yOrig-flower[BB]/2);
_root.clip. curveTo(xOrig+flower[AA]*Math.sin(i/speed)/3, yOrig-flower[BB]/2+10, xOrig+flower[AA]*Math.sin(i/speed)/3-10, yOrig-flower[BB]/2+10);
_root.clip. curveTo(xOrig+flower[AA]*Math.sin(i/speed)/3-10, yOrig-flower[BB]/2, xOrig+flower[AA]*Math.sin(i/speed)/3, yOrig-flower[BB]/2);
i++;
};
_root.onEnterFrame = function() {

_root.clip.clear();

var vitesse=50;
_root.bouquet(1, 0, 2*vitesse);
_root.bouquet(4, 2, 3*vitesse);
_root.bouquet(5, 4, 4*vitesse);
_root.bouquet(8, 6, 5*vitesse);
_root.bouquet(9, 8, 6*vitesse);
_root.bouquet(12, 10, 7*vitesse);
_root.bouquet(13, 12, 8*vitesse);

};



...........
voili voilou Very Happy Very Happy


Dernière édition par Admin le Jeu 17 Fév - 5:54, édité 3 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Ven 14 Jan - 0:54

sur un script de Jl Gaujal

Spoiler:
Si vs voulez vous amusez....

Sauvez le phi nommez le "cequevsvoulez".
1 groupe avec un rectangle transparent nommé "ce que vs voulez"
ds ecran de base...

lui faire faire une action....roue crantée....>action immediate....>
actionscript...>
la fenete mtasc s'ouvre....

mettre entre "ecrire ici" et les "2accolades"





Spoiler:

..........................
ici 13 images nommées chacune "01","02","03" etc....
vs n'avez plus qu'à mettre toutes vos adresses....

...........
voili voilou Very Happy Very Happy


Dernière édition par Admin le Jeu 17 Fév - 5:43, édité 1 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Lun 31 Jan - 17:54

sur un script Artkabis

Spoiler:
Si vs voulez vous amusez....

Sauvez le phi nommez le "cequevsvoulez".
1 groupe avec un rectangle transparent nommé "icone"
ds ecran de base...
+ 5 groupes (ou plus si vous voulez par contre faudra changer la variable (var nbI:Number = 5;)
avec chacun 1 image nommée ds ecran de base "icone0""icone1""icone2""icone3""icone4"
.............eeettt ouiiiiii elle est là l'astuce......

lui faire faire une action....roue crantée....>action immediate....>
actionscript...>
la fenete mtasc s'ouvre....

mettre entre "ecrire ici" et les "2accolades"





Spoiler:

ps:lien sur image vs selectionnez une image ...>roue crantée....>action sur clik souris.....>lien...>vous mettez..
http://e-anim.smileyforum.net/%_window

...........
voili voilou Very Happy Very Happy


Dernière édition par Admin le Jeu 17 Fév - 5:46, édité 2 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Ven 4 Fév - 18:18

sur un script de Jl Gaujal

Spoiler:
Si vs voulez vous amusez....

Sauvez le phi nommez le "cequevsvoulez".
1 groupe avec un rectangle transparent nommé "ce que vs voulez"
ds ecran de base...

lui faire faire une action....roue crantée....>action immediate....>
actionscript...>
la fenete mtasc s'ouvre....

mettre entre "ecrire ici" et les "2accolades"





Spoiler:
...............................................
et pour parametrer le code



...........
voili voilou Very Happy Very Happy


Dernière édition par Admin le Jeu 17 Fév - 5:45, édité 1 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Mer 9 Fév - 8:10

Spoiler:
Si vs voulez vous amusez....

Sauvez le phi nommez le "cequevsvoulez".
1 groupe avec un rectangle transparent nommé "ce que vs voulez"
ds ecran de base...avec le le quel vs ferez votre action immediate(de façon à pouvour mettre une adresse
sur clik souris....)
6 groupes (à definir avec la variable "var nb = 6;") nommés "btn1","btn2","btn3","btn4","btn5","btn6"


lui faire faire son action....roue crantée....>action immediate....>
actionscript...>
la fenete mtasc s'ouvre....

mettre entre "ecrire ici" et les "2accolades"

Spoiler:

...........
voili voilou Very Happy Very Happy






Dernière édition par Admin le Jeu 17 Fév - 5:45, édité 2 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Ven 11 Fév - 5:01

sur un script de Jl Gaujal

Spoiler:
Si vs voulez vous amusez....

Sauvez le phi nommez le "cequevsvoulez".
1 groupe avec un rectangle transparent nommé "ce que vs voulez"
ds ecran de base...

lui faire faire une action....roue crantée....>action immediate....>
actionscript...>
la fenete mtasc s'ouvre....

mettre entre "ecrire ici" et les "2accolades"

Spoiler:


...........
voili voilou Very Happy Very Happy


Dernière édition par Admin le Jeu 17 Fév - 5:45, édité 1 fois

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  fastoche Mar 15 Fév - 19:02

pendule de bezier




Spoiler:
Si vs voulez vous amusez....

Sauvez le phi nommez le "cequevsvoulez".
1 groupe avec un rectangle transparent nommé "ce que vs voulez"
ds ecran de base...

lui faire faire une action....roue crantée....>action immediate....>
actionscript...>
la fenete mtasc s'ouvre....

mettre entre "ecrire ici" et les "2accolades"





Spoiler:

..........................
ici 13 images nommées chacune "01","02","03" etc....
vs n'avez plus qu'à mettre toutes vos adresses....

...........
voili voilou Very Happy Very Happy

fastoche
Admin

Messages : 253
Date d'inscription : 05/06/2010

https://tuto-e-anim.1fr1.net

Revenir en haut Aller en bas

tuto d' E-Anim - Page 5 Empty Re: tuto d' E-Anim

Message  Contenu sponsorisé


Contenu sponsorisé


Revenir en haut Aller en bas

Page 5 sur 6 Précédent  1, 2, 3, 4, 5, 6  Suivant

Revenir en haut

- Sujets similaires

 
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum