A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Design structure help (multiple loadmovie)

  1. #1
    Member
    Join Date
    Mar 2001
    Posts
    78

    Design structure help (multiple loadmovie)

    I am designing a video player for a client that has a row of thumbs below the main player window. When hovering over any particular thumb, I want a still image (jpg) loaded into the main player window at the size of the video (no resizing needed, the images will be in the same size as the player window).

    All of the thumbs will be populated via actionscript/XML. That is no problem for me. However, I am trying to decide which way to lay this out in order to get the best performance. I don't want to make a loadmovie call on the hover, I would rather all the full sized pictures load in as soon as the movie starts loading.

    I was thinking of creating a holder movieclip for all the pictures, with each picture residing on it's own frame in the timeline, loaded into an emptyMC at the time the XML file is called. That way rollovers could just call the specific frame in the holder movieclip instead of having to call a loadmovie and wait for the image to load on each rollover.

    Is that the best way to do it? Or can someone think of something more ideal?

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,039
    Hi,

    once you have different clips with different images in different frames, you lose the contents when you switch frames (but they will of course load faster from cache)
    A different approach would be to create a stack of clips that stay in place all the time, and are made visible/invisible as needed

    Musicman

  3. #3
    Member
    Join Date
    Mar 2001
    Posts
    78
    Quote Originally Posted by Musicman View Post
    Hi,

    once you have different clips with different images in different frames, you lose the contents when you switch frames (but they will of course load faster from cache)
    A different approach would be to create a stack of clips that stay in place all the time, and are made visible/invisible as needed

    Musicman
    Thanks! I forgot to check back here the last couple days as I was not actively working on the project. I came to the same idea you did. As I loop through the XML, I can just increment a variable and use that for the dirty work of naming and setting up rollover/rollout events.

  4. #4
    Member
    Join Date
    Mar 2001
    Posts
    78
    I have it mostly working. However, I have this issue: This is all populating via an XML file, and the pictures are loaded into incrementally named created empty clips. I would like node 0's picture to be displayed upon loading complete, and I'm trying to code the _visible property for the created movieclip "descpic0" to true while setting all others to _false to start with. For some reason the last node (in this instance, node 5)'s pic is what gets displayed always.

    I've tried testing for a completed load before setting the visibility, but to no avail. Any idea what I'm doing wrong?

  5. #5
    Member
    Join Date
    Mar 2001
    Posts
    78
    Fixed... used moviecliploader instead of loadmovie so that I could utilize the "onComplete" event.

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