Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8728751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:42:32+00:00 2026-06-13T08:42:32+00:00

I need to load images within my Flash project I don’t want to use

  • 0

I need to load images within my Flash project
I don’t want to use the Loader class cause the images are from a different domain.

I load images with a TextField
Here is my code:

var ti:TextField = new TextField();
ti.border=1
ti.htmlText += " <img id='movieInTxt' align='center' src='"+pic+"' />";
allMC[counter].img.addChild(ti);

I am loading the images to movieClip in a shape of a box.
I want to position the image in the center.
How can I make it ?

I tried ti.autoSize = TextFieldAutoSize.CENTER but it doesn’t work…

Any suggestions how to load an image and position it in the center ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:42:33+00:00Added an answer on June 13, 2026 at 8:42 am

    You can use <p align='center'><img /></p> I guess.

    You can totally use a Loader on domain you don’t own since you don’t access any advanced properties on the image (like pixel-level manipulations). You can then access the size of the image, and center it in your container.

    AS3 doc says :

    You can load content from any accessible source.

    If the loaded content is an image, its data cannot be accessed by a SWF file outside of the security sandbox, unless the domain of that SWF file was included in a cross-domain policy file at the origin domain of the image.

    You can force flashplayer to not check crossdomain.xml file by passing false in the LoaderContext constructor :

    myLoader.load(urlReq, new LoaderContext(false));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

for my app I need to load some content from my webservice. I want
I need to dynamically load banner images into a HTML5 app and would like
I need to find/create a library that can load hdr images in many formats
In my Silverlight application, I load all the images I need at application start
I need to know how to load a external image e.g. http://www.google.co.za/intl/en_com/images/logo_plain.png into a
I need to load an image from a web in a simple Java stand
I need to load a custom function from an extern file but without causing
When i try to serve up images from within my blog the template is
I need to change my background div with some other images. I want that
I'm creating an iPhone game and I need to load an image from a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.