View Full Version : I need help with a school project.
sheildwolf
April 25th, 2002, 12:05 PM
I need help. I have a scene where the viewer pick a color for an object. I want the object to be the color they picked in the next scene. what is the action script. can anyone help?
ilyaslamasse
April 25th, 2002, 12:30 PM
What is the problem ?? Is it that you can't choose the color, or that you can't pass it to the other scene ?
pom 0]
sheildwolf
April 25th, 2002, 12:54 PM
I can not pass the color to the next scene. It needs to be the same color that they picked.
ilyaslamasse
April 25th, 2002, 02:01 PM
I tried to pass a variable from one scene to another, and it works. Be sure that you put the variable in the _root.
pom 0]
sheildwolf
April 25th, 2002, 03:00 PM
how do you write the code. does it matter if the object is in mc and not on the main time line.
ilyaslamasse
April 25th, 2002, 03:06 PM
Of course it matters, because if the movie clip isn't there, which is the case if you change scene, you lose the variables. You can use a temporary variable : _root.temp = your_Variable ;
Then you can use the variable _root.temp in the next scene.
pom 0]
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.