Copy link to clipboard
Copied
Hi
Using flash builder am working on my project. Its working on locally... once i moved to server its not working here the my code.
public var loader:UILoader;
public var imgUrl:String;
public var loadBool:Boolean;
public function UrlImage(imgUrl:String, width, height)
{
loader = new UILoader();
this.imgUrl = imgUrl;
loader.width = width;
loader.height = height;
loader.scaleContent = true;
loader.autoLoad = true;
loader.source = imgUrl;
this.addChild(loader);
loader.addEventListener(Event.COMPLETE, completeHandler);
}
public function completeHandler(e:Event):void
{
Bitmap(loader.content).smoothing = true;
}
Thanks in advance
Chandu
Copy link to clipboard
Copied
post a link to your online swf-embedding html.
Copy link to clipboard
Copied
function showFlash(swf_name, width, height, id, fVars)
{
var str = '<embed src="'+swf_name+'" id="'+id+'" name="'+id+'" FlashVars="'+fVars+'" quality="high" scale="exactfit" width="'+width+'" height="'+height+'" align="middle" allowfullscreen="true" allowscriptaccess="always" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/> ';
document.write(str);
}
Copy link to clipboard
Copied
i'm not sure what you're demonstrating with that code other than incomplete swf embed code.
use the html code published by flash. upload that html and your swf and post a link to that html file if you still have a problem after using proper embedding code.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now