Welcome to WebmasterWorld Guest from 54.166.239.238

Forum Moderators: open

Message Too Old, No Replies

how to make a pic rotate in flash

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

New User

10+ Year Member

joined:Mar 18, 2004
posts:10
votes: 0


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
3:32 pm on Mar 18, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 13, 2003
posts:1240
votes: 0


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++;
}

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

New User

10+ Year Member

joined:Mar 18, 2004
posts:10
votes: 0


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
9:43 am on Mar 22, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 13, 2003
posts:1240
votes: 0


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