A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: CS4 - How to embed swf into swf

  1. #1
    Junior Member
    Join Date
    Feb 2006
    Posts
    23

    Question CS4 - How to embed swf into swf

    I am trying to take an intro swf and put it into a new fla file that has a background that with a designated space for the intro swf. however when I embed it, it shows all of the animations that occur off stage. How do i get it only to embed what is on the stage? Thanks in advance.

    Also if there is another solution that can place an swf movie on to a background so it stays in the right place no matter the resolution, that would be good, because when i try to line it up on my computer and check it on another screen resolution it is out of line.

  2. #2
    Member
    Join Date
    Nov 2005
    Posts
    35
    You may want to try loading it in...create an empty movie clip, place it on the stage where you want the upper left corner of your swf to be positioned...give it an instance name. Make sure the swf you are loading is in the same folder as your main.fla.

    Then load your external swf using this code if you're using as 2.0:

    loadMovie("externalswffilenamehere.swf", "emptymcInstanceNamehere");

    not sure what the correct syntax is in 3.0.

  3. #3
    Junior Member
    Join Date
    Feb 2006
    Posts
    23
    hey lotsamottsa,

    I have tried that method already, unfortunately here is the result:
    link1

    is there any other method i can use to attain the alignment with the backgorund im looking for?

  4. #4
    Member
    Join Date
    Nov 2005
    Posts
    35
    hmmmm try setting a mask layer for your empty_mc.

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