Archive for March, 2010

Download Videos From Youtube.com – The final working version 2010

Posted in PHP on March 29th, 2010 by admin – Comments Off

Here is a great article how you can download videos from youtube with the new secure changes that they added:

Download Videos From Youtube.com – The final working version 2010

Flex Drag and Drop with dynamic image

Posted in actionscript 3, flex 3 on March 15th, 2010 by admin – Comments Off

Hey I was searching in internet how to do a drag that create a exact copy of the image without loading it. All the examples were with Embed images so i needed some example that Image load bitmap and then do drag without having to load bitmap twice. So take a look:

1
2
3
4
5
6
7
8
9
10
11
// fire from MouseEvent.MOUSE_DOWN event
private function doDrag(e:MouseEvent):void {
    var dragInitiator:Image = e.currentTarget as Image;
    var dragSource:DragSource = new DragSource();
    dragSource.addData(_core, "core");
   
    var dragProxy:Image = new Image ();
    dragProxy.source = new Bitmap((dragInitiator.content as Bitmap).bitmapData);
   
    DragManager.doDrag(dragInitiator, dragSource, e, dragProxy);
}

Spinets used:
Simple Flex Drag and Drop