Bonjour,
je souhaite redimensionner une image juste après son chargement. J'arrive à le faire quand je clique sur celui-ci mais pas au demarrage. Voici mon code:
c'est peut être encore un problème de chargement mais j'ai essayer de redimensionner l'image sur: box_mc.image.onLoad = function() ...
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 this.createEmptyMovieClip("box_mc", 1); box_mc.createEmptyMovieClip("image",this.getNextHighestDepth()); box_mc.image.loadMovie("galerie/mairie.jpg"); box_mc.image._x = 10; box_mc.image._y = 10; box_mc._width = 100; // la ça ne marche pas, l'image ne s'affiche même pas box_mc.onPress = function() { this._width = 100; // et la ça marche };
mais je ne rentre jamais dans la fonction onLoad
comment cela ce fait il?
Partager