A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: click-and-rotating knobs

Threaded View

  1. #1
    Senior Member
    Join Date
    Oct 2009
    Posts
    112

    [RESOLVED] click-and-rotating knobs

    I have an array of knobs, they all have functions so that you can click-and-drag left-right or up-down to make them rotate back and forth.
    when i have one knob on its own the code works fine. but now that i've put them in an arrary i've confused myself with the code.
    i have a var currentKnob:MovieClip
    and a var KNOB:MovieClip
    the reason i have a currentKnob var is so that when i'm tracing the click-on knob, as3 will know which one is being clicked.
    i've got confused on where i should include currentKnob in the functions, and where i should include KNOB in the functions.
    i think just by looking at the code someoen can probly figrue out where i mixed the two up, but i have tried lots of combinations mixing the two up and keep getting the same error:
    Code:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    	at knobs_fla::MainTimeline/frame1()

    thanks for any help
    Last edited by mattwatts15; 11-12-2009 at 03:57 PM. Reason: mark as resolved

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center