2 Replies - 4168 Views - Last Post: 10 February 2014 - 02:42 AM

#1 Aurian  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 28-November 13

Import external SWF to FLA file and align it in as3

Posted 07 February 2014 - 03:49 AM

I have a project FLA and i am trying to import to stage one external SWF. The code that i am using to import SWF is:

var request:URLRequest = new URLRequest("myswf.swf");

var loader:Loader = new Loader();

loader.load(request);

addChild(loader);


When i import it, the SWF isn't align. Is there any code compatible with my code, to center it?

Thanks in advance.
Is This A Good Question/Topic? 0
  • +

Replies To: Import external SWF to FLA file and align it in as3

#2 ArtificialSoldier  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 438
  • View blog
  • Posts: 1,594
  • Joined: 15-January 14

Re: Import external SWF to FLA file and align it in as3

Posted 07 February 2014 - 09:35 AM

You can set the _x and _y properties of the MovieClip to put it where you want.
Was This Post Helpful? 1
  • +
  • -

#3 Aurian  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 28-November 13

Re: Import external SWF to FLA file and align it in as3

Posted 10 February 2014 - 02:42 AM

That did it, thanks alot :D

Sorry 4 late reply
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1