Creating a simple image gallery with the Flex HorizontalList control the following example shows how you can create a simple photo gallery in Flex using the TileList control, Image control, and the PopUpManager class.

Source code:

Main.mxml:

<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml”
        layout=”vertical”
        verticalAlign=”middle”
        backgroundColor=”white”>

    <mx:Style>
        global {
            modal-transparency: 0.9;
            modal-transparency-color: white;
            modal-transparency-blur: 9;
        }
    </mx:Style>

    <mx:Script>
        <![CDATA[
            import mx.effects.Resize;
            import mx.events.ResizeEvent;
            import mx.events.ListEvent;
            import mx.controls.Image;
            import mx.events.ItemClickEvent;
            import mx.managers.PopUpManager;

            private var img:Image;

            private function tileList_itemClick(evt:ListEvent):void {
                img = new Image();
                // img.width = 300;
                // img.height = 300;
                img.maintainAspectRatio = true;
                img.addEventListener(Event.COMPLETE, image_complete);
                img.addEventListener(ResizeEvent.RESIZE, image_resize);
                img.addEventListener(MouseEvent.CLICK, image_click);
                img.source = evt.itemRenderer.data.@fullImage;
                img.setStyle("addedEffect", image_addedEffect);
                img.setStyle("removedEffect", image_removedEffect);
                PopUpManager.addPopUp(img, this, true);
            }

            private function image_click(evt:MouseEvent):void {
                PopUpManager.removePopUp(evt.currentTarget as Image);
            }

            private function image_resize(evt:ResizeEvent):void {
                PopUpManager.centerPopUp(evt.currentTarget as Image);
            }

            private function image_complete(evt:Event):void {
                PopUpManager.centerPopUp(evt.currentTarget as Image);
            }
        ]]>
    </mx:Script>

    <mx:WipeDown id=”image_addedEffect” startDelay=”100″ />

    <mx:Parallel id=”image_removedEffect”>
        <mx:Zoom />
        <mx:Fade />
    </mx:Parallel>

    <mx:XML id=”xml” source=”gallery.xml” />
    <mx:XMLListCollection id=”xmlListColl” source=”{xml.image}” />

    <mx:TileList id=”tileList”
            dataProvider=”{xmlListColl}”
            itemRenderer=”CustomItemRenderer”
            columnCount=”4″
            columnWidth=”125″
            rowCount=”2″
            rowHeight=”100″
            themeColor=”haloSilver”
            verticalScrollPolicy=”on”
            itemClick=”tileList_itemClick(event);” />

</mx:Application>

View CustomItemRenderer.mxml

<?xml version=”1.0″ encoding=”utf-8″?>
<mx:VBox xmlns:mx=”http://www.adobe.com/2006/mxml”
        horizontalAlign=”center”
        verticalAlign=”middle”>
    <mx:Image source=”{data.@thumbnailImage}” />
    <mx:Label text=”{data.@title}” />
</mx:VBox>

 View gallery.xml

<?xml version=”1.0″ encoding=”utf-8″?>
<!– http://blog.flexexamples.com/2008/03/08/creating-a-simple-image-gallery-with-the-flex-tilelist-control/ –>
<gallery>
    <image title=”Flex”
        thumbnailImage=”assets/fx_appicon-tn.gif”
        fullImage=”assets/fx_appicon.jpg” />
    <image title=”Flash”
            thumbnailImage=”assets/fl_appicon-tn.gif”
            fullImage=”assets/fl_appicon.jpg” />
    <image title=”Illustrator”
            thumbnailImage=”assets/ai_appicon-tn.gif”
            fullImage=”assets/ai_appicon.jpg” />
    <image title=”Dreamweaver”
            thumbnailImage=”assets/dw_appicon-tn.gif”
            fullImage=”assets/dw_appicon.jpg” />
    <image title=”ColdFusion”
            thumbnailImage=”assets/cf_appicon-tn.gif”
            fullImage=”assets/cf_appicon.jpg” />
    <image title=”Flash Player”
            thumbnailImage=”assets/fl_player_appicon-tn.gif”
            fullImage=”assets/fl_player_appicon.jpg” />
    <image title=”Fireworks”
            thumbnailImage=”assets/fw_appicon-tn.gif”
            fullImage=”assets/fw_appicon.jpg” />
    <image title=”Lightroom”
            thumbnailImage=”assets/lr_appicon-tn.gif”
            fullImage=”assets/lr_appicon.jpg” />
    <image title=”Photoshop”
            thumbnailImage=”assets/ps_appicon-tn.gif”
            fullImage=”assets/ps_appicon.jpg” />
