Problem importing .swf file into a .fla document

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Martin84
    New Member
    • Jun 2007
    • 11

    Problem importing .swf file into a .fla document

    Hi, im attempting to build a portfolio website in flash professional 8 and want to import an .swf file into the .fla document but I cant get it to work.

    I created white square then converted it into a movie clip (realisticface_ mc) and attached the following code (found in the flash help section):

    onClipEvent (enterFrame){
    loadMovie("C:\w amp\www\portfol io\materials\re alisticface.swf ", realisticface_m c);
    }

    I dont get any error messages with the code but the .swf file doesn't show up in the movie clip. I also tried deleting out the original white square in case this covered the .swf file up in any way but it still didn't work.

    Can someone please help me with this?

    Thanks in advance, Martin
  • Atran
    Contributor
    • May 2007
    • 319

    #2
    Originally posted by Martin84
    Hi, im attempting to build a portfolio website in flash professional 8 and want to import an .swf file into the .fla document but I cant get it to work.

    I created white square then converted it into a movie clip (realisticface_ mc) and attached the following code (found in the flash help section):

    onClipEvent (enterFrame){
    loadMovie("C:\w amp\www\portfol io\materials\re alisticface.swf ", realisticface_m c);
    }

    I dont get any error messages with the code but the .swf file doesn't show up in the movie clip. I also tried deleting out the original white square in case this covered the .swf file up in any way but it still didn't work.

    Can someone please help me with this?

    Thanks in advance, Martin
    Hello, try to use this code:
    Code:
    loadMovie("Name.swf", _root);
    Hope this help you.

    Comment

    • Atran
      Contributor
      • May 2007
      • 319

      #3
      Your code works well, I think your problem is in the movieclip:
      Every movieclip has a registartion point.
      So the loaded movie be set on the movieclip registartion point, I mean the loaded movie target (X = 0, Y=0) be start on the movieclip registartion point.
      Hope this help you.

      Comment

      • Martin84
        New Member
        • Jun 2007
        • 11

        #4
        Hi, I managed to get it to work using the MovieClipLoader command but the .swf background seems to be alphad out by default. Is there any way that I can get the background colour to show?

        Comment

        • coolsmoke
          New Member
          • May 2010
          • 1

          #5
          This is how I load my external .swf files, in exactly the same way as you, by creating an empty white movie clip and adding this action script to the frame loadMovie("movi ename.swf", image_mc);

          As for adding colour to the background of your imported .swf, simply add a new layer into the .swf you want to import, making sure the new layer is called bg (background), placing the layer under the work, then adding a coloured rectangle of your choice and set it to the dimentions of the work area, but I have found that in the new age of wide screen, some times the background colour has to be set at 900 width to fill the space on the screen.

          Comment

          Working...