Dynamic Change MovieClip’s Fill Color Class

package
{
    /** import filters **/
    import flash.geom.ColorTransform;

    /** import diplay **/
    import flash.display.DisplayObject;

    public class ObjectColor
    {
        /** change the fill color of the display object **/
        public static function Color($object:DisplayObject, $color:Number):void
        {
             var $newColor:ColorTransform     = new ColorTransform();
             $newColor.color		          = $color;
             $object.transform.colorTransform = $newColor;
        }
    }
}

Object Glow Filter Class

package
{
    /** import filters **/
    import flash.filters.GlowFilter;

    /** import diplay **/
    import flash.display.DisplayObject;

    public class ObjectGlow
    {
        /** add glow to the display object **/
        public static function Glow($object:DisplayObject, $color:Number, $alpha:Number, $blurX:Number, $blurY:Number, $strength:Number, $quality:int, $inner:Boolean = false, $knockout:Boolean = false):void
        {
             var $filter:GlowFilter = new GlowFilter($color, $alpha, $blurX, $blurY, $strength, $quality, $inner, $knockout);
             $object.filters 	    = [$filter];
        }
    }
}

Managing Your MouseEvents For Performance

Using MouseEvents in your projects is an inevitable thing. In very basic projects it’s not that important ( but it’s a good practice ) to manage your MouseEvents. You don’t want to have events that are active without being used. In medium / big projects should be a priority. Imagine you have many buttons or containers each having at last one event. Some buttons/ containers are not even displayed to the user until later. So why to have extra events active ? Let me give you an example: we have a button with mouse over effects and a click action.

_btn.addEventListener(MouseEvent.MOUSE_OVER,  BtnMouseEvents, false, 0, true);
_btn.addEventListener(MouseEvent.MOUSE_OUT,  BtnMouseEvents, false, 0, true);
_btn.addEventListener(MouseEvent.CLICK,       BtnMouseEvents, false, 0, true);

function BtnMouseEvents($e:MouseEvents):void
{
     switch($e.type)
     {
          case ”mouseOver”  : break;
          case ”mouseOut”   : break;
          case ”click”      : break;
     }
}

Wow,  three events for a button that it’s most likely that a user will not use. So what can we do to optimeze this situation ? Well … all we need is a single MouseEvent ( in this situation ).

_btn.addEventListener(MouseEvent.MOUSE_OVER, BtnMouseEvents, false, 0, true);

function BtnMouseEvents($e:MouseEvents):void
{
     switch($e.type)
     {
        case ”mouseOver” :
               _btn.removeEventListener(MouseEvent.MOUSE_OVER, BtnMouseEvents);
               _btn.addEventListener(MouseEvent.MOUSE_OUT,       BtnMouseEvents, false, 0, true);
               _btn.addEventListener(MouseEvent.CLICK,      BtnMouseEvents, false, 0, true);
               // actions
               break;

       case ”mouseOut”   :
              _btn.removeEventListener(MouseEvent.MOUSE_OUT,  BtnMouseEvents);
              _btn.addEventListener(MouseEvent.CLICK,             BtnMouseEvents, false, 0, true);
             _btn.addEventListener(MouseEvent.MOUSE_OVER,    BtnMouseEvents, false, 0, true);
              //actions
              break;

      case ”click”           : break;
   }
}

This was just an example. As you can see you only have one MouseEvent active all the time and two other when the button is used. It’s better than having three events running and not being used.

Resizable XML Image Gallery / Products Showcase / Banner Rotator

Resizable XML Image Gallery / Products Showcase / Banner Rotator

Resizable XML Image Gallery / Products Showcase / Banner Rotator

Resizable XML Image Gallery / Products Showcase / Banner Rotator

Resizable XML Image Gallery / Products Showcase / Banner Rotator

Resizable XML Image Gallery / Products Showcase / Banner Rotator

