111 posts
  • Has been part of the Envato Community for over 5 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 :)

8357 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

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by