Friday, 11 January 2013

Cursor and Image Movement

Im currently nearly done for my beepage. What I mean is for my coding side which is my learning.
It was really hard to find, what the exact script or effect that I want to learn to implement into my flash website. Nearly an hour for me to fine some relevant tutorial.

Kirupa.com (1952) kirupa.com - Mouse Follow with Easing. [online] Available at: http://www.kirupa.com/developer/mx/followease.htm [Accessed: 11 January 2013].
This is one of the tutorial that I found which teaches me how to use as3 to make the object follow the cursor but I couldn't make it to move opposite way. I was struggle for more then 2 hours on the script although it looks simple but I tried many ways of what I understand like placing != which is not following. I still couldn't get it.

This was the script that I've experiment for 2 hours and still couldn't get it.

I've try asking Kevin which is one of my lecture. He told me that this only work on as2 which I still couldn't really see the difference between as2 and as3. After he told me that, use_x but instance name_x, which helps me a bit but I still couldn't understand how to make it move oppositely. And then I thought of using the same way of the codes but make it ease longer to allow the user to have the slow viewing of the image.


Ilike2flash.com (2009) Follow object with mouse in Actionscript 3. [online] Available at: http://www.ilike2flash.com/2009/08/follow-object-with-mouse-in.html [Accessed: 11 January 2013].
This was one of the website tutorial which Kevin gave to me as reference which I found useful. I later on then understood very fast and experiment with the codes and I make it worked also.


I took some time to play with the coding. I first using only X and cancel the Y move which allows me to move only X which is what I want. Then, I tried on the second codes on the easing wan which makes me super happy. It was really hard to find the exact code that I want but it was fun happy when I got the correct wan.

These was the coding that I experiment on. Now, I can place it in my project already and IM SUPER EXCITED. :D

After placing some of the codes in and I change some of the instance name. AND I GOT IT. Im super happy. 


NOW, I got almost all of the coding correct and understand. (The only part which is the sharing which is an additional thing to experience on when I'm done with the whole design and coding.)




No comments:

Post a Comment