Skip to main content
May 31, 2007
Answered

I need a appilcation for a "sorter"

  • May 31, 2007
  • 3 replies
  • 378 views
I am trying to make a flash movie that has a bunch of buttons. On the click of one of these buttons, the value of one of four variables increased by a specific amount. At the end, the one with the biggest value determines the object shown on the last frame. It is basically is a sorter to see which Harry Potter house you would be more likley to go to.
How would i write the code for this or make this simpler?
This topic has been closed for replies.
Correct answer kglad
if _root is the timeline you want to direct back to its first frame use:

3 replies

June 2, 2007
If i am not mistaken, the timeline I want to get is the "root" or the upmost timeline. How would I add this to my movie?
kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
June 2, 2007
if _root is the timeline you want to direct back to its first frame use:

May 31, 2007
I abandoned this project, But thanks. I have a new problem. On a Mouse Advoider game, on one of the levels, i have a ball that bounces around infinitavely (I made a movie clip with the ball going left and right and inside that made a movie clip going up and down. The final object inside the up down Movie clip is a button which is also the ball. I want it so be that whenever the mouse hovers over this ball, the game restarts. So, i put
on (rollOver) {
gotoAndStop(1);
}
But when i test it, the movie clip restarts. How would i fix this?
kglad
Community Expert
Community Expert
June 1, 2007
use the goto method and reference the timeline you want to control.
kglad
Community Expert
Community Expert
May 31, 2007
loop through your variables to find the one containing the largest value. if your variables are var1, var2,var3, var4 you can use: