A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Send to back

  1. #1
    Junior Member
    Join Date
    Jul 2010
    Posts
    2

    Send to back

    Hello,

    Im trying to make a simple Image loop for a home page of a website.

    I have flash loading the images dynamically thru loadmovie

    the Images load fine, but they go on top of everything else.

    Is there a way to get them on a lower layer?

  2. #2
    Senior Member
    Join Date
    Apr 2009
    Posts
    117
    erm change the depth of the images, you can use swapdepths
    the script is
    YOURMCNAME.swapDepths(11);

    11 is the depth, 1 being low and 10000 being high

  3. #3
    Junior Member
    Join Date
    Jul 2010
    Posts
    2
    I tried using that, and it didnt do anything. The Loaded Image still goes to the Front.

    I have two Objects on the time line, A White Box, that I fade in and out, and the MC that loads the Image.

    the box is called white, the image is called img1

    img1.swapDepths(11);
    white.swapDepths(15);


    Would this not work?

  4. #4
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    You need to wait until the image has loaded. I suggest dropping loadMovie in favor of the MovieclipLoader class and its onLoadInit event, in which you can place the swapDepths.
    More info and examples in the liveDocs (link in my footer)

    gparis

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