Wednesday, March 17, 2010

Stanford Coding

http://www.youtube.com/watch?v=Ps8jOj7diA0&feature=channel

--
"You see things; and you say 'Why?';
But I dream things that never were;
and I say 'Why not?' "- George Bernard Shaw
-----------------------------------------------------
Best Regards
Pavan Kumar N,
Project Engineer (HBCG),
C-DAC's R&D, Pune-411007
Mob: 9595714186
http://twitter.com/simplypavi

Converting Flash to Silverlight

http://www.silverx.net/

  • Free for personal use.
  • Supports Flash 5 to 10
  • Good for Presentations, Graphics and images

Wednesday, March 10, 2010

the shark tank - episodes

http://inthesharktank.com/


David Croslin patents

http://www.davidcroslin.com/main/page_patents.html


US patents

http://patft.uspto.gov/

--
"You see things; and you say 'Why?';
But I dream things that never were;
and I say 'Why not?' "- George Bernard Shaw
-----------------------------------------------------
Best Regards
Pavan Kumar N,
Project Engineer (HBCG),
C-DAC's R&D, Pune-411007
Mob: 9595714186
http://twitter.com/simplypavi

some programmers

http://www.novogeek.com/page/About-Kris.aspx




Projects CMU


http://www.etc.cmu.edu/projects/archive.php

Randy Pausch - The last Talk

http://www.cs.virginia.edu/~robins/Randy/

Tuesday, March 9, 2010

Ruby in 6 hrs

http://fedena.com/community/discussion/4/ruby-on-rails-in-6-hours/#Item_0

--
"You see things; and you say 'Why?';
But I dream things that never were;
and I say 'Why not?' "- George Bernard Shaw
-----------------------------------------------------
Best Regards
Pavan Kumar N,
Project Engineer (HBCG),
C-DAC's R&D, Pune-411007
Mob: 9595714186
http://twitter.com/simplypavi

Monday, March 8, 2010

Flash Slide Show with XML

reference: http://www.republicofcode.com/tutorials/flash/slideshow/index.php


AS2 code:

var myShowXML = new XML();
myShowXML.ignoreWhite = true;
myShowXML.load("banners.xml");
import mx.transitions.Tween;
import mx.transitions.easing.*;
import flash.display.MovieClip;
import flash.events.MouseEvent;

_global.slide=true;

var my_fmt:TextFormat = new TextFormat();

myShowXML.onLoad = function() {
_root.myWidth = myShowXML.firstChild.attributes.width;
_root.myHeight = myShowXML.firstChild.attributes.height;
_root.mySpeed = myShowXML.firstChild.attributes.speed;
_root.my_fmt.font = myShowXML.firstChild.attributes.font;
_root.my_fmt.size = myShowXML.firstChild.attributes.fontSize;
_root.my_fmt.bold = myShowXML.firstChild.attributes.bold;
_root.myImages = myShowXML.firstChild.childNodes;
_root.myImagesNo = myImages.length;
createContainer();
callImages();
};

function createContainer() {
_root.createEmptyMovieClip("myContainer_mc",_root.getNextHighestDepth());
myContainer_mc.lineStyle(1,0x000000,100);
myContainer_mc.lineTo(_root.myWidth,0);
myContainer_mc.lineTo(_root.myWidth,_root.myHeight);
myContainer_mc.lineTo(0,_root.myHeight);
myContainer_mc.lineTo(0,0);
myContainer_mc._x = (Stage.width-myContainer_mc._width)/2;
myContainer_mc._y = (Stage.height-myContainer_mc._height)/2;
_root.btn_mc.swapDepths(myContainer_mc);

}

function callImages() {
_root.myMCL = new MovieClipLoader();
_root.myPreloader = new Object();
_root.myMCL.addListener(_root.myPreloader);

_root.myClips_array = [];

_root.myPreloader.onLoadStart = function(target) {
_root.createTextField("myText_txt",_root.getNextHighestDepth(),0,0,150,20);
_root.myText_txt.setNewTextFormat(my_fmt);
_root.myText_txt.autoSize = TextFieldAutoSize.LEFT
_root.myText_txt.antiAliasType = AntiAliasType.ADVANCED;
_root.myText_txt._x = (Stage.width-_root.myText_txt._width);
_root.myText_txt._y = (Stage.height-_root.myText_txt._height);

//_root.myText_txt.backgroundColor=(0xF9FFFC); //not working

};
_root.myPreloader.onLoadProgress = function(target){
_root.myText_txt.text = "Loading.. "+_root.myClips_array.length+"/"+_root.myImagesNo+" Completed";
}
_root.myPreloader.onLoadComplete = function(target) {
_root.myClips_array.push(target);
target._alpha=0;
target.onPress=function(){
}

if (_root.myClips_array.length == _root.myImagesNo) {
moveSlide(true);
myShowInt = setInterval(moveSlide, (_root.mySpeed*1000)+1000);
}
}
for (i=0; i<_root.myImagesNo; i++) { temp_url = _root.myImages[i].attributes.url; temp_mc = myContainer_mc.createEmptyMovieClip(i, myContainer_mc.getNextHighestDepth()); temp_src = _root.myImages[i].attributes.src; _root.myMCL.loadClip(temp_url,temp_mc,temp_src); } } var bool=false; function moveSlide(bool){ if(_global.slide==true){ current_mc = _root.myClips_array[_root.target_mc]; myContainer_mc.onPress=function(){ getURL(_root.myImages[target_mc].attributes.src, "_blank"); } new Tween(current_mc, "_alpha", Strong.easeOut, 100, 0, 1, true); current_mc._alpha=100; if(bool==true or bool==undefined){ _root.target_mc++; }else{ bool=true; _root.target_mc--; } if (_root.target_mc >= _root.myImagesNo){
_root.target_mc = 0;
}
if (_root.target_mc < 0){ _root.target_mc = (_root.myImagesNo-1); } next_mc = _root.myClips_array[_root.target_mc]; _root.myText_txt.text = _root.myImages[target_mc].attributes.title; new Tween(next_mc, "_alpha", Strong.easeOut, 0, 100, 1, true); next_mc._alpha=0; } } function backSlide(bool){ _global.slide=true; _root.btn_mc.pauseClip.gotoAndStop(1); moveSlide(bool); } function fnPause(){ if(_global.slide==true){ _global.slide=false; _root.btn_mc.pauseClip.gotoAndStop(2); }else if(_global.slide==false){ _global.slide=true; _root.btn_mc.pauseClip.gotoAndStop(1); } }



XML Code:(banner.xml)