So here is my code below: I declared the variable in the first frame of the movie at the _root level. the trace returns false but for some reason the code goes into the first if statement as if the variable was set to true…any ideas why this may be happening?
stop();
trace(_root.viewHeadlines);
if (_root.viewHeadlines = true) {
trace(“I am goin to show Headlines”);
this._parent.gotoAndStop(3);
}
if(_root.viewHeadlines = false){
trace(“I am in frame 4”);
this._parent.gotoAndStop(4);
}