How send layer do back or front

Hello guys! How can I make a "bring to front" with a layer in
run time? I can make this in design time, but I need make this in
run time, because I need have this functionality in a application
for kids that a child can alter objects position.
Ex.:
Layer "A" contains a picture
Layer "B" contains a text
In design time, layer "A" is over layer "B". How can I change
this in run tim, making layer "B" over layer "A" ?

I don't know how the user is to initiate this action but I'll
assume that
he/she will click on one of the two sprites. Put this code on
both sprites.
I'm going to assume the two sprite channels are 15 and 16 but
you should
change the numbers below to suit your layout. Create one
behavior and
assign it to both sprites.
on mouseUp me
spr1 = 15
spr2 = 16
if me.spriteNum = spr1 then
if sprite (me.spriteNum).locZ = spr1 then
sprite (me.spriteNum).locZ = spr2
sprite (spr2 ).locZ = spr1
else
sprite (me.spriteNum).locZ = spr1
sprite (spr2 ).locZ = spr2
end if
else
if sprite (me.spriteNum).locZ = spr1 then
sprite (me.spriteNum).locZ = spr2
sprite (spr1).locZ = spr1
else
sprite (me.spriteNum).locZ = spr1
sprite (spr1).locZ = spr2
end if
end if
end
It seems like a lot and it might be. On the spurr of the
moment, it's what
I came up with and it works. This will swap layers regardless
of which of
the two sprites is clicked. If you want it to work
differently, let me
know.
Craig Wollman
Word of Mouth Productions
phone 212 928 9581
fax 212 928 9582
159-00 Riverside Drive West #5H-70
NY, NY 10032
www.wordofmouthpros.com
"FelipeDrumond" <[email protected]> wrote in
message
news:e5287g$dek$[email protected]..
> Hello Craig! Can you show me a Lingo example?
> Thank you for answer!

