A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: .swf embedding???

  1. #1
    Senior Member gizmodyer's Avatar
    Join Date
    Dec 2000
    Posts
    148
    What is the (oh, hello by the way) benefit of having an .swf file nested within another one? How is it done? I've seen some .swf's in my temporary internet directory where one .swf is the same size as the main .swf, but there is no content, except for music on a loop, or just one menu. Why not just put the music or menu in the main body of the main .swf?

    Cheers M'dears

    Chris.

  2. #2
    Challenge the Conventional
    Join Date
    Jun 2000
    Posts
    775
    The main benifit is you dont have to load another HTML page, and thus have to re-fresh the whole browser window

  3. #3
    Senior Member gizmodyer's Avatar
    Join Date
    Dec 2000
    Posts
    148

    Cheers, but...

    Thanks 4 your reply, but how is it done? I cannot find anything in the forum search.

  4. #4
    Challenge the Conventional
    Join Date
    Jun 2000
    Posts
    775
    you use the loadMovie command

    ie.

    loadMovie ("externalFile.swf", 99);

    where 99 is the level you want to target. Use any number other than 0.

    This way you then then control this, and any othe r number of .swf's from and level.

    ie. you could have a button in you main movie that pauses/plays you external file in level 99

    good luck with it all ...


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