7. Create the third layer by clicking on the insert tab, select timeline and then click new layer at dropdownlist, name it prototypes. then click on Action tab close to the properties tab, paste the following below into the action frame tab of the prototypes layer.

stop()
MovieClip.prototype.linearMove = function(dist:Number){
	this.walked = 0
	this.onEnterFrame = function(){
		this._x+=this.velx
		this._y+=this.vely
		this.walked+=int(this.vel)
		if(this.walked>dist) {
			delete this.onEnterFrame
			this.removeMovieClip()
		}
	}
}
MovieClip.prototype.turnOut = function(dir){
	this.counter = 0
	this.onEnterFrame = function(){
		this._rotation+=dir
		this.counter+=Math.abs(dir)
		if(this.counter>=100) {
			delete this.onEnterFrame
			this.removeMovieClip()
		}
	}
}
          

Image below represents illutrations of tutorial number 7. 7

8. Finally, Create last layer, name it layer 5. Then as depicted in the image below, create a frame on frameline 25 but select 25, then right,select insert frame to insert frame on line 25.

Test to see your image slide by clicking on Control tab at top left corner of your flash document page, then select test movie. Click here to view finished dissolve image slider we just created.

9

Comments

comments powered by Disqus