We Recommend

The Rails Way The Rails Way
Now, for the first time, there’s a comprehensive, authoritative guide to building production-quality software with Rails. Pioneering Rails developer Obie Fernandez and a team of experts illuminate the entire Rails API, along with the Ruby idioms, design approaches, libraries, and plug-ins that make Rails so valuable.


Posted By

limonn on 08/19/06


Tagged


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

damarev


deslizando un movie clip


Published in: ActionScript 


  1. //------------ en las acciones
  2.  
  3. _root.boton1_btn.onPress=function(){ // aprieto el boton
  4.  
  5. pagina_mc.quierollegar = 500; //
  6.  
  7. }
  8.  
  9. //------------------- en el Movie Clip------
  10.  
  11. onClipEvent (load) {
  12. _x=0; // punto de partida
  13.  
  14. easeSpeed = 5;
  15.  
  16. }
  17. onClipEvent (enterFrame) {
  18.  
  19. _x += (quierollegar-_x)/easeSpeed;
  20.  
  21. }

Report this snippet 

You need to login to post a comment.