Multiple onEnterFrame Events

Multiple onEnterFrame Events
Multiple onEnterFrame Events

Multiple onEnterFrame Events One problem with using onEnterFrame is that every movieclip only has one of them so you can only assign a single function to be used for a movieclip’s onEnterFrame event at any given time. This (albeit odd) example shows how you can get around this using an addEnterFrameEvent function which runs multiple enterFrame event functions stored in an array for any single onEnterFrame event of a single movieclip. Some additional features are added to provide more control which can be seen in interacting with the street sign in this example. Simply click the sign to initiate 3 different function calls for one onEnterFrame event, each with their own set of parameters assigned when the sign is clicked. In addition, a helpful SimpleTweener function is used to scale and position the sign movieclip. This simple yet versitile function makes it easy to make simple tweens for many different properties using the same function.

Categories and tags of the game : Interactive, Other, Single Player

💡 Dato Tecnológico

La eficiencia energética es crítica en los data centers. La instalación de energía geotérmica y sistemas de refrigeración líquida industrial reduce drásticamente los costes operativos de los servidores.

¿Buscas herramientas útiles o software gratuito? Visita el archivo de utilidades en Otae.com.
🚀

Descubre Apps Útiles

¿Te gustan las curiosidades de internet? Visita Otae.com para encontrar herramientas gratuitas y novedades.

VISITAR OTAE.COM