Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

image rotation (newbie) 1

Status
Not open for further replies.

cwkerns

Technical User
Feb 19, 2005
2
US
I am new to flash, but experienced in HTML. I would like to create a flash site entrance that has a spinning record (I have the image) that spins for 5 - 7 seconds and then stops with the text of the label upright and readable then has the word "Enter" fade in and then repeats. I am sure this is probably a simple project but all I can accomplish so far from tutorials that I have searched for is to rotate the record 180 degrees. Any help would be appreciated.

Thanks

Cwkerns
 
Ok, one thing i noticed about Flash's rotation is it doesn't rotate from 0 to 360.
It rotates from 0 to 180, then the value becomes negative.
What i would do is to have 2 vars, r and i.
r would be the rotation value, and i, a timer.
Here's a brief script:

// Put this script in a movie clip

onClipEvent(load){
var timer = 0;
var r = 0;
}
onClipEvent(enterFrame){
if(r != 180){
r+=5;
}else{
if(timer < 20){
timer++;
}else{
timer = 0;
r = 0;
}
}
this._rotation = r;
}
 
Thanks gaz,

I really appreciate you responding to my plea and I voted for you for your response. Please forgive my ignorance cause when I say I am new to flash, I mean I am really new (ignorant would probably be more accurate) I know this has something to do with action script, but I have no idea how to use a script. Sorry bout this but if you could tell me exactly where and how to enter this script I would greatly appreciate it.

Thanks

cwkerns
 
Ok, first, you create a movie clip symbol.
Insert -> New Symbol -> Movie Clip
( Read on the Help Topic on Creating Symbols )
After that, click on the symbol and insert the script above into the Actions Panel. Press F9 if u dont see it.

The effect may not be the one you are looking for....
it's what I think you are trying to do...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top