If () {gotoAndPlay} [cs3 as 2.0]

Hi all.

I’m working on a pinball game that will be controlled by sensor data from max/msp. at the moment I’m having real trouble animating everything. I am very new to flash and action-script (3 days now!). This if statement should animate MC, paddle flip if the var flipl = 1. but for some reason it will not go to frame three and play. any ideas, i’m probably missing something fundamental that everyone who writes action-script knows already! I am trying to work it out though and i’m baffed!

onEnterFrame = function() {
if (flipl = 1) {

To my best logic i can’t see why this won’t play from frame 3 when flipl does = 1? i have tried with ==.

Would really appreciate some help on this. drk