swish max uses actionscript so kofa's code is actionscript 2. Your code looks like as3. I'd suggest trying: trace(seg1_item.currentFrame); This will give you feedback on what's happening.