Flash 5

Size Easing

Tuesday, July 11th, 2006
[ Flash Lab, Flash 5 ]

flash size easing
link: http://www.nineb.com/lab/flash5/sizeEasing/index.html
Flash version : 5
Graphic : bubbleball
Program : bubbleball

“Easing” This is a most popular technique which every newbies of flash want to know how to do. If you learn more actionscript, you will know that making easing for postion , size and others is very easy.

How to do?
Answer is you use new value which movieclip will chaged to calculate with present value for getting different value. After that, to divide different value by some number such as 2, so you will get half of different value and plus it to the present value. So every time movieclip change its property to newvalue, the different value will be less and it will changed slowly. (Important is placing code in loop event such as enterFrame event)

In this sample, I apply easing technique to change size of movieclip and you will see some work that I use this technique for making easing scrollbar later. (In flash mx version)

If you are using flash 8, you will notice that you already have tool for making easing of tweening.

:, ,

  • Thai
  • Flash Loop picture

    Wednesday, July 5th, 2006
    [ Flash Lab, Flash 5 ]

    flash loop picture

    link: http://www.nineb.com/lab/flash5/loopPicture/index.html
    Flash version : 5
    Graphic : bubbleball
    Program : bubbleball

    I always see a lot of people like to ask about loop picture. When I am newbies in flash, this work is a good workshop for doing and thinking. I think it is’n hard if you can calculate size of picture and know about how to get position (_x,_y) and lenght of object (_width, _height). From my experiece, I see that many one don’t care about smoothness of picture movement.

    You will see that I build scroll bar for changing speed for test smoothness too. Why have to test?

    If you use low speed for moving picture, you will not see anything wrong. But if you use high speed for moving picture, you will see that picture will move backward when it reset its position for making loop.

    Easy technique for fix the problem is checking the next position of picture that it will move to. If picture will move over the reset point (point for moving picture to place at the begin position), you should reset reset position of it before.

    Infact, you should use distances that picture can move over the reset point too and use it to calculate for new position after set the picture to place at the begin position.

    Dowload it to learn basic movement in flash now. :D

    :, , , ,

  • Thai
  • My first flash 3d engins

    Monday, June 19th, 2006
    [ Flash Lab, Flash 5 ]

    flash 3d town
    link: http://www.nineb.com/lab/flash5/town/index.html
    Flash version : 5
    Graphic : bubbleball, source by google image search
    Program : bubbleball

    p.s. click on flash first and use key board to move.

    I do this work when I start to play flash since version 5. I am so fun to do with this engine and try to make this character to move in 3d. No much technique, I only change scale and position of it. Most problem is about hitTest with wall, I don’t fix problem that is happened when move in two directions in the same time (If you do that, it will fly).


    What you can learn in this work?

    1. How to make loop picture. (sky in this work)
    2. How to move charactor by keyboard.
    3. How to change scale of charactor.
    4. How to check hit between charactor and wall.

    :,

  • Thai
  • Other Resources



    HOME ABOUT US CONTENTS DOWNLOADS LINKS CONTACT

    เพลง,ฟังเพลง,เพลงออนไลน์,download เพลง

    à¾Å§ ´¹µÃÕ ÈÔŻԹ ÍÔ¹´Õé


    This is my Google PageRank™ - SmE Rank free service Powered by Scriptme