Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default Levels

    Hi
    I have a movie which has 6 thumbnails. Each thumbnail calls for another movie
    (movie1.swf, movie2.swf, etc until movie6.swf.) which brings up my larger
    image. I put levels on each of these movies and they come up in the order I
    want but when i click on the first movie (movie1.swf ) it still stays under the
    others. (Which makes sense because of the level I gave it)
    But I want to be able to click on any of the movies and have it come on top.
    How can I do this?
    Can you help, please
    Elmo Elmo

    Elmo Elmo Guest

  2. Similar Questions and Discussions

    1. Undo Levels?
      It seems there is only one level of "undo" in Director MX 2004 (mac). I've searched the preferences and help files and cannot seem to find any...
    2. attachMovie (levels)????
      hello, i created this graph by the attach movie command, and i can not get it to go to the lowest level, I want the graph to appear beind the...
    3. levels and internet??
      HEllo, I made a flash page to include in my website that includes levels, level o calls a movie in level 4 which in turn calls two movies in level 2....
    4. Help with Levels....
      Ok, on the left side of my website I have a vertical navigation bar with pop out menus and the right side holds all of the real content. My site...
    5. Black Levels
      PS7 - Graph in levels and curves is totally black. Noticed advertisement splash on boot up is black. No previous problems until boot up yesterday....
  3. #2

    Default Re: Levels

    From the documentation:
    MovieClip.swapDepths

    Availability

    Flash Player 5.

    Usage

    myMovieClip.swapDepths(depth)
    myMovieClip.swapDepths(target)

    Parameters

    target The movie clip instance whose depth is swapped by the instance
    specified in myMovieClip. Both instances must have the same parent movie clip.

    depth A number specifying the depth level where MovieClip is to?be?placed.

    HTH,

    -c.

    CesareRocchi Guest

  4. #3

    Default Re: Levels

    Thanks!
    I tried this but it did not work. I'm doing something wrong. (?)

    I am using a Main Movie and i'm calling 6 External Movies by using loadmovie
    action. So does this mean they have the same parent movie clip (my Main Movie)
    or not because each external movie being called in a separate movie?
    thanks.


    Elmo Elmo Guest

  5. #4

    Default Re: Levels

    Please correct me if I'm wrong but if I remember well swapdepths() will only
    work with movieclips that are dynamically placed on stage using either
    attachMovie() or duplicateMovieClip().

    John

    --
    ----------------------------------------------------------------------------
    -----------
    RESOURCES
    [url]http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash[/url]
    ----------------------------------------------------------------------------
    -----------
    TUTORIALS at
    [url]www.laiverd.com[/url]
    Flash & PHP Emailform
    Using textfiles in Flash
    ----------------------------------------------------------------------------
    -----------


    Laiverd.COM Guest

  6. #5

    Default levels

    Is it possible to laod a .swf in to a movie clip on a new level. I would like
    to load a .swf into a movie clip that is created at level 0 at run time, that
    clip is called "base". I would like to insert a new clip "Top" into "base" with
    a button using load movie at level 1 of the base movie clip. Can that be done?

    on (release) {
    loadMovie("top.swf", "1"); I need this to load into the "base" movie
    clip at level 1
    }

    kenarchi Guest

  7. #6

    Default Re: Levels

    AFAIK should work with loaded mcs also.

    requirements are:
    - you load all your mcs in the 'same' mc(as you said)
    - mcs are on differenr levels of the 'same' mc
    e.g. movie1.swf is on level1 of 'main' and so on

    Then swap depth should work properly.

    How do you load your movies? would you post some code snippet?

    HTH,

    -c.


    CesareRocchi Guest

  8. #7

    Default Re: Levels

    Thanks for the info. I'm fairly new at this...

    Can you take a look at this link
    [url]http://www.adailynote.com/esp/swfs/movie_diagram.pdf[/url]
    it will show show the steps i'm taking.
    and this link will give you the swf files i have.
    [url]http://www.adailynote.com/esp/swfs/movie_intro.swf[/url]

    thanks for all the help - I appreciate your time
    ee

    Elmo Elmo Guest

  9. #8

    Default Re: Levels

    What code are you using to bring in the movies? If you are giving them a level,
    then you won't be able to swap them. Swapping works on depth--something
    different that level. The highest depth for a given level will always be below
    the lowest depth for the next highest level. For example depth 500 in level 10
    will always be below depth -10000 for level 11.

    Instead maybe have a container movie and duplicated it as many times as you
    need. Then load the swfs into those. Since the container movie and its
    duplicates are all in the same level, you will be able to swapdepth them.

    Rothrock Guest

  10. #9

    Default Re: Levels

    I'm using loadMovie() and giving it a level.
    I'm not sure how to use attachMovie(). Do you know a place where I can get a
    good sense on how to use it. I tried several tutorials but they all seemed
    unclear to me. If you know where i can get a good tutorial. please let me know.

    I just want to be able to click on some images and bring them to the front...
    here is the URL again
    [url]http://www.adailynote.com/esp/swfs/movie_intro.swf[/url] . You'll notice when you
    click on"web" in the menu, you have different thumbnails that bring up larger
    images. But they come up in order because of the levels. When i click on a
    certain one i want it to come to the front. thanks for all the help.
    ee

    Elmo Elmo Guest

  11. #10

    Default Re: Levels

    What are you using to load the movies? Is it loadMovieNum()? Instead use
    loadMovie("url",target). Check it out in the help files.

    So here could be some code. (I haven't tested this, so there might be some
    quotes missing or some such.) Let us say you have to load 20 different clips.
    On the stage you have an empty movie clip called Frame_0. Then in the first
    frame of the timeline do something like this.

    var numSWFs=20;
    for(i=1;i<numSWFs;i++){
    Frame_0.duplicateMovieClip("Frame_"+i,100+i);
    loadMovie("MySampleSWF"+i+".swf","Frame_"+i);
    }

    So then they will all be in the same level, but at different depths. But then
    you can use the swapdepth/getdepth to pop the current one to the top. Of course
    if there are also levels, it won't go above ones above it!

    Rothrock Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139