# Moving AS from the button to the main-timeline

**URL:** <https://forum.kirupa.com/t/moving-as-from-the-button-to-the-main-timeline/266522>\
**Category:** flash\
**Created:** [July 21, 2008, 7:45pm UTC](https://forum.kirupa.com/t/moving-as-from-the-button-to-the-main-timeline/266522 "2008-07-21T19:45:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![erlendbv](https://avatars.discourse-cdn.com/v4/letter/e/f07891/32.png) [@erlendbv](https://forum.kirupa.com/u/erlendbv)\
**Post date:** [July 21, 2008, 7:45pm UTC](https://forum.kirupa.com/t/moving-as-from-the-button-to-the-main-timeline/266522/1 "2008-07-21T19:45:25Z")

</div>

Hi guys.

I am so frustrated now - I’m trying to clean up my code, but I just don’t understand this issue.

I understand that _**on(release) {**_ becomes \*\*\*btn\_name.onRelease = function () {

* * *

- But there are two things I just don’t manage to convert;

1. How do I move the following from the btn\_volumeSlider to the main-timeline?

2. And how do I fix this? I don’t understand what to put in front of the onEnterFrame - I am a bit troubled by these things… I have tried both the button-instance, \_root and mc it’s addressing, without any results;

[/LEFT]

Very eager to hearing your suggestions. 😃
