A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: loading external swfs from an external swf

  1. #1
    Senior Member
    Join Date
    May 2005
    Location
    Canada
    Posts
    212

    loading external swfs from an external swf

    im building a site that uses a simple AS to load "contact us.swf" into the main movie. my question is how can i code it that from "contact us.swf i can load another external swf such as "form.swf"? i cant get it to load the form heres the code im using
    from the mainmovie
    on (release) {
    _root.contents.loadMovie("contact us.swf");
    in the contact movie
    _root.contents.loadMovie("formswf");

    any suggestions?

  2. #2
    Registered User Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    Other than the typo, what your trying to do is to load another swf into where the first one is, from the first one. should work, but not this way;

    _root.contents.loadMovie("formswf");

    Should be;

    _root.contents.loadMovie("form.swf");

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