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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Revolving Buttons A/S not executing 1

Status
Not open for further replies.

rick1111

Programmer
Nov 25, 2001
16
US
I have one frame which contains 6 layers.
Layer one is a MC which is a name centered on the stage.
Layers two through six are individual buttons which slowly revolve around layer one. So far everything works perfectly.
When I edit the buttons and put an oval background in the Over state and test the movie, the ovals all pulse - all the time.
Secondly, I cannot get the buttons to function.

Here is part of my A/S:
// all buttons are defined alike with the exception of the angle. The angles are 0, 75, 150, 225, and 300 respectively.

onClipEvent (load) {
speed = .5;
radius = 180;
xcenter = 275;
ycenter = 200;
angle = 0;
}
onClipEvent (enterFrame) {
_x = Math.cos(angle*Math.PI/180)*radius+xcenter;
_y = Math.sin(angle*Math.PI/180)*radius+ycenter;
angle += speed;
}

I have used various "onClipEvent (mouseDown)" statements to try to get the buttons to work without success.

I have spent days in the A/S manual and continue to come up empty. Any help would be appreciated.

Thanks,
Rick
 
Weird - I just cut and pasted your code into a movie and built a button. It seems to work absolutely fine...


If I was you I'd rebuild the buttons from scratch and then do the necessary conversion to movieClips to see if that cures the problem.
 
Thanks for the effort wangbar. I looked at your link and that seems to be exactly what I'm trying for. I started over from scratch as you suggested and I can get my buttons revolving around the central object just fine, but I still get the same results as before. I would dearly love to see your fla to try to figure out what I'm doing wrong.

Thanks,
Rick
 
wang that's really cool man but it's a bit jumpy..would use that in the future sometime, for something...but, how can you get that jumpiness out of that rotation?.
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Your fla really helped. My problem was not loading my button over my mc. I had tried something similar, but was off just enough for it to not work.

Virt, are you using a dial up or slow dsl connection? I'm using adsl and don't notice any significant jerkiness.

Thanks again for all the help.
Rick
 
What's all this business of jerkiness and degrated image quality based on connection speed? Second post today on that subject!
Again, once the darn thing has downloaded in your cache (provided you had a preloader so that the movie wasn't actually "streaming" on the first pass!), it's playing in the player as if the file was a local one. Stalls, jerks, degrated or pixelated images have got "niet" to do with connection speed! This ain't streaming video!

That said, I did notice some slight jerkiness too, as Carl did (who by the way is on cable - I'm on dial-up!), and that may be for several reasons... If only maybe from the difference in contrast of the buttons' color on that white background.

Regards,

wink4.gif
ldnewbie
 
like old said my cable modem has nothing to do with it..there is a slight jerkiness to the rotation..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
It's just the screen refreshing I think - it's more noticeable at high frame rates (60fps in this case).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top