Oh. yeah, there's a bug there. currentFader will be null until you actually drag one.
I'm sure it's called loop because it runs every frame. You do need a separate bounds for each fader, but I've already done that above and set each as a property on their respective faders.Code:function loop(e:Event):void{ if (currentFader != null){ var bounds:Rectangle = currentFader.bounds; svalue.text=String(Math.round((currentFader.y-bounds.bottom)/(bounds.top-bounds.bottom)*8.00)); } } function dropScroll(evt:MouseEvent):void{ currentFader.stopDrag(); currentFader = null; dragging=false; }
What error exactly did you get when trying to put the clips in the array directly?




Reply With Quote
