111 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $1,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
savorks says

hmm maybe post how you setup loader/listeners let’s see if anything may cause problem ?

anyway here is my standard load picture script, maybe you can check any help ?

var context:LoaderContext    = new LoaderContext();
context.applicationDomain    = ApplicationDomain.currentDomain;
context.checkPolicyFile        = true;

var url:String = 'http://i0006.photobucket.com/albums/0006/findstuff22/Best%20Images/Cars/audi1.jpg';
var urlRequest:URLRequest = new URLRequest(url);
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
loader.load(urlRequest, context);

function loadComplete(evt:Event):void
{
    var bitmap:Bitmap = Bitmap(evt.currentTarget.content);
    addChild(bitmap);
    bitmap.width = 50;
    bitmap.height = 50;
}

no need the context part if not planning to crossdomain load anyway :)

8271 posts Community Moderator
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Attended one of our Meetups around the world
+9 more
MSFX Moderator says

I know you can’t access the pixels if its from another domain but I thought you were able to at least resize it…

186 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+4 more
scottrockers says

Savorks,

Thanks for all the help, I will take a look into this and test it and see what I come up with. Thanks MSFX for the help too.

This is a perfect example of why this community is so awesome, thanks guys.

Scott

by
by
by
by
by
by