</gallery>

 

Enjoy the Image Gallery !…………..

 

Courtersy: flexexamples

Posted by: bhuvanvel | July 11, 2008

Setting a creation complete effect on a Button in Flex

The following example shows how you can set a creation complete effect on a Flex Button control by setting the creationCompleteEffect style.

 
<?xml version=”1.0″ encoding=”utf-8″?>
<!– http://blog.flexexamples.com/2008/06/17/setting-a-creation-complete-effect-on-a-button-control-in-flex/ –>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml”
layout=”vertical”
verticalAlign=”middle”
backgroundColor=”white”>

<mx:Button id=”button”
label=”Button”
creationCompleteEffect=”Zoom” />

</mx:Application>

 

You can also set the creationCompleteEffect style using an external .CSS file or <mx:Style /> block, as seen in the following snippet: 

<?xml version=”1.0″ encoding=”utf-8″?>
<!– http://blog.flexexamples.com/2008/06/17/setting-a-creation-complete-effect-on-a-button-control-in-flex/ –>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml”
        layout=”vertical”
        verticalAlign=”middle”
        backgroundColor=”white”>

    <mx:Style>
        Button {
            creationCompleteEffect: Zoom;
        }
    </mx:Style>

    <mx:Button id=”button”
            label=”Button” />

</mx:Application>

or

you can set the creationCompleteEffect style using ActionScript, as seen in the following example:

<?xml version=”1.0″ encoding=”utf-8″?>
<!– http://blog.flexexamples.com/2008/06/17/setting-a-creation-complete-effect-on-a-button-control-in-flex/ –>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml”
        layout=”vertical”
        verticalAlign=”middle”
        backgroundColor=”white”
        creationComplete=”init();”>

    <mx:Script>
        <![CDATA[
            import mx.controls.Button;
            import mx.effects.Zoom;

            private var button:Button;

            private function init():void {
                button = new Button();
                button.label = "Button";
                button.setStyle("creationCompleteEffect", Zoom);
                addChild(button);
            }
        ]]>
    </mx:Script>

</mx:Application>

Courtersy: Blog.flexexamples

Here we saw how you could modify the background color of a VideoDisplay control in Flex by setting the backgroundColor style.

The following example shows how you can set the background alpha on a Flex VideoDisplay control by setting the backgroundAlpha style.

<?xml version=”1.0″ encoding=”utf-8″?>

<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml”
layout=”vertical”
verticalAlign=”middle”
backgroundColor=”white”>

<mx:Script>
<![CDATA[
private function loadButton_click(evt:MouseEvent):void {
var url:String = "http://www.helpexamples.com/flash/video/clouds.flv";
videoDisplay.source = url;
}

private function unloadButton_click(evt:MouseEvent):void {
videoDisplay.close();
videoDisplay.source = null;
videoDisplay.mx_internal::videoPlayer.clear();
}
]]>
</mx:Script>

<mx:ApplicationControlBar dock=”true”>
<mx:Form styleName=”plain”>
<mx:FormItem label=”backgroundAlpha:”>
<mx:HSlider id=”slider”
minimum=”0.0″
maximum=”1.0″
value=”1″
snapInterval=”0.01″
liveDragging=”true” />
</mx:FormItem>
<mx:FormItem label=”backgroundColor:”>
<mx:ColorPicker id=”colorPicker” />
</mx:FormItem>
</mx:Form>
</mx:ApplicationControlBar>

<mx:VideoDisplay id=”videoDisplay”
backgroundAlpha=”{slider.value}”
backgroundColor=”{colorPicker.selectedColor}”
width=”160″
height=”120″ />

<mx:ControlBar>
<mx:Button id=”loadButton”
label=”Load”
click=”loadButton_click(event);” />
<mx:Button id=”unloadButton”
label=”Unload”
click=”unloadButton_click(event);” />
</mx:ControlBar>

</mx:Application>
courtersy: blog. Flexexamples.com
Posted by: bhuvanvel | June 21, 2008

Flex- completeEffect with Button

The following example shows how you can set a creation complete effect on a Flex Button control by setting the creationCompleteEffectstyle .

View Source

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white">

    <mx:Style>
        Button {
            creationCompleteEffect: Zoom;
        }
    </mx:Style>

    <mx:Button id="button"
            label="Button" />

</mx:Application>

Posted by: bhuvanvel | April 8, 2008

Zoom Effectd

// ———————— Z O 0 M    F U N C T I O N —————-
//————————————————————-

Code:
 zoomtools ()
function zoomtools ()
{
 // Zoom buttons
 // zoom-In button
 zoomin_mc.onRollOut = function ()
 {
  zoomin_mc.gotoAndStop ('normal');
 };
 zoomin_mc.onRollOver = function ()
 {
  zoomin_mc.gotoAndStop ('over');
 };
 zoomin_mc.onPress = function ()
 {
  zoomin_mc.gotoAndStop ('down');
 };
 zoomin_mc.onRelease = function ()
 {
  zoomin_mc.gotoAndStop ('on');
  //_root.createEmptyMovieClip ('maskes',-2);
  //_root.ImageArea.setMask (_root._parent);
  
  if (_root.ImageArea.Image.image._xscale > 200)
  {
   if (_root.ImageArea.Image.image._yscale > 200)
   {
    _root.zoom = 0;
   }
  }
  else
  {
   _root.zoom = 1;
  }
 };
 // zoom-Out button
 zoomout_mc.onRollOut = function ()
 {
  zoomout_mc.gotoAndStop ('normal');
 };
 zoomout_mc.onRollOver = function ()
 {
  zoomout_mc.gotoAndStop ('over');
 };
 zoomout_mc.onPress = function ()
 {
  zoomout_mc.gotoAndStop ('down');
 };
 zoomout_mc.onRelease = function ()
 {
  zoomout_mc.gotoAndStop ('on');
  if (_root.ImageArea.Image.image._xscale < 35)
  {
   if (_root.ImageArea.Image.image._yscale < 35)
   {
    _root.zoom = 0;
   }
   /*if (_root.ImageArea.Image.image._yscale <= 35)
   {
    _root.ImageArea.Image.image.attachMovie ('limit','limit',12);
    _root.ImageArea.Image.image.limit._x = -_root.ImageArea.Image.image._width / 2;
    _root.ImageArea.Image.image.limit._y = -_root.ImageArea.Image.image._height / 2;
   }
   else if (_root.ImageArea.Image.image._yscale > 35)
   {
    _root.ImageArea.Image.image.removeMovieClip ();
   }*/

  }
  else
  {
   _root.zoom = -1;
  }
 };
 _root.onLoad = function ()
 {
  _root.zoom = 0;
 };
 zoom = 0;
 zoomperclick = 10;
 _root.onEnterFrame = function ()
 {
  _root.createEmptyMovieClip ('ms',-23);
  _root.ms._width = _root.ImageArea.Image.image._width;
  _root.ms._height = _root.ImageArea.Image.image._height;
  if (_root.zooming < _root.zoomperclick)
  {
   _root.zooming++;
   _root.ImageArea.Image.image._xscale = _root.ImageArea.Image.image._xscale + _root.zoom;
   _root.ImageArea.Image.image._yscale = _root.ImageArea.Image.image._yscale + _root.zoom;
  }
  //_root.ImageArea.setMask(_root.ms)               

 };
 zooming = zoomperclick + 1;
 punct = new Object ();
 _root.speed.restrict = "1-9";
 _root.speed.maxChars = 1;
 zoomers = new Object ();
 zoomers.onMouseDown = function ()
 {
  pozX = _root._xscale;
  pozY = _root._yscale;
  if ((_root.ImageArea.Image.image._xscale > 100) && (_root.ImageArea.Image.image._yscale> 100) && (_root.zoom < 35))
  {
   _root.zoom = 0;
  }
  else if ((_root.ImageArea.Image.image._xscale < 450) && (_root.ImageArea.Image.image._yscale < 450) && (_root.zoom < 250))
  {
   _root.zoom = 0;
  }
  if (!((pozX > 200) && (pozY < 200)))
  {
   _root.zooming = 0;
  }
 };
 Mouse.addListener (zoomers);
}

 

