# Problems with my as on prevScene, please help!

**URL:** <https://forum.kirupa.com/t/problems-with-my-as-on-prevscene-please-help/180707>\
**Category:** Uncategorized\
**Created:** [March 2, 2006, 10:18pm UTC](https://forum.kirupa.com/t/problems-with-my-as-on-prevscene-please-help/180707 "2006-03-02T22:18:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lolomedia](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@lolomedia](https://forum.kirupa.com/u/lolomedia)\
**Post date:** [March 2, 2006, 10:18pm UTC](https://forum.kirupa.com/t/problems-with-my-as-on-prevscene-please-help/180707/1 "2006-03-02T22:18:21Z")

</div>

I have various movies clip within a movie and my back (mc = arr2\_mc) and next (mc = arr1\_mc) buttons are on the main scene.

This is on my main scene on a first frame

ActionScript Code:

[FONT=Courier New][LEFT]  
movieclip.[COLOR=#0000ff]prototype[/COLOR].[COLOR=#000080]playBackwards[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]  
ifCOLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
this.[COLOR=#0000ff]onEnterFrame[/COLOR]= [COLOR=#0000ff]undefined[/COLOR];  
this.[COLOR=#0000ff]play[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#000000]}[/COLOR] [COLOR=#0000ff]else[/COLOR] [COLOR=#000000]{[/COLOR]  
this.[COLOR=#0000ff]onEnterFrame[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
this.[COLOR=#0000ff]\_currentframe[/COLOR] == [COLOR=#000080]1[/COLOR] ? [COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]gotoAndStop[/COLOR]COLOR=#000000[/COLOR] : [COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]prevFrame[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#000000]}[/COLOR]  
[COLOR=#000000]}[/COLOR]  
[COLOR=#000000]}[/COLOR]  
arr1\_mc.[COLOR=#0000ff]onRelease[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
mc1.[COLOR=#000080]playBackwards[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#000000]}[/COLOR]  
arr2\_mc.[COLOR=#0000ff]onRelease[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
mc1.[COLOR=#000080]playBackwards[/COLOR]COLOR=#000000;[/COLOR]  
[COLOR=#000000]}[/COLOR]

[/LEFT]  
[/FONT][LEFT]

[/LEFT]

when it goes back, it goes back frame by frame without stopping but I want it to go only to previous Scene. instead of going to previous frame.

Do i have to create a unique button? which i did but i didn’t work?  
please help help help help… i’m stuck :upset:

please help.

thank you!!
