I’m trying to use OOP to code a slider – Basically I want to attach the AS class to a movie called mc_slider and within that MC will be mc_knob and mc_track
I have the code and kind of know where i need to go But I don’t undestand how I say something like this.knob_mc.onPress when the syntax i’m supposed to be using is function onPress(){}
also if i were to say something like
class slider extends MovieClip {
function onPress() {
this.knob_mc.startDrag(false, 0, 0, 100, 0);
}
it would tell me that there is no method called knob_mc
Thanks
JÜMBOshrimp