Hola!
Necesito por favor si alguien me puede ayudar con lo siguiente, yo se que es un tema del que se habló mucho. Vi todas las respuestas en el sitio pero lamentablemente ninguna me funciona, ya sea porque son versiones viejas o no entiendo cómo aplicarlas....
Tengo una escena, y quiero que cuando le den click a un botón me cargue una imagen aleatoria.
En un foro encontré esto:
on (release) {
// Math Round - rounds to a whole integer
// Math Random Range - is a random number between any two numbers
// In order for this to work - your images would need to have the same name ...
// such as "image#.jpg" -- and then just change the numbers at the end of the filename
// so, if your images are numbered 1 through 32 ...
// you would change part of the code below to: Math.randomRange(1,32)
// Keep in mind - dynamically loading JPGs is a feature of the Flash 6 player only
_root.images.loadMovie("image" add Math.round(Math.randomRange(1,5)) add ".jpg");
}
pero cuando lo aplico no me funciona....
Adjunto el archivo. Por favor, realmente agradezco muchisimo su ayuda....
Es para algo que me pidió mi jefe y llevo dias tratando de solucionarlo...
