View Single Post
  #4 (permalink)  
Old Jul 18th, 2007, 19:05
David Blake David Blake is offline
Junior Member
Join Date: Nov 2005
Location: Wisconsin
Age: 38
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Midframe variable

Well here's what I tried to do. What I attempted was to modify my existing code slightly by adding another if statement:

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "OrangeAll";
container.loadMovie("OrangeAll.swf");
} else if (_root.currMovie != "OrangeAll") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "OrangeAll";
container.play(); {
if (container._currentframe < container.midframe)
gotoAndPlay(midframe);
}
}
}
}

What I was hoping is that my last if statement is telling it that if the current played frame is less than midframe, goto and play midframe.

But it doesn't seem to work. Any ideas?

Dave
Reply With Quote