Multiple click points for one button and movie clip

I am trying to make a single button into a multiple click
point. I have a movie clip on the stage and I have an invisible
button over it. The movie clip consists of a single timeline that
has an ambient animation running and looping intially. I have three
more labeled sections of that timeline that each contain a
different animated sequence as click point animations for that
movie clip. I want the user to click on the button on the stage and
the first labeled click point animation of that movie clip will
play. I want that action to be stored so that when the user clicks
again then the second labeled click point animation will play then
they will click for the third in the same way. In between user
clicks I want the ambient animation loop in the beginning of that
movie clip timeline to play. When the user has clicked the 3rd and
last animated sequence then the whole thing will reset and be
available again. Can anyone let me know how that can be
accomplished. I originally scripted it through tell target to play
the first but I don't know how to move forward. Thanks!

What version of Flash are you using? Telltarget is very
old... try something like this:
// array of the animations
myAnims = ['firstAnim','secondAnim','thirdAnim']; // these
are also frame labels
// your current animation index in the array, arrays start at
0,
// so we start at -1 which is like before anything
currAnim = -1;
// function to play the next animation
function nextAnim(){
// add one to the current animation index
currAnim++;
// if you've reached the end of the array, start back at 0
if(currAnim >= myAnims.length)currAnim = 0;
// now tell the MovieClip to play based on the value of the
current array index
myMovieClip.gotoAndPlay(myAnims[currAnim]);
Then on the button you just put:
on(release){
nextAnim();
And at the end of each animation on the timeline, put:
gotoAndPlay(1);
And at the end of the ambient loop at the beginning I guess
you have that, too, so it loops.
Hope that helps

Similar Messages

  • Buttons and movie clips

    I'm sorry if this question has already been answered. I
    searched the archives and couldn't find what I was looking for.
    Basically what I want to do is use a button to play a movie when
    pressed. The problem is I can't figure out how to do it.
    1. I've created 3 buttoms and three movie clips.
    2. I created a layer for the background which has text on it
    that says "press to view".
    3. I created another layer for the buttons and one layer for
    the button text
    4. I created an actions layer and put a stop action in frame
    1
    5. I added another layer for the movie clips on frame 2
    (mailflow_mc), frame 3 (reject_mc), frame 4 (fullrate_mc) and
    labeled each frame accordingly.
    6. Add action script for each button:
    on (press) {
    gotoAndPlay("reject");
    When I play the movie the animations will not load and they
    flash fast. Any suggestions?
    Thanks,
    Mimi

    if you have a frame labelled reject you can use:

  • Multiple event handlers for one button

    I'm trying to create a button with 2 event handlers, such
    that when you roll-over the button, a submenu pops up, and when you
    click the button, you go to a certain frame. I feel like this
    shouldn't be hard at all, but it's not working. Below is the
    actionscript I have tried. Both event handlers work as I want them
    to if alone, but the on(release) functionality does not work when I
    try to put them together.(I have Flash 8). Thanks for your help!
    on (release) {
    _root.gotoAndStop("one1");
    tellTarget (_root.navigation) {
    gotoAndStop (1);
    on (rollOver) {
    this.gotoAndPlay("links");
    tellTarget (_root.navigation.introduction) {
    gotoAndStop (1);
    tellTarget (_root.navigation.overview) {
    gotoAndStop (16);
    tellTarget (_root.navigation.coronary) {
    gotoAndStop (1);

    this code is ok, it seems that when u rollover on the button,
    the event is fired and it keeps on running the time u r on it. i
    think just add
    delete this.onRollOver inside rollOver event.

  • Multiple receiving points for BPEL

    Can we bind one BPEL to multiple Adapters, for e.g. File and JMS adapters calls the same BPEL as well as we should be able to send SOAP messages from a SOAP client to the same BPEL? (Multiple receiving points for one BPEL)
    here is what i need to do
    To create an adapter we create an partner link and bind that partner link with the "receive activity", as I understand we can bind only one partner link with "receive activity", but if I create a "file adapter" partner link and a "JMS adapter" partner link, how do I bind both of them with "receive activity"? so i dont need to write a seperate BPEL for each adapter.

    I have a similar problem but the tutorial does not solve my problem and I think it does not solve the jms and file process either.
    I want to have a process to receive a message, do things and then receive another message. The difference with the tutorial is that in the tutorial the Buyer is called, it calls to the seller and gets the response. In my case (and in the jms and file example), we wanto to get to receive the second time without invoking first to a process.
    (In my case the client is the same, but need to send two messages, in the first message ask for a operation and gets an Id. In the second message it sends the Id to confirm the operation. I could do that with two processes, but I prefer to do it with one process if possible. I am trying to use the Id to correlate the second receive).
    I am using correlations set and two roles for the process entry point (one for the first receive in the process and another for the second receive in the middle). But in the second role, when I see the generated WSDL from the console, the endpoint is something like http://set.by.caller, instead of a real endpoint.
    How can the second client call my process ? what endpoint should it be using ?
    Can a process expose two endpoints to be called ? How ?
    Thanks.

  • Adobe Photo Downloader has encountered a problem and needs to close. We are sorry for the inconvenience.  Error Code: c0000005  Address: 76f73ac3     I clicked on the OK button and the downloader closed.     I then tried to download from the organizer. I

    Photoshop Elements 12
    Adobe Photo Downloader has encountered a problem and needs to close. We are sorry for the inconvenience.
    Error Code: c0000005
    Address: 75e32f71
    I clicked on the OK button and the downloader closed.
    I did a search on this error code (c0000005) and there seems to be a workaround but no solutions, why is this? I ask that because this problem seems to be years and years old, going back to at least 2005 (do the math that is 10 years).
    I don't even have the Camera hooked up and I get this error on download.  I redownloaded everything and reinstalled.  I allso saw the AVI issues reported with this proble so i updated Quicktime though without the camera being hooked up when I get this error I didn't expect that to work.  I tried support and they wouldn't help because I bought it in March this year.  Pretty frustrating as I have re-purchased Elements about every 2 years.  I think I might need a new CODEC?   I had this problem on an Earlier version And I seem to remember that being the Fix but this may be something completely different

    I finally found that it was missing a picture so the Catalog was "corrupted".  I just deleted the picture and it started working.
    I hate Adobe and their total lack of support - thanks for nothing Adobe .  Also get this - they offered me to upgrade to 13.0 ( My 12.0 is only 6 months old  but they still don't support it on errors.  Only install errors!
    I have upgrade and repurchase this product 4 times now.  I will find something else next time!

  • I have tried a lot to find an app or some way in email to attach multiple of pdf files in one email. I could not find anything that sends multiple pdf file in one email and still keeping the file in simple pdf format for the recipient.

    I have tried a lot to find an app or some way in email to attach multiple of pdf files in one email. I could not find anything that sends multiple pdf file in one email and still keeping the file in simple pdf format for the recipient.

    I am not aware of a way except for photos that allows you to select multiple files in an email. I even checked settings in the Adobe Reader app, and it does not show that ability.

  • How to use multiple VCI strings for lap 1300 and 1200 (option 60) in one pool?

    Hi All,
    Hope to you a very happy new year,
    I have two differnt LAP 1300 and 1200 in my network and I need to add theme to the WLC,
    I successed to add one of theme by the option 60 in the DHCP pool at the Core SW,
    So my quetion is below:
    How to use multiple VCI strings for lap 1300 and 1200 (option 60) in one pool?
    Thanks in Advanced,
    Ahmed,

    To add to Scott's post.  Option 60 would be useful if you needed to put certain types of AP on specific controllers.  Otherwise, no real need to use it for the most part.
    Though, I do recall an issue a few years ago that some windows machines had issues getting DHCP if option 43 is being returned.
    Now, on an IOS switch, you can only configure one option 60 per DHCP scope
    HTH,
    Steve
    Please remember to rate useful posts, and mark questions as answered

  • Does anyone know how to select text in Appleworks, click on the font button and then be able to scroll thru all the font so that one can see the text change as you scroll down the list, at present  I have to do it one font style at a time and then repeat

    does anyone know how to view text in Appleworks, to be able to click on the font button and then be able to scroll thru all the font so that one can see it change as you scroll down the list, at present  I have to do it one font style at a time and then repeat? Thanks jl

    Welcome to the Apple forums
    Your question really belongs in the AppleWorks community/forum.
    You can turn on fonts in actual type in the AppleWorks preferences.

  • I created a book on iPhoto. I click on the buy button, and I get a connecting message with a blue striped rectangle. I am connected to the internet and I have made books before without any problems. I have tried for the past two weeks at various times.

    I created a book on iPhoto. I click on the buy button, and I get a  message that says Connecting with a moving blue striped rectangle. I am connected to the internet and I have made books before without any problems. I have tried for the past two weeks at various times and I get this same message each time. Any ideas about what is going on? 

    First confirm that you can create a PDF file of your book as described in this Apple document: iPhoto '11: Preview a book, card, or calendar before you order or print it. Post back with the results.
    OT

  • I cant update my iphone and i tried going on my pc on itunes and clicking check for update button but it says that "itunes could not contact the iphone software update server because you are not connected to the internet".plz help

    i cant update my iphone and i tried going on my pc on itunes and clicking check for update button but it says that "itunes could not contact the iphone software update server because you are not connected to the internet". But i checked my internet on both my pc and iphone and tried again but it still says the same thing. plzz plzz help

    Were you definitely connected to the internet at the time? If you don't have iOS 5 on your iPhone then the only way to update it would be via iTunes, once updated to the latest version of iOS you'll be able to update your iPhone without connecting to iTunes "over-the-air".
    Before updating however it goes without saying to Backup your iPhone, this should happen by default upon connecting your iPhone to iTunes.
    Regards,
    Steve

  • My screen won't work, i have tried turning it off but i cant swipe the power down button because my screen doesnt work. I have only had my iphone 4s for one day and this has happened, someone please help me.

    My screen won't work, i have tried turning it off but i cant swipe the power down button because my screen doesnt work. I have only had my iphone 4s for one day and this has happened, someone please help me.

    Did the trick!  Not sure what I did to cause the screen to go numb, but this worked perfectly!!!  I cleaned the screen and must have inadvertently selected something that locked the screen.  This perfect solution kept me from having to run to the Apple Store.  Many thanks.

  • Can I use my APT as storage for my music and movies?

    I m Using MacBook Air and APT 160
    I have three questions:
    1- Can I use my APT as storage for my music and movies I need the space in my MacBook Air? If yes please tell me how?
    2-What is the best way to pair my APT with my MacBook Air through WiFi “g” or “n” or what is the latest, which will save me time?
    3-What is the best external drive that might fit my need?
    Thanks

    Waleedan wrote:
    I m Using MacBook Air and APT 160
    I have three questions:
    1- Can I use my APT as storage for my music and movies I need the space in my MacBook Air? If yes please tell me how?
    No, it is not a storage solution as if you need to get the things off it you can't. If you deete things from iTunes they'll delete at the next sync. Provided you have backup copie on an external drive or CD/DVD, you could delete the actual file from the Finder leaving the database entry in iTunes - in this way you free space on the laptop but files stay on AppleTV.
    An alternative would be to change itunes Preferences (Advanced tab) not to import into the library, then for things you don't want on the Macbook Air, have them on external drive, drag and drop to itunes, sync, then disconnect drive for portable use. Again when the files aren't available they won't be deleted, unless you delete the itunes database reference.
    2-What is the best way to pair my APT with my MacBook Air through WiFi “g” or “n” or what is the latest, which will save me time?
    n is faster.
    3-What is the best external drive that might fit my need?
    Your options are basically small portable drives most of which are USB powered (though may require powered hubs if you have a hub) or larger desktop externals requiring power adapter and more space.
    For value the desktop externals give more capacity per pound/dollar, and will also have bigger capacity maximums at a given time (bigger and bigger capacity discs being developed all the time).
    Try and work out the capacity/pro
    ice point and if a portable might be useful, then you have a variety of option.
    Peronally I like Western Digital, Seagate and Freecom models, but they're all fairly good these days, and even popular brands can fail. I avoid Maxtor and IBM/Hitachi having had failures in the past, but all drives eventually fail.
    AC

  • Multiple free goods for one item in standalone CRM

    Hi Gurus,
    We are trying to implement multiple free goods for one item in standalone CRM.
    As per SAP.help.com, it says that we can configure multiple free goods scenario in standalone CRM system.
    We tried to set up this in our system.  Basically we want to implement the scenario, where a user wants to  purchase item A, he should get a prompt for choosing between two free goods  B and C.
    We did the relevant IMG settings required for Free goods at  IMG ->CRM -> Basic Functions -> Free Goods.-> Set up Free Goods
    We also did the relevant item category determination where we have made an entry with
    Item Usage = " Free Goods" , Main item cat. = "TAN' , Item Category = "TANN".
    Now we went to create condition records in the path  "SAP Menu -> Master Data -> Prices and Conditions -> SAPCND/GCM - Maintain condition"
    We chose Application ="PRT", MaintenanceGrp="PRT_FGOODS", Maintenance context ="GCM"
    Then while creating conditon records , when I try to create two condition records where the Main Product is same but free good product is different, the system is not allowing to save these two condition records.
    it is giving error "Overlapping validity periods for two condition records".
    Please advice, if i am missing something. Thanks in advance for your help.
    thanks,
    Randhir
    Edited by: Randhir Soni on Feb 8, 2010 8:12 AM

    Constraints in free goods in R3 taken from SAP library
    Free goods can only be supported on a 1:1 ratio. This means that an order item can lead to a free goods item. Agreements in the following form are not supported: u2018With material 1, material 2 and material 3 are free of chargeu2018 or u2018If material 1 and material 2 are ordered at the same time, then material 3 is free of chargeu2018.
    Free goods are not supported in combinations with material structures (for example, product selection, BOM, variants with BOM explosion).
    Free goods are only supported for sales orders with document category C (for example, not quotations).
    Free goods are not supported for deliveries without reference to a sales order.
    Free goods cannot be used in make-to-order production, third-party order processing and scheduling agreements.
    If you defined a free goods for variants in a generic article (only SAP Retail), you can only process the variants in the purchase order and goods receipt individually (as single articles). In other words, you cannot process them using the generic article matrix.
    This answers your qn Not possible in R3
    If you are on Retail scenario this is possible thro bonus buy schemes
    But a lot of customizations needs to be done and you need a retail server to do that
    Regards
    Raja

  • Multiple free goods for one main material

    Hello SAP Gurus,
    we have a business requirement that to issue multiple free products for one main product, if the upliftment is beyond the specified quantity.
    Using free goods functionality, is it possible to achive the above requirement.
    e.g                                                     Quantity
    main product        123456                         10
    free goods             xxxxx                           2
    free goods             yyyyy                           1
    is it possible to maintain such data thru free goods or any development needs to be done.
    regards
    Casimer

    Constraints in free goods in R3 taken from SAP library
    Free goods can only be supported on a 1:1 ratio. This means that an order item can lead to a free goods item. Agreements in the following form are not supported: u2018With material 1, material 2 and material 3 are free of chargeu2018 or u2018If material 1 and material 2 are ordered at the same time, then material 3 is free of chargeu2018.
    Free goods are not supported in combinations with material structures (for example, product selection, BOM, variants with BOM explosion).
    Free goods are only supported for sales orders with document category C (for example, not quotations).
    Free goods are not supported for deliveries without reference to a sales order.
    Free goods cannot be used in make-to-order production, third-party order processing and scheduling agreements.
    If you defined a free goods for variants in a generic article (only SAP Retail), you can only process the variants in the purchase order and goods receipt individually (as single articles). In other words, you cannot process them using the generic article matrix.
    This answers your qn Not possible in R3
    If you are on Retail scenario this is possible thro bonus buy schemes
    But a lot of customizations needs to be done and you need a retail server to do that
    Regards
    Raja

  • Airplay Audio for TV Shows and Movies

    I just purchased Airport Express for Airplay using my MacBook Pro, iTunes and iHome speakers. My music and radio stations on iTunes stream to the speakers with no problems. The audio for TV shows and movies on iTunes will not stream. Airplay is set for my iHome speakers and the audio only comes through on my computer speakers. I'm watching the movies/tv shows on my computer, not streaming to a TV. Any suggestions?

    Winston Churchill wrote:
    I missed the third one, thanks for posting.
    Quite a few have asked for that recently - they do listen....
    iTunes LP and iTunes Extras next....pretty pretty please......
    AC

Maybe you are looking for