Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Mar 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile How to import swf into another swf?

    I want to import a small.swf into main.swf.

    I tried this code:
    Code:
    onClipEvent (load){
    _root.loadMovie("small.swf");
    }
    it show only my small.swf but outside the mainpage, this is not I want.

    I also tried this:
    Code:
    var myLoader:Loader = new Loader();
    addChild(myLoader);
    var url:URLRequest = new URLRequest("small.swf");
    myLoader.load(url);
    can see the mainpage, but can't load "small.swf"

    Anyone can help?

    best regards,

    Mike

  • #2
    New Coder
    Join Date
    Jun 2008
    Posts
    61
    Thanks
    0
    Thanked 12 Times in 12 Posts
    Quote Originally Posted by mikeooh View Post
    Code:
    var myLoader:Loader = new Loader();
    addChild(myLoader);
    var url:URLRequest = new URLRequest("small.swf");
    myLoader.load(url);
    Do you use any Actionscript in your small.swf which maybe also got some _root Variables or Functions included?

  • #3
    Regular Coder d'Anconia's Avatar
    Join Date
    Jan 2010
    Location
    Tempe, AZ
    Posts
    149
    Thanks
    16
    Thanked 6 Times in 6 Posts
    I once tried to decompile an .swf file back into a .fla file (so I could change things around then re-compile into an swf) and it did not come even close to working.

    I didn't have the original .fla file so eventually I just re-did the whole flash "scene". I know this probably doesn't answer your question too well...
    Datagonia Web (My Portfolio)

    Powerful ideas for all lovers of personal and political freedom:
    Freedomain Radio
    Free Talk Live

  • #4
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Does anyone have a solution to this problem?

  • #5
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by eddie78 View Post
    Does anyone have a solution to this problem?
    I want it too. Please anyone?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •