Vamos a crear un boton en el cual podamos darle una orden de linea de tiempo (Score)
dibuja una cuadro o inserta una imagen en el Stage (area de trabajo o pantalla)
vamos a la linea de tiempo (score), e iserta una marca en Markers dale cualquier nombre.
yo le voy a poner "marca1"
ahora coloca un tope en el segundo frame y otro debajo de la marca
ahora le damos el codigo al boto; click derecho sobre el objeto>opción Script...y escribimos onmouseUpme gotoframe"marca1" end
"donde dice marca1 es la dirección de la marca del score
el onmouseUpme puede cambiarlo por onmousewithinmeque
significa la acción del mose 1 primer Código es para dar click e ir a la marca en linea de tiempo y el segundo para pasar el mouse por encima del boton e ir inmediatamente a la marca en line de
tiempo
This reference provides conceptual and how-to information about scripting in Macromedia Director MX 2004, and also provides reference descriptions and examples for the scripting application
programming interfaces (APIs) that you use to write scripts.
The scripting APIs are the means by which you access the functionality of Director through script to add interactivity to a movie. By using these APIs, you can create interactive
functionality that is identical to that provided by the prewritten behaviors that are shipped with Director, in addition to functionality that is more powerful and more varied than that provided
by the prewritten behaviors.
The prewritten behaviors enable you to add basic interactive functionality to a movie, such as moving the playhead to a frame number or marker, or zooming in when a user clicks a sprite. They
also enable non-interactive functionality such as sprite animation, media loading, and frame navigation. The scripting APIs enable you to extend and customize these types of functionality.
Últimos Comentarios