CSS Blog

http://thecssblog.com/

Tool Tips – Jquery

Tooltips on website are small things which can play a big role in website design. If a tooltip on your website is very well made and looks amazing then it can lift up visitors impression about your website. And that’s why here comes jQuery to help with its well made tooltips. And remember that all those small website design things make your website look better.

http://www.1stwebdesigner.com/resources/stylish-jquery-tooltip-plugins-webdesign/

Design patterns

http://patterntap.com/tap/collection/34/2

Happy Pongal

Happy Pongal Wishes to ALL

Jobs-Ephron

Embedding the Specify font in Flash

1.Go to the Library and right click or choose the New Font,pop will appear on clicking the new font in this popup we can choose which font to embedding into flash give the size of the font,click the linkage Export for AS,Export in frame1 and finaly give the Identifier name for choosing font.For example give the Identifier name as myfont

2. Goto the actionscript panel paste the following codes.,
style = new Textformat();
style.font =”myfont”;

// create the dynamic text field and give the instance name for the text field,

For example we give the textfield instance name as txt

txt.setTextFormat(style);
txt.embedFonts=true;

3. Finally we go Timeline choose the dynamic textfield,go to the properties panel & click the Character Embedding,one pop will come in there we choose the UpperCase[A..Z] & LowerCase[a..z] click ok

4.Test the movie in various system,font will be embed into flash.

Free Font

http://findmyfonts.com

Video Creating Using NetStream

Three Classes to control video with actionscripts.

  1. Net Connection
  2. Netstream
  3. Video

Type of cuepoints

1.Navigation
2.Event
3. Frame accurate
var nc:NetConnection = new NetConnection();
nc.connect(null);

var ns:NetStream = new NetStream(nc);
ns.client= this;
ns.play(“1254014.flv”);

function onMetaData(info:Object):void
{
trace(“Receving…”);
}

var vid:Video = new Video();
vid.attachNetStream(ns);
addChild(vid);
vid.x=10;
vid.y=10;

play_btn.addEventListener(MouseEvent.CLICK,playHandler);
stop_btn.addEventListener(MouseEvent.CLICK,stopHandler);
pause_btn.addEventListener(MouseEvent.CLICK,pauseHandler);

function playHandler(e:MouseEvent):void
{
ns.resume();
}

function stopHandler(e:MouseEvent):void
{
ns.pause();
ns.seek(0);
}

function pauseHandler(e:MouseEvent):void
{
ns.pause();
}

VidepPlayer Creating Using Flash AS3

1.Create new fla file in flash using as3.0
2.Create the following buttons and give the instance name as per list

Play btn->play_btn
Stop button ->stop_btn
Pause button ->pause_btn

3.Create the volume bar for the custom video player (in inner movieclop the the volume slider bar instance name as slider) & over all volume bar to give the instance name as  vbar_mc

4. Using the import the FLVPlayback,we can import the player in runtime & load the movie using the following codes.

5.In slider bar we use the startDrag,stopDrag option for get the volume value.using the Rectangel values (first value is x, y valuse,width,height) in Darg option to set the volume values.

=================

import fl.video.FLVPlayback;

var flvplay = new FLVPlayback();
flvplay.source = “1254014.flv”;
addChild(flvplay);

flvplay.x =60;
flvplay.y= 0;
flvplay.width = 330;
flvplay.height = 330;

flvplay.volume =0;
//flvseekbar = SeekBar;
flvplay.seekBar =flvseekbar;
flvplay.bufferingBar = flbbuff;

play_btn.addEventListener(MouseEvent.CLICK,playhandler);
pause_btn.addEventListener(MouseEvent.CLICK,pausehandler);
stop_btn.addEventListener(MouseEvent.CLICK,stophandler);

function playhandler(e:MouseEvent):void
{
flvplay.play();
}

function pausehandler(e:MouseEvent):void
{
flvplay.pause();
}

function stophandler(e:MouseEvent):void
{
flvplay.stop();
flvplay.seek(0);
}

this.vbar_mc.slider.addEventListener(MouseEvent.MOUSE_DOWN,vdown);

function vdown(e:MouseEvent):void
{
vbar_mc.slider.startDrag(false,new Rectangle(0,12,50,0));

addEventListener(Event.ENTER_FRAME,vohandler);
stage.addEventListener(MouseEvent.MOUSE_UP,vrelease);

}
function vrelease(e:MouseEvent):void
{
this.vbar_mc.slider.stopDrag();
removeEventListener(Event.ENTER_FRAME,vohandler);

}

function vohandler(e:Event):void
{
flvplay.volume = vbar_mc.slider.x*2/100;
}