111 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Sold between 1 000 and 5 000 dollars
  • Taiwan
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 :)

8186 posts Community Moderator
  • Attended a Community Meetup
  • Community Moderator
  • Has been a member for 6-7 years
  • United Kingdom
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
  • Contributed a Blog Post
  • Beta Tester
  • Bought between 50 and 99 items
+4 more
MSFX Volunteer 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
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 10 and 49 users
  • Sold between 5 000 and 10 000 dollars
  • United States
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