Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

actionscript for dimming knob

New Here ,
Jun 13, 2014 Jun 13, 2014

I currently have a volume knob that works with sound and turns 360 Deg. I now want to use this rotary knob to control the brightness of an image/symbol.

Please help

TOPICS
ActionScript
297
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 13, 2014 Jun 13, 2014
LATEST

Find a tutorial on how to control brightness (search Google using terms like "AS3 brightness control") and then figure out how to manipulate the rotation property of the knob to give you the control values.  Here is a link to one of the results of that search...

http://code.tutsplus.com/tutorials/create-a-brightness-editor-in-actionscript-3--active-3438

If you were to follow it, you would see that a slider is used with values ranging from -150 to +150.  What you could probably do is make use of the rotational value (degrees) of the knob relative to 180 degrees getting a -180 to +180 range, meaning take the rotational value and subtract 180 from it for the brightness factor.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines