A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Attachmovie diffrent library

  1. #1
    Senior Member
    Join Date
    Apr 2009
    Posts
    138

    Attachmovie diffrent library

    The attachmovie method places a movieclip (from the current SWF's library) on the stage in real time.

    Now what if I have Swf002 loaded within swf001 and i would like to "attachmovie" from swf001's library (export for actionscript) and loaded into swf002. Is this possible?

    Why I ask is because every swf file loaded into swf001 will want to use this moveiclip (names "sys_messeges") and I would rather not have a copy in each swf because I would like to keep file size down. (It might be easy to just draw this gfx via actionscript but I do not have experience with this and would rather be able to load a movieclip from the main level (I think _level0) and use it in all my swfs loaded into the main swf.

    Any suggestions.

  2. #2
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,223
    Are you using AS1 or AS3?

  3. #3
    Senior Member
    Join Date
    Apr 2009
    Posts
    138
    as2

  4. #4
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,223
    I think the AS1/2 had some sort of shared library, like explained here:
    http://www.flashkit.com/tutorials/Ti...1000/index.php

  5. #5
    Senior Member
    Join Date
    Apr 2009
    Posts
    138
    ok. Thank you Tonypa, this link is very informative!

Tags for this Thread

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