Posted by: bhuvanvel | April 7, 2008

Rotate a image in center on button click

here the codes…

To move current movieclip and _parent movieclip

codes:
function rotatez()
{
rotae_btn()
var imhpath =‘images/image15.jpg’
_root.createEmptyMovieClip(’sd’,2)
var cont:MovieClip = _root.ImageArea.Image.image.createEmptyMovieClip (”container”, _root.ImageArea.Image.image.getNextHighestDepth ());

var img_mc:MovieClip = cont.createEmptyMovieClip (”imageContainer”, cont.getNextHighestDepth ());
img_mc.loadMovie (imhpath);

var che:MovieClip = _root.createEmptyMovieClip (”chekker”, _root.getNextHighestDepth ());
che.onEnterFrame = function ()
{

if (img_mc._width > 2)
{
img_mc._x = -img_mc._width /2 ;
img_mc._y = -img_mc._height /2 ;

this.removeMovieClip ();

}
};

function rotae_btn()
{
rotate_mc.onRollOver = function()
{
rotate_mc.gotoAndStop(’over’)
}
rotate_mc.onRollOut = function()
{
rotate_mc.gotoAndStop(’normal’)
}
rotate_mc.onPress = function()
{
rotate_mc.gotoAndStop(’down’)
}
rotate_mc.onRelease = function()
{
trace(’Rotate the images’)
trace(_root.ImageArea.Image.image)
cont._rotation += 90;
img_mc._visible = true;
trace(’Rotate’)
cont._x = Stage.width /2 – cont._x/2
cont._y = Stage.height/2 – cont._y/2
}
}
}

rotatez()

Thanks & Regards

BHUVAN

Posted by: bhuvanvel | March 29, 2008

sending Mails

using System;

using System.Data;

using System.Configuration;

using System.Collections;

using System.Web;

using System.Web.Security;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts;

using System.Web.UI.HtmlControls;

using System.Web.Mail;

namespace emailexample

{

public partial class _Default : System.Web.UI.Page

{

#region Declaration

string eMailId;

#endregion

protected void Page_Load(object sender, EventArgs e)

{

}

protected void Button1_Click(object sender, EventArgs e)

{

eMailId = bhala.n@insoft.com;

MailMessage ObjMail = new MailMessage();

ObjMail.To = txtTofield.Text;

ObjMail.Cc = TextBox1.Text;

ObjMail.Bcc = TextBox2.Text;

ObjMail.From = eMailId.ToString();

ObjMail.Body = txtTextArea.Text.ToString();

ObjMail.BodyFormat = MailFormat.Html;

SmtpMail.SmtpServer = System.Configuration.ConfigurationSettings.AppSettings["SMTPServer"].ToString();

SmtpMail.Send(ObjMail);

Response.Write(“The Mail has been sent to: “);

Response.Write(ObjMail.To);

Response.Write(ObjMail.Cc);

Response.Write(ObjMail.Bcc);

}

}

}

Html

<%@ Page Language=”C#” AutoEventWireup=”true” CodeBehind=”Default.aspx.cs” Inherits=”emailexample._Default” %>

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd“>

<html xmlns=”http://www.w3.org/1999/xhtml >

<head runat=”server”>

<title>Untitled Page</title>

</head>

<body>

<form id=”form1″ runat=”server”>

<div>

<table border =”2″ >

<tr>

<td>

<%– <asp:TextBox ID=”txtTofield” runat=”server” Text=”bhala.n@insoft.com” ReadOnly=”true”></asp:TextBox>–%>

<asp:Label ID=”lblTo” runat =”server” >To</asp:Label>

</td>

<td>

<asp:TextBox ID=”txtTofield” runat=”server” ></asp:TextBox>

</td>

</tr>

<tr>

<td>

<asp:Label ID=”Label1″ runat =”server” >Cc</asp:Label>

</td>

<td>

<asp:TextBox ID=”TextBox1″ runat=”server” ></asp:TextBox>

