Results 1 to 3 of 3

Thread: Make element appear in the foreground

  1. #1
    Join Date
    Jul 2008
    Location
    Pittsburgh, PA, USA
    Posts
    26
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Make element appear in the foreground

    Hey all,

    I've got a flash animation that I'm working on, which uses simple actionscript to make elements on a map grow and reveal more information. The actionscript looks like this:

    Code:
    stop();
    
        this.onEnterFrame = function(){
        if(zoom == true){
        prevFrame();
        }
        }
    
        this.onRollOver = function(){
        zoom = false;
        play();
        }
    
        this.onRollOut = function(){
        zoom = true;
        }
    See SWF here: http://www.paconserve.org/ppl_map.html

    I want the region of the map that grows to appear in the foreground, but as it is, I'm having trouble getting them to appear in front of the 'rollover' elements. Is there a piece of actionscript that can make the 'growing' area appear in the front every time?

    Thanks in advance, this forum is always such a huge help...
    Last edited by bistromath; 01-20-2009 at 01:20 PM.

  2. #2
    Join Date
    Jul 2008
    Location
    Pittsburgh, PA, USA
    Posts
    26
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Scratch that, got it figured out.

    Code:
    on(rollOver)
    
    {
    
    	this.swapDepths(1000);
    
    
    }

  3. #3
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    It seems your topic is solved... Please set the status to resolved.. To do this:
    Go to your first post ->
    Edit your first post ->
    Click "Go Advanced" ->
    Then in the drop down next to the title, select "RESOLVED"
    Jeremy | jfein.net

Bookmarks

Posting Permissions

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