Learn ReactJs

To Know more about ReactJs with the Restful API

React

React
Fundamental of React Js

Tuesday, January 8, 2008

Effects Blur Filter

Blur Filter:Now, we see the blur Filter Examples...Now we have create a movie clip and give instance name as reflec...Main screen1: Movie Clip2: 2 input textfiled for Blur x and Blur y3: Update buttonLet, before openimport the filtersimport mx.transitions.Tween;import flash.filters.BlurFilter;import mx.transitions.easing.*;After, apply the effect to the movieon Enterframe eventHere, the complete Code...import mx.transitions.Tween;import flash.filters.BlurFilter;import flash.filters.*;import mx.transitions.easing.*;function update(){ updatebtn.onPress...

Dropshadow Filter

First ,we have to import the flash filterimport flash.filters.DropShadowFilter;Now create a runtime Movieclip aslet we create a box make a sixe of x and y as 50here the code:this.createEmptyMovieClip('Box',2)with (Box){ beginFill(0x000000, 100); moveTo(0, 0); lineTo(100, 0); lineTo(100, 100); lineTo(0, 100); lineTo(0, 0); endFill();}Box._x = 50Box._y = 100and thenin that EnterFrame we have to give the value.. and call the variable and make values as Dynamic textHere the code as,Box.onEnterFrame = function(){ ds.quality++...

Wednesday, January 2, 2008

Runtime Circle

Creating a method that can be used by all movieclips in a movieAs of Flash MX, the prototype property of the MovieClip class can be used to assign additional functions to the class, which makes them available to all movieclips. Here's an example of creating and using a draw circle method:// r = radius of circle// x, y = center of circleMovieClip.prototype.drawCircle = function (r, x, y) {var TO_RADIANS:Number = Math.PI/180;// begin circle at 0, 0 (its registration point) -- move it when donethis.moveTo(0, 0);this.lineTo(r, 0);// draw...