</td>

</tr>

<tr>

<td>

<%– <asp:TextBox ID=”txtTofield” runat=”server” Text=”bhuvanvel@gmail.com” ReadOnly=”true”></asp:TextBox>–%>

<asp:Label ID=”Label2″ runat =”server” >Bcc</asp:Label>

</td>

<td>

<asp:TextBox ID=”TextBox2″ runat=”server” ></asp:TextBox>

</td>

</tr>

<tr>

<td>

<asp:TextBox ID=”txtTextArea” runat=”server” TextMode=”MultiLine” Height=”175px”

Width=”600px”></asp:TextBox>

</td>

</tr>

<tr>

<td>

<asp:Button ID=”Button1″ runat=”server”

Text=”Send” OnClick=”Button1_Click” />

</td>

</tr>

</table>

</div>

</form>

</body>

</html>

Webconfig

<appSettings>

<add key=SMTPServer value=mail.google.com></add>

<add key=From value=noreply@words-online.com></add>

</appSettings>

Posted by: bhuvanvel | March 29, 2008

Runtime Circle

Runtime Circle

Creating a method that can be used by all movieclips in a movie

As 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 circle

MovieClip.prototype.drawCircle = function (r, x, y) {

var TO_RADIANS:Number = Math.PI/180;

// begin circle at 0, 0 (its registration point) -- move it when done

this.moveTo(0, 0);

this.lineTo(r, 0);// draw 12 30-degree segments

// (could do more efficiently with 8 45-degree segments)

var a:Number = 0.268;  // tan(15)

for (var i=0; i < endx =" r*Math.cos((i+1)*30*TO_RADIANS);

endy =" r*Math.sin((i+1)*30*TO_RADIANS);

ax = endx + r * a *Math.cos(((i+1)*30-90)*TO_RADIANS);

ay = endy + r * a *Math.sin(((i+1)*30-90)*TO_RADIANS);

_x = x;

_y = y;

x=100;

y= 100;

To draw a shape with a part of it cut out, like a donut eg, simply put all  

the commands to draw both the initial object (big circle) and the

cutout (smaller circle) between the beginFill and endFill

statements. Here's how the donut on the left (ok, more like a bagel but still delicious)

was created:
// r1 = radius of outer circle

// r2 = radius of inner circle (cutout)

// x, y = center of donut

// This creates a donut shape (circle with a cutout circle)

MovieClip.prototype.drawDonut1 = function (r1, r2, x, y) {

var TO_RADIANS:Number = Math.PI/180;

this.moveTo(0, 0);

this.lineTo(r1, 0);// draw the 30-degree segments

var a:Number = 0.268;  // tan(15)

for (var i=0; i < endx =" r1*Math.cos((i+1)*30*TO_RADIANS);" endy =" r1*Math.sin((i+1)*30*TO_RADIANS);" ax =" endx+r1*a*Math.cos(((i+1)*30-90)*TO_RADIANS);" ay =" endy+r1*a*Math.sin(((i+1)*30-90)*TO_RADIANS);" i="0;" endx =" r2*Math.cos((i+1)*30*TO_RADIANS);" endy =" r2*Math.sin((i+1)*30*TO_RADIANS);" ax =" endx+r2*a*Math.cos(((i+1)*30-90)*TO_RADIANS);" ay =" endy+r2*a*Math.sin(((i+1)*30-90)*TO_RADIANS);" _x =" x;" _y =" y;" array =" [0," array =" [100," array =" [0," object =" {a:300,">  

Using a shape with a cutout as a mask

If a shape containing a cutout is to be used as a mask, as the donut on the right above, care must be taken to draw the cutout in the opposite direction from that in which the original shape was drawn. (If you don't, there will be no cutout in the mask). Here's the code for the donut mask on the right, in which a big circle is drawn in a clockwise direction and a smaller circle drawn in the opposite direction (all before the endFill is applied). pic is a movieclip containing the flower graphic.
// r1 = radius of outer circle

// r2 = radius of inner circle (cutout)

// x, y = center of donut

// This creates a donut shape that can be used as a mask

MovieClip.prototype.drawDonut2 = function (r1, r2, x, y) {

var TO_RADIANS:Number = Math.PI/180;

this.moveTo(0, 0);

this.lineTo(r1, 0);// draw the 30-degree segments

var a:Number = 0.268;  // tan(15)

for (var i=0; i < endx =" r1*Math.cos((i+1)*30*TO_RADIANS);" endy =" r1*Math.sin((i+1)*30*TO_RADIANS);" ax =" endx+r1*a*Math.cos(((i+1)*30-90)*TO_RADIANS);" ay =" endy+r1*a*Math.sin(((i+1)*30-90)*TO_RADIANS);" i="12;"> 0; i--) {

  var endx = r2*Math.cos((i-1)*30*TO_RADIANS);

  var endy = r2*Math.sin((i-1)*30*TO_RADIANS);

  var ax = endx+r2*(0-a)*Math.cos(((i-1)*30-90)*TO_RADIANS);

  var ay = endy+r2*(0-a)*Math.sin(((i-1)*30-90)*TO_RADIANS);

  this.curveTo(ax, ay, endx, endy);

}

this._x = x;

this._y = y;

}

createEmptyMovieClip("d2", 2);

d2.beginFill(0xaa0000, 60);

d2.drawDonut2(86, 36, 300, 94);

d2.endFill();

pic.setMask(d2);

courtesy :   Flash-Creation
Posted by: bhuvanvel | January 9, 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 screen

1: Movie Clip
2: 2 input textfiled for Blur x and Blur y
3: Update button

Let, before open

import the filters

import mx.transitions.Tween;
import flash.filters.BlurFilter;
import mx.transitions.easing.*;

After, apply the effect to the movie
on Enterframe event

Here, the complete Code…

import mx.transitions.Tween;
import flash.filters.BlurFilter;
import flash.filters.*;
import mx.transitions.easing.*;

function update()
{
updatebtn.onPress = function()
{
applyfilter()
var s = new Tween(_root.reflec,”_x”,null,0,350,5,true)
s.onMotionFinished = function()
{
s.yoyo()
}
}

}
update()

function applyfilter()
{
var blur_X = Number(_root.blurx.text)
var blur_Y = Number(_root.blury.text)
var quality = 3

var filter = new BlurFilter(blur_X,blur_Y,quality)
var filterarr = new Array()
filterarr[0] = filter
reflec.filter = filterarr

_root.onEnterFrame = function()
{
if(reflec.hitTest(_xmouse,_ymouse,true))
{
if(reflec.filters[0].blurX != 0)
{
blur_X -= 1;
blur_Y -= 1;

filter = new BlurFilter(blur_X, blur_Y, quality);
filterarr = new Array();
filterarr[0] = filter
reflec.filters = filterarr;
}
}
else
{
if(reflec.filters[0].blurX != 10)
{
blur_X += 1;
blur_Y += 1;

filter = new BlurFilter(blur_X, blur_Y, quality);
filterarr = new Array();
filterarr[0] = filter
reflec.filters = filterarr;
}
}
}
}

Have!, a gr8 effect…
Thanks….

Posted by: bhuvanvel | January 9, 2008

Dropshadow Filter

First ,
we have to import the flash filter
import flash.filters.DropShadowFilter;

Now create a runtime Movieclip as

let we create a box make a sixe of x and y as 50

here the code:

this.createEmptyMovieClip(’Box’,2)
with (Box)
{
beginFill(0×000000, 100);
moveTo(0, 0);
lineTo(100, 0);
lineTo(100, 100);
lineTo(0, 100);
lineTo(0, 0);
endFill();
}
Box._x = 50
Box._y = 100

and then

in that EnterFrame we have to give the value.. and call the variable
and make values as Dynamic text
Here the code as,

Box.onEnterFrame = function()
{

ds.quality++
Box.filters = [ds]
_root.reson.text = ‘ For Box : The Drop Shadow option Distance = 2, Angle = 45 degree , Color = 0×66FF33, Alpha = 1, Blur X = 5 Blur Y = 5 Strength = 2 , Qulaity = 3 Inner = false, Knock-out = false, HideObject = false’;

}

var ds = new DropShadowFilter (2,45,0×66FF33,0.8,5,5,2,3,false,false,false);

Have a joy with Filter….

Thanxs!….

Older Posts »

Categories