Hello,
I'm new to flex, i'm used to flash (CS5 & as3)
I'm trying to load a picture in my swf file to add a DisplacementMapFilter then.
But i'm just cant load that picture.
package
{
import flash.display.*;
import flash.events.*;
import flash.net.URLRequest;
public class pano2 extends Sprite
{
public var loader_photo:Loader=new Loader();
public function pano2()
{
loader_photo.contentLoaderInfo.addEventListener(Event.COMPLETE,affichage_photo);
loader_photo.load(new URLRequest('cheval.jpg'));
addChild(loader_photo);
}
public function affichage_photo(ev:Event):void
{
}
}
}