How to embed flash ad in flash file

Discussion in 'The Flash Ad Creator' started by homesight, Nov 20, 2006.

  1. homesight <img src="images/ranks/mod.png" />

    Message Count:
    514
    Trophy Points:
    0
    Ok, I need a flash guru here to help me embed my flash ad into a flash file.

    Thanks,
    Ryan
     
  2. Syrus XL

    Message Count:
    35
    Trophy Points:
    0
    This is quite easy to accomplish.

    First create a new mc (movie clip) make sure the registration point is top-left.

    example: box1

    Now give this mc an instance name of box1

    So now you should have on your stage a mc with a instance name of box1.

    Open your Actionscript Panel and enter the following:

    Code:
    loadMovie("my_ad.swf", box1);
    This is assuming your ad is named my_ad.swf - try not to use spaces in file names when using flash. Now if you run it, you should find it will pull your ad into the new swf in Flash.

    Obviously, you can add effects, and more imports and just alter the instance name each time. Note: You will need both the .fla of your new file and your ad file in the same folder for the above code to work, unless you change the path.
    Have fun!:D
     

Share This Page