A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Getting a tiled image to appear above others. (MX2004)

  1. #1
    Senior Member pup100's Avatar
    Join Date
    Oct 2004
    Location
    Close
    Posts
    575

    Getting a tiled image to appear above others. (MX2004)

    Sorry I forgot to press MX2004

    Hi,

    I have developed the attached site as a practise exercise. It basically consists of a wall of tiled identical images.

    What I would like to have happen is, as a user rolls over an image it’s _xscale & _yscale go up to 150 & (the bit I’m having the problems with) it appears above all the other images on the wall.

    I am really at a loss as to how to achieve this & would be grateful for any help.

    A slightly amended script as it currently stands is set out below & the fla is attached.

    code:
     

    depth = 100;
    for (i=0; i<5; ++i) {
    for (j=0; j<10; ++j) {
    this.wall_mc.attachMovie("cat", "cat"+depth, ++depth);
    thisCat = _root.wall_mc["cat"+depth];
    thisCat.onRollOver = function() {
    my_sound.start();
    this._xscale = this._yscale=150;
    };
    thisCat.onRollOut = function() {
    this._xscale = this._yscale=100;
    };
    thisCat._x = 40*j;
    thisCat._y = 40*i;
    }


    Last edited by pup100; 09-22-2008 at 12:08 AM.
    You will know everything when you know you never will.

  2. #2
    Junior Member
    Join Date
    Nov 2007
    Posts
    22
    not 100% sure but couldnt you use the this.getNextHighestDepth(); tag?

  3. #3
    Senior Member pup100's Avatar
    Join Date
    Oct 2004
    Location
    Close
    Posts
    575
    Sorry to take a while getting back liquidus - for some strange reason when I logged onto Outlook tonight (21/4/) I started getting emails dating back to the 17/4?

    Anyhow thanks for your suggestion. I'm not sure if MX2004 has a "getNextHighestDepth()," but I got round it with a swapDepth() method.

    Thanks fr you help anyway.
    You will know everything when you know you never will.

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