# As doesn't fire on jump to frame

**URL:** <https://forum.kirupa.com/t/as-doesnt-fire-on-jump-to-frame/283718>\
**Category:** flash\
**Created:** [March 10, 2009, 10:53am UTC](https://forum.kirupa.com/t/as-doesnt-fire-on-jump-to-frame/283718 "2009-03-10T10:53:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simononestop](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@simononestop](https://forum.kirupa.com/u/simononestop)\
**Post date:** [March 10, 2009, 10:53am UTC](https://forum.kirupa.com/t/as-doesnt-fire-on-jump-to-frame/283718/1 "2009-03-10T10:53:18Z")

</div>

My web sites content (5 pages) are in 5 frames in a movie clip.  
when you click the nav buttons it jumps to frame 1 - 5 to change the content etc  
Can any one help me I need to fire this code on frame 1 or every time the movie clip jumps to frame 1

```
_root.popup_pressed = 1;
_root.scrHEIGHT = 280;
_root.scroller.scroller.gotoAndStop(2);
_root.TM_title = "Some Health Facts";
_root.READ = 3;
_root.scroller.gotoAndPlay("s1");

```

if I simply add it to frame one it doesn’t fire the code? is it because its not playing the frame? because it jumps to the frame?

how can I do it? (ive tried adding another movie clip and playing that with just the code at the end??)