Resizable XML Image Gallery / Products Showcase / Banner Rotator

Dynamic resizable XML based sliding Image Gallery / Products Showcase / Banner Rotator.
No Flash Knowledge required.

Features:

– Fully customizable XML driven content
– Customizable width / height
– Unlimited number of images (jpg, gif, png) / animated external swf support
– Slide delay adjustable from the XML file (in seconds)
– Nice 30 text transitions
– Nice 9 image transitions
– URL link within the description text
– Display the items random or normal
– Change the colors for buttons & other graphics elements
– Description / title text with HTML formating
– Optionally set the XML settings file path in HTML using FlashVars
– Pan effect ( optional )
– Ambiental music equalizer ( optional )
– Menu with thumbs & arrows ( optional )
– Play /Pause button for autoslider ( optional )

————————————————————–

See the component in action here

You can buy it at full price from that site
or
message me at cilibiu_dragos@yahoo.com for a half of it’s price

Flv / Streaming Video Player with Video Ads

Flv / Streaming Video Player with Video Ads

Flv / Streaming Video Player with Video Ads

This video player is perfect for you if you’re looking to display high quality videos on your website.

This component can be embedded in a HTML file. It can play all video formats that Flash Player can play & streaming.

The video player is resizable to your specified size.

Key features:

– XML driven content making it easy to customize, update and maintain
– Supports all video formats that Flash Player can play & Streaming
– DoubleClick In-Stream Ads by Google support ( optional )
– Dim lights in browser effect( optional – see the full screen sample )
– Captions/subtitles support ( xml, srt, sub )
– Full description of the videos that supports external link.
– Flashvars support
– Resizable with correct aspect ratio
– Full screen mode supported
– Autohide for buttons when mouse is not over the video player
– Commented code & cool design

XML settings you can change:

– the color of the graphical elements
– the text formatting
– the dim light button option
– the ads details

————————————————————–

See the component in action here

You can buy it at full price from that site
or
message me at cilibiu_dragos@yahoo.com for a half of it’s price

 

Flv / Streaming Video Player with Dynamic Playlist and Video Ads

Flv / Streaming Video Player with Dynamic Playlist and Video Ads

Flv / Streaming Video Player with Dynamic Playlist and Video Ads

This video player is perfect for you if you’re looking to display high quality videos on your website. This component has a dynamic playlist that can be hidden by a click of a button.

This component can be embedded in a HTML file. It can play all video formats that Flash Player can play & streaming.

The video player is resizable to your specified size.

Key features:

XML driven content making it easy to customize, update and maintain
Supports all video formats that Flash Player can play & Streaming
Preview video in thumbs when mouse is over ( optional )
DoubleClick In-Stream Ads by Google support ( optional )
Dim lights in browser effect( optional – see the full screen sample )
Captions/subtitles support ( xml, srt, sub )
– Full description of the videos that supports external link.
Flashvars support ( for XML location & start image )
– Resizable with correct aspect ratio
– Full screen mode supported
– Autohide for buttons when mouse is not over the video player
– Commented code & cool design

XML settings you can change:

– the color of the graphical elements
– the text formatting
– the thumb preview option
– the dim light button option
– the ads details
– the playlist.

——————————————————————————————–

See the component in action here

You can buy it at full price from that site
or
message me at cilibiu_dragos@yahoo.com for a half of it’s price

XML Products Showcase Slider

See the component in action here 

You can buy it at full price from that site 
or 
message me at cilibiu_dragos@yahoo.com for a half of it's price


XML Products Showcase Slider

An elegant XML products slider fully customizable through XML. No flash knowledge required. Easy to implement it in your website.

Features:
XML driven content making it easy to customize, update and maintain
– supports any number of items
images and animated Flash swf files
– optional resizing magnifying glass
– manual sliding ( mouse down on buttons ) or slideshow ( slideshow button )
– optional ambient music
– optional reflection on elements
– cool design
– commented code