Hi all,
Working on a flash component and I am having trouble referencing prototype functions. All of this code is in the 1st frame of my component. For example, in the performBuffer prototype I am trying to call the muteSong prototype and the stopBuffer prototype, but I am not having any luck. Any help is appreciated. I can send more of the code if needed.
function JukeBoxClass() {
this.init();
}
JukeBoxClass.prototype = new MovieClip();
JukeBoxClass.prototype.init = function() {
some code
}
JukeBoxClass.prototype.muteSong = function() {
code to mute song
}
JukeBoxClass.prototype.performBuffer = function() {
this.muteSong();
//Check to see if Ten Second Buffer Exists
if(mySong.duration - (10 * 1000) >= mutePosition){
this.stopBuffer();
}
JukeBoxClass.prototype.stopBuffer = function() {
code to stop buffer here
}
JukeBoxClass.prototype.onEnterFrame = function(){
if ((mySong.position == mySong.duration) && (mySong.position > 1000) && (percentLoaded != 100)){
callBuffer = setInterval(this.performBuffer, 100);
}
}