December 1, 2010

Dynamic AS3 Glow Effect

In Actionscript 3 , we can create dynamic Glow effects using glow filters.

The GlowFilter class applies a lighting effect to display objects, making it appear that a light is being shined up from underneath the object to create a soft glow.
Similar to the drop shadow filter, the glow filter includes properties to modify the distance, angle, and color of the light source to produce varying effects. The GlowFilter also has several options for modifying the style of the glow, including inner or outer glow and knockout mode.


Below is the sample glow effect created using As3

Here you can get step by step tutorial to create Dynamic glow effect.

1.Create MovieClip
2.Give instance name to movieclip
3.Create New Layer
4.Write Script on that
5.Run The file.

1.Create MovieClip
Create one shape or text in stage, and make it as an movieclip using Ctrl+F8.

2.Give instance name to movieclip
Give instance name to that movieclip , for example “mc”

3..Create New Layer
Create new layer on Timeline, name it as an “Action Layer”

4.Writing script

Click on “Action Layer” and Press “F9” , Now write below code on this.
import flash.display.Sprite;
import flash.filters.BitmapFilterQuality;
import flash.filters.GlowFilter;


var glow:GlowFilter = new GlowFilter();
glow.color = 0xffff00;
glow.alpha = 1;
glow.blurX = 25;
glow.blurY = 25;
glow.quality = BitmapFilterQuality.MEDIUM;

//crossGraphic.filters = [glow];
mc.filters=[glow];
Click on “Action Layer” and Press “F9” , Now write below code on this.


5.Run The file:

Give Ctrl+ENTER and run the file, you will get an Glow effect.

March 16, 2010

50 Nice cars wallpaper

                                                                         50 JPEG Images
Nice cars wallpaper Images , Free Download. Dont' Miss it.

September 28, 2009

Attractive Mouse Trailer using AS3


Notice the following sample swf and just move your mouse around the text to view the mouse trailer.


  1. Create new Flash File (File->;New or Ctrl + N) and Name it as mouse trailer.
  2. Draw circle with "gradient fill" like below image.












  3. Convert this image as an movieclip using Modify->covert to symbol or press F8, choose Movieclip.and name it as obj.
  4. Make new Movieclip (Insert-> New Symbol or press ctrl+f8) and name it as "glow".
  5. Drag and drop "obj" movieclip from Library.
  6. Now we are going to apply some filter effects. open "Filters" window (using window->properties->Filters)
  7. Apply Glow filter with color #FFFF00, Blur X:12 Blur Y:12, like below image











  8. Now apply Blur filter with Blur X value 5 , Blur Y value 5 like below image












  9. Then apply Gradient glow effect like below image.











  10. Now right click on "glow" movieclip in libraray and click on Linkage, now set Class name as "Element".
  11. Now press ctrl+N and choose Actionscript File to apply script .
  12. copy and paste below codes in to this , and save this file in the same location of your fla file.




    package digizone{
    import flash.display.*;
    import flash.events.*;

    public class mousetrailer extends MovieClip {
    private var count=4;
    private var x1=mouseX;
    private var y1=mouseY;
    public function mousetrailer() {

    addEventListener(Event.ENTER_FRAME,showTrailer);
    }
    public function showTrailer(e:Event) {
    if (x1!=mouseX||y1!=mouseY) {
    x1=mouseX;
    y1=mouseY;
    var glower:Element=new Element();
    glower.x=mouseX;
    glower.y=mouseY;
    glower.counter=0;
    glower.width+=15;
    glower.height+=15;
    glower.addEventListener(Event.ENTER_FRAME,fadeIt);
    addChild(glower);


    }
    }
    public function fadeIt(evt:Event) {
    evt.currentTarget.counter+=1;
    //verify if the objects showl start to die
    if (evt.currentTarget.counter>count) {
    //if it should die we start to fade it and also shrink it
    evt.currentTarget.alpha+=-0.03;
    evt.currentTarget.width=evt.currentTarget.height-=0.3;
    }
    //once it has faded completly, we remove the event from the object and also remove the object from the stage
    if (evt.currentTarget.alpha<=0)
    {
    evt.currentTarget.removeEventListener(Event.ENTER_FRAME, fadeIt, false); evt.currentTarget.parent.removeChild(evt.currentTarget);
    } } } }

  13. In mousetrailer.fla , open properties window and type your actionscript class name in Document class .
  14. Now press ctrl+Enter to run the application.
