dcsimg
A Flash Developer Resource Site

Results 1 to 14 of 14

Thread: Load outside swf into target movieclip?

  1. #1
    Member
    Join Date
    Feb 2002
    Posts
    45
    I created empty movie clip
    mymovie.createEmptyMovieClip (dummy, 1);
    but then when I try to load another swf movie into it nothing happens, it's just blank.
    I'm using this script:
    loadMovie("flash.swf", "dummy");
    Can someone plz point out what's wrong.

    Any help appreciated

  2. #2
    Member
    Join Date
    Feb 2002
    Posts
    45
    anybody pleeeease?

  3. #3
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Hope you have a movie clip on stage named mymovie, or else this will never work.
    Second, and this is the important part, add double quotes to dummy in your script, as:

    _root.createEmptyMovieClip ("dummy", 1);
    loadMovie("flash.swf", "dummy");

    I've used _root, in the above, but if you do have a mymovie clip on stage, and it's instance name is mymovie, it should work in the same manner with:

    _root.mymovie.createEmptyMovieClip ("dummy", 1);
    loadMovie("flash.swf", "dummy");

  4. #4
    Member
    Join Date
    Feb 2002
    Posts
    45
    Thanks alot that worked!
    What will be the syntax if I want to specify the width and length of the movieclip and left y and top x starting coordinates if it's possible?

  5. #5
    Member
    Join Date
    Feb 2002
    Posts
    45
    What if I already have a dummy MC on stage and I want to load swf file into it. Empty movie's instance name is dummy. I tried
    loadMovie("flash.swf", dummy);
    loadMovie("flash.swf", "dummy");
    I also tried
    loadMovie("flash.swf", "_root.dummy");
    loadMovie("flash.swf", _root.dummy);
    but nothing works. Could someone please help me out with that?

    Thanks!

  6. #6
    Member
    Join Date
    Feb 2002
    Posts
    45
    That's what it gives me when I test it:
    Target not found: Target="_root.go" Base="_level0.dummy"
    Target not found: Target="_root.loading" Base="_level0.dummy"

  7. #7
    Junior Member
    Join Date
    Mar 2002
    Posts
    8
    I don't know why
    loadMovie("flash.swf", dummy);
    doesn't work. It's pretty much all you have to write aka loadMovie(URL,Target)
    check everything again. Oh and I don't know what's that Output error means, maybe someone else can help

  8. #8
    Member
    Join Date
    Feb 2002
    Posts
    45
    I tried everything and still nothing
    I really need some heeeeeeeelp. That thing drives me crazy, I tried putting level instead of target and it works but I NEED the swf to go into MC. Any gurus here that could help me please?

  9. #9
    Junior Member
    Join Date
    Mar 2002
    Posts
    8
    yep, now I see what you are talking about. I did everything and I get exactly the same output error like you wrote above. That's really weird. Any input from anyone?

  10. #10
    Junior Member
    Join Date
    Mar 2002
    Posts
    8
    maybe someone could do a fast example of this? We'll really appreciate it heh

  11. #11
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Don't know what you guys are doing wrong... But this works fine for me:

    I have a empty movie clip on stage, with an instance name of dummy. Both of the following lines in the first and only frame of my main movie, work fine:


    //loadMovie("index.swf", "dummy");
    _root.dummy.loadMovie("index.swf");
    stop();

    You can e-mail me your .flas at mxflasher@hotmail.com, and I'll have a look!

  12. #12
    Senior Member
    Join Date
    Apr 2002
    Posts
    682
    Oldnewbie,

    Could I use this method to load text effects that were created in something like Swish? Thanks.

    Kennyb

  13. #13
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397

  14. #14
    Member
    Join Date
    Feb 2002
    Posts
    45
    alright it seems like it didn't work with complicated biiig movie that I used but it works with the simple one.
    Thanks oldnewbie!

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