Similar Messages

  • How do I print back to front?

    how do I print back to front?  My print jobs come out printing page 1 first so I have to shuffle the papers to get them in the right order.

    You will need to contact the printer manufacturer customer support and/or read the manual that came w/your printer. 
    It would also help if you would advise us of which printer & model that you have.  Not all printers prints and/or scan the same way. 

  • I just want to figure out how send my nano back to get it replaced.. Any help out there?

    I found out my ipod has screen damage, and I just want to be able to send it back to have it replaced. But alas, I have yet to figure it out. I was wondering if somebody could help me out here with an address to ship to, or someone to chat with. that would be awesome,
    thanks

    Either call AppleCare or go here: https://selfsolve.apple.com/agreementWarrantyDynamic.do

  • Icloud pages - Is it possible to send pictures to back/ to front?

    In other words, can you manipulate a stack of photos so that you can place to lower photo on top? I have a stack of three pictures right now, but I would like the lower picture to be on top of the stack, and as it is now, it is the bottom of the stack. Any ideas?

    MMS messages -- no. Email -- yes.
    So, to send a photo, pick the photo and tap the little icon with an arrow at the lower left. It'll bring up an email with the photo attached. Send it to an email address, or if you want ot send to a phone, send it to the [email protected] for an at&t user, or for other carriers do a search on this board and you'll find the correct address for them.
    To receive a photo, just ask the sender to send it to your email address. If they send it to your phone number, you'll get a text that gives you a login and password for a website to go see your message, viewmymessage.com, which is a pain in the neck but it does work.
    For video, the same applies, except that you can't send video because the iphone doesn't store videos at this time.

  • I have Windows 7, Microsoft Outlook and PSE 13. I have used the "Share photos as embedded images" feature frequently, but today when I went to use it, it wasn't there, only the option to send email with files attached. How do I get back the ability to sen

    I have Windows 7, Microsoft Outlook and PSE 13. I have used the "Share photos as embedded images" feature frequently, but today when I went to use it, it wasn't there, only the option to send email with files attached. How do I get back the ability to send emails with photos embedded. I like adding the frames and backgrounds and I think it's easier for recipients to look at the photos. Thanks for any suggestions of things to try.
    Gail

    I had a similar problem in that my wife's iphone 5 could not send pics with imessage.  Had to set the settings to default to SMS or whatever.  After laboring many hours on the web I coincidentally was on the phone with the internet people to question my internet speed.  They changed the router channel, which is something that I am capable of doing myself.  After that, the pics go over imessage.  My own Iphone didn't have the problem.  We are both latest IOS 7.0.6.

  • Hi.I need help.my iphone was Stolen .how can I get back my iphone. Serial No.DX*****PMW.could you help me find my iphone.thank you very much.could you send me the ICCID number to help me find the iphone

    Hi.I need help.my iphone was Stolen .how can I get back my iphone.  Serial No.DX******PMW.could you help me find my iphone.thank you very much.could you send me the ICCID number to help me find the iphone.if you can help me.
    <Personal Information Edited by Host>
                                                                                                                                                                   Sincerely a Chinese girl really need your help

    Sorry we are all users on this User  Community No Apple Staff
    Read this .
    http://support.apple.com/kb/HT2526
    Apple do not and cannot assist in finding stolen property ,that is the responsility of your Police

  • How do you reorder the pages in a PDF ie back to front (not individually via Page view)

    Sorry if this is in the wrong place or if this has been answered elsewhere but I couldn't seem to search "the database"
    How do you reorder the pages in a PDF ie back to front (not individually via Page view). The manual solution of course is to scan or import them in the correct order in the first place. However, this did not happen, and we have many PDF's which are 100% in the wrong order. So we would like to press a button and have them in the right order.
    Many thanks in advance for your help...

    Got it to work. It returned a completely different path of course just to make life interesting and required a FN+OPTION ENTER in order to return the path. I now have the FLATTEN option in the edit menu.
    Just trying it checking all the Flatten options except the fields seemed to work on the first pass. I'm going to try and load a copy of the original complete document. I assume that is the proper way to use this at this point since I created the form ***-backwards?
    I've used Adobe layout programs since the Aldus days but Acrobat seems to work differently than any other program I've used.
    If I understand what you're saying I should:
    1. Design the layout of the form leaving spaces for the fields
    2. Open Acrobat, import the document
    3. Auto-add and correct, or manually add the fields
    4. Fix tabbing
    5. Add any additional comments or annotations
    6. Flatten everything but the fields?  (If the fields are flattened I can't fill out the form unless it's supposed to be a printed form only, right?)
    Might just have to break down and RTFM.  Acrobat is a really different animal.

  • In OUT Bound of a Jaxws provider, how can we stop the provider invoking its endpoint and send a response back?

    Hi One & All
    While we are working on Delegate(provider) for JAXWS client handler in Weblogic10 , we have some technical issues and need some assistance.
    Problem Description
    In OUTBound of a provider, how can we stop the provider invoking its endpoint and send a response back?
    Example:
    I have a provider with some handlers configured for both IN and OUT flows. When the Jaxws provider is making a request, the OUTBound Handler gets invoked and in this Handler I would like to stop invoking actual endpoint and send back my own response. That means I should be able to tell the Handler chain to stop further processing of this flow, set a response message into message exchange and invoke the IN flow. How do I do that?
    This kind of mediation/interception is possible in standard specifications like JAX-WS, Servlets etc… wondering if Weblogic10 JAXWS provides any sort of this kind.
    Also we would like to know who is invoking a provider endpo     int in JAXWS stack in weblogic10? Is it an OUTBound handler at the end of handler chain or some other transport component after the handler chain?
    Thanks in Advance
    Suresh
    Edited by: user12494412 on Jan 22, 2010 7:06 AM

    I completely agree with this....I have used Windows and Skype for many years. I recently installed an older version of Skype to run on Windows 8.1 because the new version is SO AWFUL. As much as I prefer the older version (6.14), the daily number of SPAM CONTACT requests is rediculous and most are just variations of the same spammer. Maybe it is time to look for a replacement for both?

  • TS2755 When I try to send an imessage to my husband using my new 5c it sends the message back to my phone and not to my husband. However i am able to so far send a message to anyone else! How can i fix this?

    When I try to send an imessage to my husband using my new 5c it sends the message back to my phone and not to my husband. However i am able to so far send a message to anyone else! How can i fix this?

    I am having the same problem and I have tried everything to fix it. Are there any solutions?

  • I am in France but do not want my ipad to send me to french itunes  how do i get back to u.k.settings

    I am in France and my ipad keeps sending me to french sites,( i.e. french itunes etc). How do I get back to U.K. Settings

    iOS 6.1.1 is only for the iPhone 4S, so you can't have it on your iPad unless you have a beta version of the OS. If you do have a beta version, you'll need to take this issue up in the developer forums to which you have access as a member of the iOS developer program.
    Assuming you actually have iOS 6.1, have you confirmed that "manually manage music and videos" is still checkmarked?
    Regards.

  • How  we get the component at front or back in a Jpanel

    How we get the component at front or back in a Jpanel. I want to manage the Z-axis position of the components in the Jpanel.

    [url http://java.sun.com/docs/books/tutorial/uiswing/components/layeredpane.html]How to Use Layered Panes

  • How can I customize the navigation bar in Firefox 29? I would like to have the refresh/stop button back in front of the navigation bar!

    How can I customize the navigation bar in Firefox 29? I would like to have the refresh/stop button back in front of the navigation bar!

    There isn't a built in way to do that since all the navigation toolbars are on one toolbar.
    You can restore this functionality by installing the Classic Theme Restorer add-on
    *https://addons.mozilla.org/en-US/firefox/addon/classicthemerestorer/

  • You can send the original back cover black for iPhone 4S for me, how much will it cost?

    You can send the original back cover black for iPhone 4S for me, how much will it cost?

    Apple does not sell replacement parts. Google may
    provide some assistance but there is no guarantee
    that third party components will work. Apple or Apple
    Authorized Service Provider should be able to repair for a
    fee, but will not sell you the parts.

  • Please help!!!!!! i filled out a job application using adobe reader but i cannot send the file back via email because the file is protected with a lock. how do i unlock this file to send it?!!!!!!!!!

    please help!!!!!! i filled out a job application using adobe reader but i cannot send the file back via email because the file is protected with a lock. how do i unlock this file to send it?!!!!!!!!!

    Hi kevinv1987,
    It doesn't sound like the PDF was password protected (or Adobe Reader would prompt you for a password). Instead, it sounds like that file may be marked locked by your operating system. Are you on Mac OS or Windows? In either case, here are instructions for removing the lock icon from the file:
    Remove the Lock Icon from a Folder in Windows 7 (check Microsoft's website if you have a different version of Windows)
    On Mac OS, select the file in the Finder, and choose File > Get Info. Then, just deselect the Lock checkbox.
    Please let us know how it goes.
    Best,
    Sara

  • I just downloaded OSX maverick and now I cannot drag addresses from my contacts to the "To" box when sending emails.  How can I go back to old drag groups or addresses to the box?

    I just downloaded OSX Maverick and now I cannot drag addresses from my contacts to the "To" box when sending email.  How can I get back to dragging groups or individual contacts to emails?

    Starting to type a name and getting a list of matches is good but it's not a substitute for being able to choose twenty or thirty names from your address book and dragging them into the "To" field. Of course many contacts can be put into a group but I may want to send occasional emails to many people who don't fit any group, and there may be no need to create a group just for that email.
    If you agree please send an email to apple feedback for Maverick OS X.

Maybe you are looking for

  • I can't make a purchase on my iPod Touch

    Here is my problem, I want to buy a song in iTunes on my iPod Touch. I get to the song and click on the $.99 box then click "buy now". A box pops up that states "Sign In Required. Tap Continue and sign in to view billing information." Here is the pro

  • Number of records in Delta Queue in table level.

    Hi All, I want to know the number of records in Delta Queue for a particular database in Table level. Right now in Production, i dont have access to TCODE RSA7. I just trying to check the Table TRFCQOUT but i am unable to see the exact count of recor

  • Project Archive won't playback on iMovie HD

    Hi, I made a backup project on dvd using "Burn a project to disk" ( file size 4GB ). When I tried to open this in iMovie HD, I got the message "The project could not be opened, because the disk is full, the project is locked, or the folder permission

  • Pipeline steps in SXMB_MONI

    Hi,     In SXMB_MONI i need a pipeline steps in left side of the XML message.    Please guide me how to do that. Regards, sasi.

  • Error messages BAPI

    Hi all, Again with the 'BAPI_GOODSMVT_CREATE'. I wat to create a error messages file, where it display me the reason why the paramenter gt_bapigm_headret in some cases is initial. How can I do it? Thanks in advance. Regards, Marisol.