Download Sourcefile from here

September 2, 2009

Ocean Waves Effect

Notice the following sample swf , you can view the waves effect.<



  1. Create new Flash File (File->New or Ctrl + N) and Name it as Oceanwaves.
  2. Create (draw ) ocean image like below
  3. Convert this image as an movieclip using Modify->covert to symbol or press F8, choose Movieclip.and name it as ocean
  4. Draw wave image inside the Moviecip called "waves"
  5. Create wave moving animation using keyframe animation
  6. In first frame set alpha to zero and create keyframe on 40 th keyframe and now set alpha to 100 .
  7. Simillarly do vanish point also.
  8. Now Just drag this animated movie clip to stage and name it as "ripple_1" 
  9. Now create new movieclip called "actionscript".
  10. Inside the "actionscript Movieclip" ,create 3 empty key frames for writing script
  11. In first keyframe, write following script

    i = 1; g = 500; k = 1000;
  12. The above script is variable declaration , and in the nexr keyframe write the following script

    duplicateMovieClip(_root.ripple_1, "ripple_1"+i, i);
    i = i+1;
    if (i>=400) {
    i = 1;
    }
  13. the above script used to generate new waves , and in the 3rd keyframe write the following code

    k = k+1;
    if (k>=1500) {
    k = 1000;
    }
    gotoAndPlay(2);
  14. Now give ctrl+Enter to run the player.
Download source code from here

Real Switch Effect

Notice the following sample swf carefully, In this you can find one switch option. Please click on this , you can find the cool effect.



  1. Create new Flash File (File->New or Ctrl + N) and Name it as ReafSwitch effect.
  2. Import image which you want to apply light effect ( better choose some image with light source like below
  3. Convert this image as an movieclip using Modify->covert to symbol or press F8.and name it as Light.Refer below image
  4. Click on this Movieclip and set Instance name as "Light".
  5. Now we can create the switch. Create button symbol and name it as switch_on
  6. Create an image like switch in on position like below image
  7. similary create one more button symbol called switch_off.
  8. Also create an switch image like below
  9. Now in main movie create the layer caller "light" , place the "light" moviclip in first frame and the adjacent frame too.
  10. Make first frame "light" movieclips alpha value to 40%.
  11. Similarly create one more layer caller "switch" , there you place the both button clips in adjacent frame .
  12. Now toggle the frame using script on button click event
  13. Now give ctrl+Enter to run the player.
  14. Download source code from here
 

About

we are doing all kind of web / standalone applications using Flash , FMS, PHP , XML , CSS , etc. we handle all projects starting from the initial design concept through the delivery of your personalized product. Our commitment to you is comprehensive and complete-aimed at satisfying your every need. We have the experience and the expertise to get the job done.

Site Info

we Currently handling web requirements and multimedia productions and we have the capability of cutting your web , graphics and multimedia expenses to a bare minimum without sacrificing professional quality or delaying production. Our focus is on the development of smart, successful ideas and we always strive to maintain the highest . we currently using following technologies Flash 8, Flash cs3,Actionscript 2 ,Action script 3 ,Flash Media server , PHP,AMFPHP,XML ,HTML ,CSS ,Photoshop

Text

Digizone, AnnaNagar East, Chennai, TamilNadu ,India. Please view our website for further details

Flash and photoshop resources FREE Download Copyright © 2009 Community is Designed by Bie