A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: can't get load into empty movieclip to work in 5

  1. #1
    Junior Member
    Join Date
    Jun 2002
    Posts
    10
    I am trying to load a .swf into a movie clip instead of onto a level. you'd think this was simple, but I must be missing something

    here is my script

    on (release) {
    loadMovie ("pkgzoom.swf", "image");
    }


    looks right, then why won't it work?

  2. #2
    Welcome to flavour country
    Join Date
    Sep 2000
    Posts
    662
    Do you get any error message when you preview the movie?

    The only thing I can think of is the path to the movie clip is incorrect.

  3. #3
    Senior Member
    Join Date
    Dec 2001
    Posts
    161
    it seems like i might be getting this message about generator, that I don't understand

    about the path. the mc that i'm loading into is in the main movie and the button is in another mc that is in the main movie and the .sfw is in the same folder as the main movie

  4. #4
    Senior Member
    Join Date
    Aug 2001
    Location
    Bahrain, Middle East
    Posts
    126
    try this:

    1)place your movieclip on the stage where you want it, and give the instance the name 'image'.

    2)code it like this:

    on(release){
    loadMovie("pkgzoom.swf", image);
    }

    OR

    on(release){
    image.loadMovie("pkgzoom.swf");
    }


    if your button is nested inside another MC, then you have to do this:

    on(release){
    _root.image.loadMovie("pkgzoom.swf");
    }

    hope that helps some.

    S.

  5. #5
    Junior Member
    Join Date
    Jun 2002
    Posts
    10
    thanks, that helped

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