Wednesday, 17 March 2010

Beach Questions

I have now made the question numbers into movie clips and when the user clicks on the first question, it takes them to the screen below (this is just an example question and will be changed later on) :

The actionscript I put on the first question number is shown below:


The on(press){ section is telling it to do the following if the user clicks onto the movie clip.

_root.attachMovie("question", "question", _root.getNextHighestDepth() ) section is telling it to attach the movie clip on press and then the user will see the screen that is displayed above.

_root.question._x = 50 _root.question._y = 20 this section is telling it where to place the questions movieclip on the screen.

_root.questionButtons._y= 600 } this section is telling it to move the questionButtons movieclip off the stage when the user clicks on the 1st question. This is so the user can't accidentally click on another question when they are already viewing a question.

No comments:

Post a Comment

Followers