i want to create a speed test application in action script 3.The speed meter that am planning is like an analog one.How could i arrange those.?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I didn’t quite understand what exactly you want, but I assume you’re asking how to create a speed meter with an analog dial.
I will describe how to create this kind of meter http://bit.ly/pSOxnv – but can easily adapt to others.
You’ll have two MovieClips:
the background of the meter (nothing special here), just keep it on the bottom
the indicator – basically just a fancy line. You will want to position this in the exact position on top of the background, and then adjust the transformation center to be exactly where the axis should be (our center of rotation) – http://bit.ly/pP1AgL .
After that, you will need to write some code to position the indicator to the correct value:
If you want to manage the center point in actionscript too, then things will get more complicated, you will have to apply a Transformation Matrix to
mc.transform.matrix. Read more about it here: http://bit.ly/oBcKOj