# Can't make an effect to play between pages

**URL:** https://forum.kirupa.com/t/cant-make-an-effect-to-play-between-pages/320723
**Category:** Uncategorized
**Created:** [March 31, 2011, 10:02am UTC](https://forum.kirupa.com/t/cant-make-an-effect-to-play-between-pages/320723 "2011-03-31T10:02:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![xstaz\_2005](https://avatars.discourse-cdn.com/v4/letter/x/e95f7d/32.png) [@xstaz\_2005](https://forum.kirupa.com/u/xstaz_2005)
#### Post date: [March 31, 2011, 10:02am UTC](https://forum.kirupa.com/t/cant-make-an-effect-to-play-between-pages/320723/1 "2011-03-31T10:02:12Z")

</div>

hy. i’m new in flash and i’m haveing some problems with as3. i want to make a transition between pages, so i created the movieClip that i want to play when i hit any button. on main actions i’we wrote this:

stop();  
var nextPag:String;  
function onseriaexclick(evt:MouseEvent):void {  
nextPag = “seriaEX”;  
transitionEff.play();  
}  
seriaex\_btn.addEventListener(MouseEvent.CLICK, onseriaexclick);  
function onseriaesdclick(evt:MouseEvent):void {  
nextPag = “seriaESD”;  
transitionEff.play();  
}  
seriaesd\_btn.addEventListener(MouseEvent.CLICK, onseriaesdclick);

and on movie clip actions i’we wrote this, but id doesn’t work propertly:

MovieClip(parent).\_root.gotoAndPlay(“nextPag”);
