A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: How do I load a swf???

  1. #1
    Just trying to get by...
    Join Date
    Apr 2001
    Posts
    112

    How do I load a swf???

    I am curious...

    I have seen several methods for loading an outside swf file into an already existing swf...
    Kinda like frames in HTML....

    Whats the best way to do this and what is the simplest way.

    If any responses could please include the actionscript.... I am completely lost here.

    Z

  2. #2
    Senior Member vladdddd's Avatar
    Join Date
    Aug 2004
    Location
    in space
    Posts
    352
    - inside the main swf

    use actions

    for a btn: on(release){loadMovie("yourmovie.swf","mcholder"); }
    for frames: loadMovie("yourmovie.swf","mcholder");

    and build a mc holder - an empty mc, square, same size as yourmovie.swf

    tha mc holder must be instance named mcholder (or what ever it is that u whant as long as it is the same as in the act)

  3. #3
    Just trying to get by...
    Join Date
    Apr 2001
    Posts
    112
    Thanks....

    Are those commands in the actions menu?

    Also, if i use a movie in one frame can i use that to load the new movie in another frame or should i just do the whole thing inside one main movie....
    Both scenarios would work but which would be more "dial-up" friendly?

    z

  4. #4
    Senior Member vladdddd's Avatar
    Join Date
    Aug 2004
    Location
    in space
    Posts
    352
    if they are in different mcs but on the same timeline use

    on(release){loadMovie{"jabfr.swf","_parent.yourmc. mcholder");}

    no method is dial-up friendlyer as long as we talk about the same swf being loaded

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