Is there a way to bring the object to the front of the layer (via as3)?

So, I have a line of buttons that pop up when moused over. Unfortunately, due to their proximity to one another, I have a lot of overlap occurring. Is there a way to bring the activated button in front of the others via as?

Yep!
Just like:
var button1:Sprite = new Sprite();
with( button1 )
graphics.beginFill(0xcc0000, 1);
graphics.drawRect(0, 0, 40, 23);
x = 30;
y = 30;
var button2:Sprite = new Sprite();
with( button2 )
graphics.beginFill(0x000000, 1);
graphics.drawRect(0, 0, 40, 23);
x = 60;
y = 40;
addChild( button2 );
addChild( button1 );
button1.addEventListener( MouseEvent.MOUSE_OVER, emerge );
button2.addEventListener( MouseEvent.MOUSE_OVER, emerge );
function emerge( event:MouseEvent ):void
addChild(event.target as DisplayObject);
CaioToOn!

Similar Messages

  • Is there a way to change the Layer Color Tag via Script?

    I tried to use the Script Listener to find the Event to change the Layer Color Tag but there were no commands recorded to my desktop. I have scoured the forums and the depths of Goooooo....ooogle and to no avail.
    I checked the API for an Art Layer and found no options to assign a Color Tag.
    I want to change the Color Tag From:
    To Color Tag Purple:
    Could anyone please help point me in the Right Direction?

    Just solved my own question:
    Photoshop was being weird so I had to change the color 2 times for the event to be recognized...idk why but it worked: heres the code:
    desc66.putReference( idnull, ref55 );
        var idT = charIDToTypeID( "T   " );
            var desc67 = new ActionDescriptor();
            var idClr = charIDToTypeID( "Clr " );
            var idClr = charIDToTypeID( "Clr " );
            var idVlt = charIDToTypeID( "Vlt " );
            desc67.putEnumerated( idClr, idClr, idVlt );
        var idLyr = charIDToTypeID( "Lyr " );
        desc66.putObject( idT, idLyr, desc67 );
    executeAction( idsetd, desc66, DialogModes.NO );

  • Is there a way to get the layer comment?

    Hi, Everyone.
    I'm having a problem.
    I can not find the API to get the layer comment.
    Could you please teach me?

    Thank you, shachar.
    you can always do that through AEGP_ExecuteScript(), and retrieve the
    result back to the c side.
    I’ll give it a try.

  • Is there a way to bring the schema names forward when you deploy a mapping?

    Hi all,
    I am working in a database instance where there are objects in multiple schemas needed for a single mapping. Currently I have to create a grant statement and then create a synonym to get the deployed package to compile and run. Is there an option I can turn on where instead of it just bringing forward "<Table_name>" that it will generate "<Schema_name>"."<Table_name>"?
    This would remove the need for creating all of the synonyms I currently have to create.
    Any help would be appreciated.
    Thanks,
    Shaun

    So you need a different location for each schema, the 'masteruser' that can access all the schemas is used for authentication as below (so MASTERUSER has access to SCOTT and HR), see how MASTERUSER is provided for the user name and the specific schema (HR or SCOTT) provided for the schema:
    !http://blogs.oracle.com/warehousebuilder/schema_mapping_example1.JPG!
    Then when code is generated the schema is added to the table references:
    !http://blogs.oracle.com/warehousebuilder/schema_mapping_example2.JPG!
    Cheers
    David

  • HT204150 I mistakenly deleted my calendar and my shared calendars from my I pad. Is there any way to bring the data back

    I mistakenly deleted all y calendar entries. And shared calendar eateries.  How can I get this data back onto my iPad

    If you've been making backups to icloud, then you should perform a restore to the ipad, unless you had the data on a computer, in which case you could try to restore the calendar file from a backup.
    http://support.apple.com/kb/HT1766?viewlocale=en_US&locale=en_US
    Go to Settings>General>Reset and tap Erase All Content and Settings.  This will erase your phone.  Then you will go through the setup screens again as you did when your phone is new, and when given the option, select Restore from iCloud Backup.

  • HT4914 Is there a way to upload the songs from my iPod directly to the cloud (iTunes Match)?

    This question is for my Mom as she has she messed up her iTunes and is missing thousands of songs.  She did not back them up to an external drive.  She does, however, still have her iPod with all of her songs organized correctly.
    I was able to get the songs from her iPod back to her iTunes; however, some of the albums are splitting into multiples albums (based on whether or not there are multiple artists on the track and/or album).  Is there a way to fix this?  If so, how?  If not, is there a way to bring the iPod to an apple store and have them upload the songs directly from her iPod to iTunes match and then download from the cloud so there aren't syncing issues?

    IF the old hard drive is still accessible...
    iTunes: How to move your files to a new computer (Mac or Windows):
      http://support.apple.com/kb/HT4527
    IF not, you can redownload all your past purchases. Setup the new iTunes with the same ID  and password; select Purchases from the right-hand Quick Links column, then go thru all the tabs and redownload.

  • I live on a ship and have a slow connection. Is there way to get the content via CD?

    I live on a ship and have a slow internet connection. Is there a way to get the content via CD?

    You can still get it (DVD in this case) in some places -
    http://www.amazon.co.uk/Apple-MB795Z-A-Logic-Studio/dp/B002ISDD1K/ref=sr_1_3?ie= UTF8&qid=1340218920&sr=8-3

  • Is there a way to bring back the "Open a New Tab" option via right-clicking on the Tab?

    I just upgraded to latest version of Firefox (6.0). Yesterday it informed me that an upgrade to Firefox 5.(something) was available and asked if I wanted to upgrade. I went for it. However, I hadn't used it since then till today. Now when I opened it today it asked me if I wanted to upgrade to version 6.0. Without hesitation, I went for it too.
    While this version looks nice, it feels a bit odd to use it. Previously whenever I wanted to open a new Tab, I right-clicked on any of the Tabs (active tab or any other Tab) and after right-clicking, it had the option to '''''Open a New Tab''''' along with few other options. Now there's no such option. There's the + button to open a new tab, but what if I want to open a link in a new tab by right-clicking on it? Similarly the option to Open in New Window is also missing.
    Is there a way to bring back those previous Tab options/settings? If yes, how?
    P.S. In my bookmark toolbar, when I click on a bookmark icon, it has the same options/settings as it previously had in the last version I used (last version I used was 3.something; while I'd upgraded to version 5.something I hadn't used it except for opening the browser when it asked me to upgrade to version 6.0). Options on right clicking the bookmark icon are:
    Open
    Open in a New Tab
    Open in a New Window
    New Bookmark...
    New Folder...
    New Separator
    Cut
    Copy
    Paste
    Delete
    Properties
    I'd also like to mention here that I know of the shortcut keys; so please don't waste your time by trying to help me that way. Thanks.

    No. The Tab bar is a regular toolbar in current Firefox versions, so you get the normal right-click context menu of a toolbar if you right-click the tab bar.
    You can double click on empty space on the tab bar to open a new tab if you do not want to use the new tab button.<br />
    You can drag a link on that new tab button to open that link in a new tab.<br />
    You can also drag the new tab button on another toolbar if you would like that better.<br />
    Open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout"<br />

  • Is there a way to export the coord data of AE objects in 3D space? (for programmers)

    Hey guys, we're making a video that will mostly be a fixed camera view but have objects animate around this view. The priority is the audio; the objects that animate will sound like they are flying around the camera's point of view (the user when they're using headphone). Since I will be animating the objects inside After Effects and already be assigning them X,Y, & Z coordinates during the animation, is there any way to take the data of the objects location through time to give to the programmers so they can assign the audio/attributes to the objects moving around in the scene? Sort of like how if I made a null object in AE, I can have it be the parent to another layer(s), I need to find a way to make this same concept work but for audio and other assigned attributes. It seems it would save us a lot of time if this is possible instead of figuring out where the sound is coming from later on by scratch and guessing. If there are other programs that can do this please let me know, I do use Maya and other 3D apps. Thanks!
    ~ Dave

    There is this reference:
    http://help.adobe.com/en_US/AfterEffects/9.0/WS3878526689cb91655866c1103906c6dea-7a38a.htm l
    Perhaps there is a way to export the javascript as a text file or some format useful to your programmers.
    Can you give more details as to your end result and starting point?  You mentioned you use other 3D programs.  Maya used to have in Maya 4.0 a way to dynamically animate according to audio.  Other 3D programs still offer this functionality through their scripting and/or interface.
    Flash Pro has 3D layers and if your animations are short enough you might be able to do the project in Flash and access the SoundChannel aspects of ActionScript 3.0 .  AE uses a version of Javascript.  There might be a way in the AE Scripting reference to read objects within the file and a method in the scripting to export these objects.  I'm only guessing since I don't know how to script in AE but I see no one has replied to this thread and I was curious myself.

  • Hello, 2 questionss here is it possible or is there a way to convert all object s outlines in all frames to fills at once and not frame by frame? and why sometimes erases the outline instead of converting it to fill?

    Hello, 2 questionss here>is it possible or is there a way to convert all object s outlines in all frames to fills at once and not frame by frame? and why sometimes erases the outline instead of converting it to fill?

    Hello, 2 questionss here>is it possible or is there a way to convert all object s outlines in all frames to fills at once and not frame by frame? and why sometimes erases the outline instead of converting it to fill?

  • The CC control panel use to show my 4 applications CC, CS6, LR5 and Bridge, now LR5 is no longer showing up. I pay for the photographer bundle, which includes LR5 and CC, why has it been dropped off? Is there any way to bring it back in the panel, because

    The CC control panel use to show my 4 applications CC, CS6, LR5 and Bridge, now LR5 is no longer showing up. I pay for the photographer bundle, which includes LR5 and CC, why has it been dropped off? Is there any way to bring it back in the panel, because in the listed applications which can be added below it is not listed.  Thanks!

    If you're a paying Creative Cloud member, you may not see Lightroom in the Creative Cloud if your computer doesn't meet the minimum system requirements. Check to make sure that your system meets the minimum requirements for the latest release of Lightroom.
    If you're using a trial version of Creative Cloud, the Lightroom trial is not available through Creative Cloud. It is, however, available as a stand-alone trial. See Install Lightroom trial | Creative Cloud membership. 
    Please refer to : Lightroom and Creative Cloud FAQ
    Regards
    Rajshree

  • Is there any way to disable the objects owned by a user?

    Hai every body....My problem is..
    I had created 60 users granting them connect and resource privileges in oracle(8.1.5.0.0).All of the users are working under their logins(users)...Every thing is going fine...But now i wanted to disable the objects owned by those users
    (60 Users) for a period of 2 days,After that i wanted to enable them....Is there any way to disable the objects owned by them with out dropping the users?(The users should be able to work as prevoiusly on the new objects they will create after i disabled the objetcts owned by them previously)?

    hi
    if my understanding is right you want to disable the users for 2 days for any reason let say he is on holiday for 2 days then why dont u lock this user and submit the job for unlock after two days.
    Khurram Siddiqui
    [email protected]

  • Is there any way to activate the keep identity setting when using a Transfer SQL Server Object Task?

    Is there any way to add the "Keep Identity" option to the tables selected for transfer in a Transfer SQL Server Object Task?  It seems that would be very useful, yet I can't find an easily available setting for it.  I would prefer to
    accomplish this within the Transfer SQL Server Object Task since it can copy any new fields added to the source tables, as opposed to having to rebuild a custom Data Flow Task any time a table structure is altered.  I thought setting "CopyPrimaryKeys"
    to True would do the trick, but I found that only ensures that the column settings are transferred; when the transfer happens, the destination id column is populated based on the specified seed and increment value, not what's actually in the source table. 
    I'd like to point out that replication isn't really an option here. This is a package that runs a few times a day to keep some data on our website up to date with data in our protected corporate environment.

    IIRW there is FastLoadKeepIdentity specifies
    whether to keep an identity in OLEDB destination 
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Is there any way to bring back the font type and background of Safari reader from iOS6 in to the iOS7 ? I really miss it, the new design is awful, simple and has now class at all.

    Is there any way to bring back the font type and background of Safari Reader from iOS6 in to the iOS7 ? I really miss it, the new design is awful, simple and has now class at all.

    I agree with you, many things in the ios 6.x were more elegant. The reader was the most one of them. I think the ios7 wants to be the windows 8.

  • Is there a way to bring back link information at the bottom-left when highlighting a weblink or email address in FF29?

    I used to use the Addon Bar in previous versions of Firefox...not sure why it was removed as a lot of people use it, but I now have the extension that brings it back. However....in previous versions of Firefox, at the bottom-left, there was a place where a link or e-mail address would be displayed if I hovered over it with the mouse cursor without clicking...that function seems to be gone now...? Is there a way to bring this function back in FF29? Also, why were separators removed....it seems like a pointlessly trivial feature to eliminate...I miss them for organizing my UI! :(
    Thanks for any help or suggestions! :)

    The feature that shows the link you are mousing over hasn't been removed in 29. Maybe the add-on you are using to restore the add-on bar is covering it. I've tested the Classic Theme Restorer and it seems to work correctly in this situation - https://addons.mozilla.org/firefox/addon/classicthemerestorer/

Maybe you are looking for

  • Unable to boot after failed 10.10.2 update

    Hey all, I have an early 2008 24" 2.8GHz iMac with a 120GB Intel 320 SSD and 6GB RAM that I installed myself. I performed a clean install of Yosemite 10.10.0, and with the 10.10.1 update, there were no issues, and the machine ran fine. However, when

  • Help required in Java Script

    As far as I know the variables that are used inside java script program are declared using var keyword. Suppose I assign in the following manner, var str="Hello"; Is there any way I can using the String functions that java.lang supports . I want to d

  • How do I recognize and treat seperately entries in a text box?

    I've placed a text box in a report that is populated by data entries that are seperated by a semicolon.  Each entry is unique and distinct.  I want to try to count and group these individually, but since they exist in a text box seperated by a semico

  • Help with recovering photos in LR3

    I was backing up some photos from my LR folders, when I accidentally deleted some. I downloaded a file recovery program and was able to recover the photos.  However, one of the particular group of photos, I'm having extreme difficulties with.  I can

  • Code to parse the XML stored in a XMLTYPE field in database

    Hi All, Please can someone forward me the code to parse the XML retrieved from the oracle database. I want to parse the whole xml, any node any attribute and store the extracted values in database. For example: <mail> <mailing_list name="test1"> <mai