A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: tha damn loadmovie! Why? why?

  1. #1
    Junior Member
    Join Date
    Apr 2003
    Location
    Cyprus
    Posts
    14

    tha damn loadmovie! Why? why?

    Why doesn't anything seem to work?

    Look guys, I've got this small picture which i want to load on stage from another movie clip. I want to LOAD IT because this will eventually be done for about 30 of them.

    So, i created a rectangle at the exact dimensions of the little picture. Made it into a symbol.
    Now i want it:

    onClipEvent (load) {
    loadMovie("pica1.jpg", ?what goes here? );
    }

    so that the orginal movieclip disappears and infront of it my little picture appears (at the exact place where the movieclip was)

    A second question
    If this is done for about 30 movieclips, each loading a different little pcture, can they be made into one large movie clip so that a scrollpane can scroll them from the first to the last?

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    1. When you load something into a movieclip the external file "bocomes" the movieclip. Anything that was in it before will go way ( deleted). The size of the movieclip (mc) is not important as it will get the size of the loaded image.

    onClipEvent (load) {
    this.loadMovie("pica1.jpg" );
    }

    2. Yes. Just put them inside that movieclip.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    Junior Member
    Join Date
    Apr 2003
    Location
    Cyprus
    Posts
    14
    thnx for your interest man but this ****ty simple thing just won't work.

    Here have a look for yourself. It's so simple i just can't understand why it doesn't load it! The original movieclip just disappears! I placed the pic that i'm referring to in the library so you can use the one i'm using if you want.
    Attached Files Attached Files

  4. #4
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    The movieclip does not disapear, anything in it is erased when loading a external file into it, see my earlier post.

    But it does not want to load the jpg for me either, but thats because of the onLoad action. When loading from a frame or button it works like its supposed to. I thought jpg's could be loded from absoluteley anywhere but I seem to be wrong.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

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