home *** CD-ROM | disk | FTP | other *** search
- function flameClass()
- {
- }
- flameClass.prototype = new MovieClip();
- flameClass.prototype.onLoad = function()
- {
- this.flameCount = 0;
- this.flameDelay = 49;
- };
- flameClass.prototype.onEnterFrame = function()
- {
- if(_root.state == "paused")
- {
- }
- if(this.state == "remove")
- {
- removeMovieClip(this);
- }
- if(_root.state == "playing")
- {
- if(this.hitTest(_root.player) == true)
- {
- playerHitsFlame();
- }
- this.flameCount = this.flameCount + 1;
- if(this.flameCount > this.flameDelay)
- {
- removeMovieClip(this);
- }
- }
- };
- Object.registerClass("volcanoflame",flameClass);
-