A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Aligning A Loaded Movie

  1. #1
    Junior Member
    Join Date
    Mar 2005
    Posts
    3

    Aligning A Loaded Movie

    Maybe somebody can help me, I need to change the position and depth of a swf movie that I have loaded into the main swf file. At the moment it plays on the top layer in the corner, and I can´t find any controls which refer to the positioning of a loaded swf.
    If anyone has any bright ideas, or other ways of acheiving the same result, I´d love to know.
    Hoe

  2. #2
    undead creature necromanthus's Avatar
    Join Date
    Feb 2002
    Location
    ROM
    Posts
    1,890
    Create a rectangle (same size with the loaded SWF).
    Convert it to movieclip and rename it holder.
    Important note: the center of this movieclip must be the left upper corner !
    Set the desired position and depth (see "Views / List of Shapes)") for this movieclip.
    Set this script for the main timeline (the ROOT):
    holder.loadMovie("whatever.swf");
    stop();


    that's all

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