Click a button to start a movieclip and hide the previous one

Hello everyone,
I'm not used to Actionscript and I need your help
Here the situation:
In my scene, I have five buttons and each one will start a movie clip within the scene.
So, I have only one frame for the entire scene( but four layers: button,background(with music), action and my last one is animation.
My animation layer contains 5 movies clips that I putted outside the scene and when they play, they are entering the scene.
Here my problem:
Each time a click a button( with onPress or onRelease actionscript 2.0.), a movie clip starts(that's ok..)
But, when I click an another button, I want the previous movieclip to stop and disappear. In my case, the new movieclip starts but over the last one who is still there.
Furthermore, when I want to click on a button that had already been pressed, I want him to start over his movieclip. For now, I need to press it once again to cancel his movieclip and then press it again to start his clip.
In resumé, all I want is that each time I press a button, the last movie clip disappear because the new one starts and an already been pushed button, when pushed again, starts his movie clip without the need of pushing it to cancel his first operation and then pushed it again.
Thank you,
Simon.
P.S. Sorry if my english is bad, I'm a french guy.

Ok..
What if, in place of the motion tween off-stage to on-stage, I convert all my movieclips animation only with classic tween.
For example, I do classic tween of my movieclip alpha properties going to 0 to 100 alpha.
This time, all my movieclips will be on-stage. I just need them to play while clicking on my buttons and disappear too.
By doing that, is it easier to actionscript??? If Yes, how?

Similar Messages

  • How can I import contacts into a mailbox and overwrite the previous ones?

    Hey guys, so I am new to powershell. I understand some of the basics and am still trying to teach myself as much as I can.
    So I have been asked to automatically push our company's contacts to everyone's mailbox (around 60-70 contacts to 60-70 mailboxes) We use Office 365.
    They also want the contacts to sync to mobile phones, so I cannot used a shared contact list. It seems only the MAIN contact list can sync to a phone.
    So far I have used this:
    import-contactlist -csv -csvdata ([system.io.file]::readallbytes("PATH TO CSV FILE")) -identity USER
    This works just fine, but if there are any changes to the CSV and I run it again, it just doubles all the contacts instead of overwriting. Is there anyway I can overwrite the contacts?
    I have also tried this:
    Search-Mailbox -identity USER -SearchQuery kind:contacts -deletecontent
    This does delete the contacts I have created in the first place, but if there are any OTHER contacts that users have created, it would delete those as well.
    I feel like im headed in the right direction.. can anyone help?

    Okay I think I figured it out. After I import the contacts with: import-contactlist -csv -csvdata ([system.io.file]::readallbytes("PATH TO CSV")) -identity USER
    I can run this to find and delete each added contact: 
    $tcontacts = get-content PATH TO CSV WITH ONLY NAMES
    $zcontacts = get-content PATH TO CSV WITH NAMES OF MAILBOXES YOU WANT TO REMOVE CONTACTS FROM
    $ccontacts = "null"
    $scontacts = "null"
    $xcontacts = "null"
    foreach ($ccontacts in $tcontacts) {foreach ($scontacts in $zcontacts) {$xcontacts = $scontacts; Search-Mailbox -identity $xcontacts -SearchQuery kind:'contacts', $ccontacts -deletecontent -force}}
    I use xcontacts = scontacts because of pointer issues (i think?) but anyway, using
    $scontacts for the -identity doesnt work.
    This is a pretty rough script, and you guys could probably find a shorter one, but it works! Thanks

  • I'm trying to buy a book. The book is made in I-Photo and when I push buy book button it starts to process and than says--  There was a problem communcating wit the apple store   " help"

    I'm trying to buy a book I made in I-photo. I have made a 20 page book in I-photo and when I push the "buy book" button it starts to process and then pops up a sign that say'es There was a problem commucating with the apple store. Please try again.   Help

    Are you buying from the correct Print Products Store?  If you are using the wrong store, your AppleID may not be valid.
    Is the Print Products Store set correctly in iPhoto Preferences > Advanced?  It should be set to the  same country as your billing address and delivery address, and match the settings of the Apple ID you are using.
    And you are using iPhoto '09 or '11, right?  you can no longer buy books from earlier versions.
    When you reenter your settings as LarryHN described, don't forget to enable Express Checkout. It is required.

  • When I import my photos from my iPhone 4S into iPhoto the location does not appear.  I have to open the info button on the photo click "photo place" then "find on map" and then the location appears.  How to I get the location to appear automatically?

    When I import my photos from my iPhone 4S into iPhoto the location does not appear.  I have to open the info button on the photo click "photo place" then "find on map" and then the location appears. How to I get the location to appear automatically when I import my photos from my iPhone?

    in your iPhoto preferences is look up location set to "automaticaly"?
    LN

  • I have just installed Lightroom 5 on iMAC (OS X ver 10.9.4).  When I click on 'Import' to start working on some photos, the following error message pops up: "An internal error has occurred. Could not find namespace: AgCreativeCloudUtils".  Anyone know wha

    I have just installed Lightroom 5 on iMAC (OS X ver 10.9.4).  When I click on 'Import' to start working on some photos, the following error message pops up: "An internal error has occurred. Could not find namespace: AgCreativeCloudUtils".  Anyone know what the problem is and how to fix? Thanks.

    https://forums.adobe.com/search.jspa?q=Could+not+find+namespace%3A+AgCreativeCloudUtils&pl ace=%2Fplaces%2F1383621&depth=…

  • I have a document made up of separate PDF files which reside in a folder and are linked to each other via hyperlinks. Each pdf file is set to open with bookmarks displayed, however if I link from one PDF file to another and use the "Previous View" button

    I have a document made up of separate PDF files which reside in a folder and are linked to each other via hyperlinks. Each pdf file is set to open with bookmarks displayed, however if I link from one PDF file to another and use the "Previous View" button to navigate back to my starting point the bookmarks are replaced by "page thumbnails". Is there anyway to stop this from happening?

    Hi Pusman,
    While setting up the links, if you choose to open the file in a new window then you won't face this issue, then you can simply switch to the previous file and bookmark view will remain as it is.
    Does that helps with your query?
    Regards,
    Rahul

  • How do i add a bluetooth device to my mac? there is no " " button in my bluetooth preferences and turning the devices to discover mode doesn't work

    How do i add a bluetooth device to my mac?  There is no " +" button in my bluetooth preferences and turning the devices to discover mode doesn't work

    The Bluetooth setup assistant should "find" a device in range when that device is turned on. What are you trying to add?
    Wireless input devices: Bluetooth frequently asked questions ( How do I add or remove a wireless device to or from my Mac (pairing or unpairing)?)
    Barry

  • Hi guys i added a new mail account and now she i click new mail i can see 4 accounts, the first is right below the subject, and it' the old one and the new one, the other one is on its right and it's the old one and the new one. is it normal? Thanks.

    hi guys i added a new mail account and now she i click new mail i can see 4 accounts, the first is right below the subject, and it' the old one and the new one, the other one is on its right and it's the old one and the new one. is it normal? Thanks.

    sorry, correction,
    hi guys i added a new mail account and now if i click new message on the mail field  i can see 4 accounts, the first is right below the subject, and it' the old one and the new one, the other one is on its right and it's the old one and the new one. is it normal? Thanks.

  • Using iPod shuffle 4th generation for first time and receiving the error : one of the USB devices attached to this computer has malfunctioned, and windows does not recognize it. For assistance in solving this problem, click this message

    Using iPod shuffle 4th generation for first time and receiving the error : one of the USB devices attached to this computer has malfunctioned, and windows does not recognize it. For assistance in solving this problem, click this message.
    Using win 7 and latest iTunes [10.6.3]. Have already gone through below links and did not find any solution.
    http://support.apple.com/kb/HT2292
    http://support.apple.com/kb/TS1369
    http://support.apple.com/kb/HT1923
    http://en.kioskea.net/forum/affich-17997-ipod-not-detected

    I was hoping it would be something like a USB device conflict, but now the shuffle is the only thing connected...
    This article was one of the ones you linked to above in your initial post
    http://support.apple.com/kb/TS1369
    Under Part 9. Verify that USB drivers are installed, did you try the steps in If only "Unknown Device" appears?  That appears to be your situation.
    Also, you said that the shuffle initially worked well enough to do a sync, then it had the same problem again.  If you can get it to work again initially, before doing anything else, try the following.  Select the shuffle in the iTunes sidebar, under DEVICES.  Over to the right, go to the Summary tab.  By default, the checkbox for Enable disk use should be unchecked.  If so, check it and Apply the change.  See if that makes any difference. 
    (If Enable disk use was already checked, try unchecking it and Apply the change.  Basically, set it the "other way" and see if there is any improvement.)
    NOTE:  When disk use is enabled, you have to eject the iPod in iTunes before disconnecting it physically.
    If the disk use change makes a difference, that may provide a clue about the actual cause.

  • I have a 2008 macbook and i lost the start up disk and forgot the password. how can i put it back to factory mode and change the password

    i have a 2008 macbook and i lost the start up disk and forgot the password. how can i put it back to factory mode and change the password

    Check out this article http://gigaom.com/apple/reset-os-x-password-without-an-os-x-cd/

  • When using Firefox as my browser, my "back" button no longer works? And by the way...getting help is a real pain in the butt on this site!!!!!

    When using Firefox as my browser, my "back" button no longer works? And by the way...getting help is a real pain in the butt on this site!!!!!

    see -- http://kb.mozillazine.org/Kill_application
    which explains how to completely exit (quit) your Mozilla application
    Try closing Firefox completely
    *Close Firefox properly '''File > Exit''', not with the "X" which just closes the window.
    *Use the Windows Task Manager "Processes" tab to make sure that firefox.exe is not running and also that the plugin-container.exe is not running.
    If that does not work, try restarting the system.
    If still no luck try restoring bookmarks from last backup, or better create your own .json backup and restore from that.
    *http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox#Creating_bookmark_backups
    *''If you had to go this far, please provide feedback if restoring bookmarks alone fixed the problem. I think I may have done that once with success, but never see that suggested -- I'd try most anything to not lose history or bookmarks. But then I could restore files from my profile and restore latest bookmarks backup from current profile.''
    The following will result in complete loss of history if it comes down to deleting places.sqlite, so rename files rather than deleting. With Firefox down.
    Of course you have backups of your profile you could replace rename and
    replace those files instead.
    Locked or damaged places.sqlite - MozillaZine Knowledge Base
    :"Toolbar buttons such as Back/Forward are disabled "
    :http://kb.mozillazine.org/Locked_or_damaged_places.sqlite

  • My home button is not working sometimes and at the store they dont want to take it for repair because the problem did not show up at that time

    My home button is not working sometimes and at the store they dont want to take it for repair because the problem did not show up at that time

    When normally powering the phone, there would not be a loading bar, you would just see the Apple logo. You can try a reset of the phone, hold the sleep/wake and home buttons together until you see the Apple logo and then release. The phone will reboot.
    You can take the phone to Apple, by making an appointment at the Genius Bar to have the hardware checked. Apple handles warranty and post-warranty issues, not Verizon. Have Apple look at the hardware to see if there are any problems.

  • I have a mac book pro running Lion 10.7.4 and every time I use Google Earth The computer crashes by lowering a black curtain and then asking me to hold the power button down until it closes and press the power button again to restart it. Can I fix this?

    I have a mac book pro running Lion 10.7.4 and every time I use Google Earth The computer crashes by lowering a black curtain and then asking me to hold the power button down until it closes and press the power button again to restart it. Can I fix this? It bugs me when I'm looking at real estate.

    I really don't have an answer for that one. I guess that while trying to get things working correctly, I would use the most basic monitor I had which in your case would be the Eizon using the Thunderbolt port and adaptor.
    When you boot into Safe Mode the startup is quite slow, but you should get the Apple logo and then the spinning gear below it (release the SHIFT key when it appears.) Then after a little more time you should see a gray progress bar appear below the spinning gear. When that disappears the computer will startup to a login screen.

  • TS1702 Cannot download an issue of a subscribed magazine on news stand. The download has paused and cannot midway and every time I click on resume it asks to shut and restart  the app. Done that several times. Even restarted the iPad but the problem conti

    Cannot download an issue of a subscribed magazine on news stand. The download has paused and cannot midway and every time I click on resume it asks to shut and restart  the app. Done that several times. Even restarted the iPad but the problem continues.

    Do a search with Spotlight for ".plist" (without the quotes). In that list (should be very long) there should be a file named com.apple.itunes.plist. Delete that file by dragging it from the Spotlight list to the Trash. Don't worry if you drag the wrong file and delete it, as these are preference files that recreate themselves when you launch an application.

  • How to disable and hide the menu items of 'copy From' button of Goods Recei

    hi expert,
    I am new in SAP B1. so please help me.
    Q:How to disable and hide the menu items of 'copy From' button of Goods Receipt PO form?
    Regards
    sanoj

    Hi Sanoj,
    Try This.....
    If pVal.FormType = "143" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_ACTIVATE And pVal.BeforeAction = False Then
                oform = sbo_application.Forms.GetFormByTypeAndCount(pVal.FormType, "1")
                Dim oitem As SAPbouiCOM.Item
                oitem = oform.Items.Item("10000330")
                'To Disable the button
                oitem.Enabled = False
                'To hide the button
                'oitem.Visible = False
            End If
    Thanks
    Shafi
    Edited by: shafi_sunshine on Sep 15, 2011 7:35 AM

Maybe you are looking for

  • Goods receipt without value updation in 501 movement.

    Hi, We are receiving the material from other plant for job work. If i take the material into stock through 501 movement type the Value is getting updated in the receiving plant as per the value from the Material Master which same material also being

  • HT4759 Can I place documents created with Microsoft Office for Mac, eg. WORD, or .pdf files be stored in iCloud?  If so, how can I put them there?

    Hi, I am trying to learn how to use iCloud, would like to hsve it my documents on it, which are mostly created in WORD (part of Microsoft Office Suite for Mac) or .pdf files.  I don'r see how to get them into iCloud.  Actually I don't see how to plac

  • PDF's from Illustrator not been replaced in layer in ID...

    Hi, I want to place PDF into new layers in an InDesign document. All the layers are the same data (map) but they are not scaled... Like when you press Command + D to place something into InDesign you have to scale it yourself... The document that I'm

  • Workbook

    Hi, From the RSRWORKBOOK table, we could find the name of the query of a workbook. But, it is the system generated query name (Alphanumeric). How to find the technical  name of a query from the workbook? Thanks.

  • Approval Mix up

    Dear Experts, I have the following occur :- We have many approval templates each working differently but  several of them on approval transfers. On one particular approval the approval gets triggered but with the wrong stage hence  gets approved by t