Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-18-2005, 02:21 AM   #1
serostardesign's Avatar
Join Date: Apr 2005
Location: Denver, CO
Posts: 3
Lightbulb N S E W circular compass navigation.


The effect I am trying to create is for a navigation. It is in the shape of 2 c's - circles missing a 1/4 chunk. 1 circle is bigger than the other, both are centered.

There are 4 clickable buttons: North, South, East, and West.

When you click on west, the inner circle should rotate clockwise and the missing chunk will stop when it is pointing at west. The outer circle will rotate counterclockwise and also stop when the missing chunk is pointing west.

same for the other buttons / directions.

I am having troubles doing this, but I am sure it can be scripted.

The script I'm using is from flashkit, but it doesn't have the right commands, just the rotation. I could really use some help with this.

here's what I've got sofar, but it is not correct.

on the button:
ActionScript Code:
onClipEvent(mouseDown) {  if (hitTest(_root._xmouse,_root._ymouse)) {  _root.bigcircle.rotDest = 90;   _root.smallcircle.rotDest = 90;  }} }

on the both circles:
ActionScript Code:
onClipEvent (enterFrame) {  if (rotDest> 0) {  this._rotation += (rotDest)*.4;  rotDest--;  } }

Thanks a lot,

ryan ludwig
serostardesign is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 06:34 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.