Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variable Problems w/ MC's.

Status
Not open for further replies.

WhiteTiger

Programmer
Joined
Jun 26, 2001
Messages
605
Location
US
I'm using the tell target command (Yes, obselete soon)...to play certian parts of an MC which I have made...it is just a test for when I do the work I'm doing...

I currently have 4 buttons, and 1 MC (MC TESTS)
the MC has an animation 14 frames long w/ a keyframe in front of it w/ a stop, and with all the information frames in the middle with stops, and an animation at the end with a stop keyframe after that.

Currently, on the page load, I have (WHAT I THINK) the page set the property "Opening = False;" with no other code.

In one of the buttons (None others becaues it's not working yet) I have this code...

on (release) {
Opening = 1
if (Opening == False);
tellTarget ("_root.MC TEST") {
gotoAndPlay (2);
Section = 1;
}
if (Opening == True);
tellTarget ("_root.MC TEST") {
gotoAndStop (15);
}
}

But with that code, when I push the button, it goes to frame 15, (My first info page), without playing the animation before it...and when I put Opening = False RIGHT IN FRONT OF THAT STUFF, it still goes DIRECTLY to frame 15...am I setting the Opening variable wrong, or what?...is there a way to have a global variable that can be accessed by everything?
 
Oops, the Opening = 1 isn't supposed to be there...I had ended up trying to set it to one hoping it would give me an error, but it didn't...=(
 
Nevermind!...I got it.
What I was doing, was not setting a global variable, and also placing some things incorrectly....thanx anyways, I know if I would've waited, you guys would've helped.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top