# onEnterFrame Question

**URL:** <https://forum.kirupa.com/t/onenterframe-question/195373>\
**Category:** flash\
**Created:** [July 31, 2006, 8:16am UTC](https://forum.kirupa.com/t/onenterframe-question/195373 "2006-07-31T08:16:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mage](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@Mage](https://forum.kirupa.com/u/Mage)\
**Post date:** [July 31, 2006, 8:16am UTC](https://forum.kirupa.com/t/onenterframe-question/195373/1 "2006-07-31T08:16:55Z")

</div>

Hey’a!

Does the onEnterFrame Function() slow down the computer as opposed to other methods?

Eg:  
this.onEnterFrame = function() {  
buttons(mytestbutton1, “Bleh”, “testingit.html”);  
buttons(mytestbutton2, “Bleh2”, “testingit2.html”);  
buttons(mytestbutton3, “Bleh3”, “testingit3.html”);  
}  
// On Frame 1 of the entire movie clip

or

Eg:  
buttons(mytestbutton1, “Bleh”, “testingit.html”);  
// Put into ActionScript on the desired frame, eg:20.

Just not sure whether I should use onEnterFrame so they are always accessable or to just call the function when I need it at that point in time.

Big question is, is there much difference between the two methods?

Cheers!
