Background Image and date

 

The goal is to show how to display an external background image depending on season. It 's basically a script and a good understanding of progamming is required.

We gonna describe the differents stages right away.

Creating Objects.

1 - Set up Movie size 480x640.
Be sure in tab Export, Mask off-stage objects is toggled.

2 - Insert a sprite which origin (anchor point) is 0,0
Name it Conteneur. Target toggled.

3 - Create a dynamic text txt ( variable : txtdyn). Set it up wherever you want.

stage

SwishMax Script

Here is the script for Scene_1

Don't forget to load 4 images in the same server directory as your swf stands. I supposed season 'll change on 21st ....

 


Page chargée en 0.001 sec.

Dernière Modification : Sam 14 Octobre 2023 9:48
Copyright © 1999-2024 Jean-Paul Molina Tous droits réservés.

 

to Google