Welcome to WebmasterWorld Guest from 54.167.86.186

Forum Moderators: open

Message Too Old, No Replies

how to make a pic rotate in flash

     

ceasar

3:01 pm on Mar 18, 2004 (gmt 0)

10+ Year Member



i have flash mx 2004
here is my problem
i have a picture which is a jpeg
it doesnt move
it is a picture of a lock
i want to make the center part of it rotate like someone is turning it
does anyone know how i go about doing this
i also have.
dreamweaver mx
fireworks mx
freehand mx

benihana

3:32 pm on Mar 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



you need to use fireworks to seperate the bit you want to rotate from the background.

then inpost both pics into flash, turn the lock part that you want to rotate into a movie clip and use this (untested ) action script (where your lock moive clip has an instance name of lockmc):

lockmc.onEnterFrame=function(){
_root.lockmc._rotate++;
}

ceasar

4:13 pm on Mar 18, 2004 (gmt 0)

10+ Year Member



ok so basically
in the time line im making it rotate
different in each one the i make it loop
and i lock the other part of the pic right so just the one rotates.
thanks i think i got it

benihana

9:43 am on Mar 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



you could rotate along the timline, but if you use actionscript to do it, you will have more control if you want to speed it up, slow it down change direction etc etc
 

Featured Threads

Hot Threads This Week

Hot Threads This Month