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 905855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:17:26+00:00 2026-05-15T16:17:26+00:00

I´m having troubble positioning an externally loaded swf. It simply does not respond to

  • 0

I´m having troubble positioning an externally loaded swf. It simply does not respond to any settings of its x and y values.

The swf I´m loading is a pure as3 project created in FlashDevelop where the main class extends sprite. I´ve even tried modifying the x and y values afterwards using MonsterDebugger but with no luck.

The swf is loaded into a container on the right side of the stage but always end up at the top left corner. The loading is straight forward:

public var targetContainer:Sprite;
public function load(path:string):void {

    loader = new Loader();
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, successHandler);

    var movie:MovieClip = new MovieClip();
    movie.addChild(loader);
    targetContainer.addChild(movie);

    loader.load(new UrlRequest(pathToSwf));
}
private function successHandler(e:Event):void {    
    //this does nothing for the one file, but affect any other swf i load
    e.target.content.x = 300;
}

I don´t have this problem for other swf-files so I´m guessing it has to do with some code issue in my specific as3 project, I just can´t figure out what???

Thankful for any and every suggestion!

  • 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-05-15T16:17:27+00:00Added an answer on May 15, 2026 at 4:17 pm

    Once again I had the same problem… conflicting packages and class names… it´d be a great thing If one were warned by such things, but from now on I´ll have long and unrecognizable names that really do tell who they are 😉

    Strange thing though that it got the entire loaded swf to, firstly, sit in the top left corner, and , secondly, that it was not possible to change the position even via MonsterDebugger “in game”…

    Newb, it´s really in the air!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having trouble finding the first character of Field42 inside xpath, see below. Any suggestions?
Having trouble with this..I'm sure I'm missing something simple but I simply want the
I'm learning CSS and am having trouble getting my #wrapper DIV to expand to
having trouble with a double component uipicker, everything shows up and it fills with
Having trouble inheriting from a template class. Looks something like this: template<typename type> class
Im having trouble trying to figure out some code someone has suggested and was
Im having trouble unsetting a key within an array using prototype (though this is
I've got three div's I'm working with: main , which is a container for
I am trying to get some AdWhirl ads to work with my app, but
I have a <div> that displays a graph inside. Sometimes this graph gets too

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.