# If () {gotoAndPlay} \[cs3 as 2.0\]

**URL:** https://forum.kirupa.com/t/if-gotoandplay-cs3-as-2-0/289463
**Category:** Uncategorized
**Created:** [May 30, 2009, 11:42pm UTC](https://forum.kirupa.com/t/if-gotoandplay-cs3-as-2-0/289463 "2009-05-30T23:42:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Drkovorkian](https://avatars.discourse-cdn.com/v4/letter/d/6a8cbe/32.png) [@Drkovorkian](https://forum.kirupa.com/u/Drkovorkian)
#### Post date: [May 30, 2009, 11:42pm UTC](https://forum.kirupa.com/t/if-gotoandplay-cs3-as-2-0/289463/1 "2009-05-30T23:42:57Z")

</div>

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) {  
gotoAndPlay(3);  
trace(flipl);  
}  
}

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
