A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: FLASH 8: Unable to set alignment?

  1. #1
    Junior Member
    Join Date
    Jul 2008
    Posts
    1

    Question FLASH 8: Unable to set alignment?

    actually i wanna to load some jpeg images from external path, using

    Code:
    myinstance.loadMovie("image1.jpg");
    its working file; but the problem is that; the loaded image is not in center or not well aligned;

    CAN any one help me here to findout how to set alignment after loading a external swf, or image.

    Thanks in Advance.


  2. #2
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    The image is going to load at 0, 0 (typically top left corner) of your movie. Rather than setting the alignment, you change the x and y of the object it's loaded into. Something like:

    Code:
    myinstance._x=100;
    myinstance._y=100;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center