I would like a movie clip to play repeat itself everytime a button is pressed

Hello,
I am new to actionscripting but not Flash, I am using Flash
MX 2004 for a college project at the moment. I have created an
interface which features four buttons, each button activates a
different movie clip. This works fine but only on the first time to
press the button if you press the button again the movie clip does
not play again, I would like the movie clip to play EVERY time the
button is pressed. Here is the script that I have created in a
seperate layer called actions, if that helps:
ellaimage._visible = false
Betaimage._visible = false
Yakuzapic._visible = false
Pornopic._visible = false
boxmovie._visible = false
Betabox._visible = false
textboxmc._visible = false
Yakuzabox1._visible = false
Pornobox1._visible = false
pellabutton.onRelease = function () {
stop ();
Betaimage._visible = false
Yakuzapic._visible = false
Pornopic._visible = false
textboxmc._visible = false
Betabox._visible = false
Pornobox1._visible = false
Yakuzabox1._visible = false
boxmovie._visible = true
textboxmc._visible = true
Pellaimage._visible = true;
Pellaimage.gotoAndplay(1)}
Betabutton.onRelease = function () {
stop ();
Pellaimage._visible = false
Yakuzapic._visible = false
Pornopic._visible = false
textboxmc._visible = false
Yakuzabox1._visible = false
Pornobox1._visible = false
Betaimage._visible = true
Betabox._visible = true
boxmovie._visible = true
Betaimage.gotoAndplay (1) }
Yakuzabutton.onRelease = function () {
stop ();
Pellaimage._visible = false
Betaimage._visible = false
Pornopic._visible = false
textboxmc._visible = false
Pornobox1._visible = false
Betabox._visible = false
Yakuzabox1._visible = true
boxmovie._visible = true
Yakuzapic._visible = true
Yakuzapic.gotoAndplay (1) }
Pornobutton.onRelease = function () {
stop ();
Pellaimage._visible = false
Yakuzapic._visible = false
Betaimage._visible = false
textboxmc._visible = false
Betabox._visible = false
Pornobox1._visible = true
Yakuzabox1._visible = false
Pornopic._visible = true
boxmovie._visible = true
Pornopic.gotoAndplay (1) }
// this command stops the timeline
stop ();
Any help would be great.
Thanks in advance

No that doesn't work, that isn't what I want to to be
repeated.
In the below script I want textboxmc (which is a movie clip)
to restart and play again everytime pellabutton is released.
pellabutton.onRelease = function () {
stop ();
Betaimage._visible = false
Yakuzapic._visible = false
Pornopic._visible = false
textboxmc._visible = false
Betabox._visible = false
Pornobox1._visible = false
Yakuzabox1._visible = false
boxmovie._visible = true
textboxmc._visible = true
Pellaimage._visible = true;
Pellaimage.gotoAndplay(1)}
Please can anyone help?

Similar Messages

  • Drop a movie clip to play it

    I have a drag and drop set up and I can move the two clips at the bottom around on the stage. When I let go, it snaps back to the original position. I would like to have the user choose a movie clip and drop it in the gray area. On release in that area, I would like the movie to play in the window. Any advice on creating this type of drop trigger would be great. If you know of a tutorial, or sample code, even better.
    Thanks,
    Rich

    convert your gray area to a movieclip (eg, preview_mc) and when your movieclips are dropped use a hitTestObject(preview_mc) to determine whether to center the draged movieclip in preview_mc and play it or return it to its start point

  • I would like to move the Tv show folder to an external HD. Can I do this without moving the entire iTunes music folder?

    I would like to move the TV Shows folder from my iMac's HD to an external HD to free up some space. Can I do this without moving the entire iTunes Library folder? If so, can my other devices like iPads and Apple TV find the moved TV shows folder?

    All kinds of things are possible with iTunes, but few of them are easy.  Yes, you can isolate TV shows on a different drive.  The degree of complexity depends upon how much work and learning you are interested in doing.  The easiest solution is to delete them all from iTunes but do not let iTunes delete the actual media files.  Then go to the folder where TV shows are located and copy that folder to a different drive.  Now hold down the option key and drag them back to iTunes so it adds them again.  Using the option key means the file doesn't get copied to iTunes' main media folder.  However, since these are being added as new files it means you risk losing some information entered about them such as personal ratings, date added, date last played, etc.  There are ways of retaining this data but that's where you really have to learn how to do workarounds with iTunes.
    I have never seen an AppleTV, nor used an iPhone but my understanding is these devices do not directly use the files, they do so through iTunes.  As long as the entries can be found in iTunes then they should be accessible by other devices.

  • I am just starting to use imovie on my mac laptop.  i would like to move mivies from my ipad1 to imovie. how can i do that?

    i am trying to learn how to use imove.  i have video clips on my ipad 1 that i would like to move to imovie on my Mac OSX.. How should i go about that?

    If you do not have it on disc, then download it, install it, and activate it with your serial numnber.  If you need to download it, if you purchased it online thru Adobe look for a link in your Adobe account online.  You can also download the trial version and activate it with your serial number...
    Adobe - Download free trial version Adobe Photoshop Elements 12 | Adobe

  • Can't get nested movie clip to play

    Hi everyone,
    I have a movieclip on one of the frames on the maintimeline.
    Within this movieclip is a nested movieclip which itself is
    contained by another clip. The first movie clip plays to a certain
    frame where I've got some code telling the nested movie clip to
    play at that frame but this nested clip doesn't play. I'm not sure
    if I'm targetting the nested clip incorrectly or whether something
    else is wrong with the code.
    The .fla file can be downloaded at:
    http://www.officelinkonline.com.au/Ad/
    if someone would take a look. The movie clip in question is
    on the layer called text5, and within this mc on frame 15 is the
    code I'm trying to use to get the nested movieclip to play at that
    point. The code used on that frame is:
    this.innerText5_mc.free_mc.play();
    stop();
    pauseAnim = setInterval (this, "nextFrame", 4000);
    I wondered if someone could take a look and see what I might
    be doing wrong? Basically the free_mc clip just makes the word
    "FREE" scale up.
    Would really appreciated any advice.
    Thanks

    Thanks again. I'm a bit worried that you weren't able to see
    the font that I used. All of the text used in the animations are
    static text fields. I don't seem to have the option to embed these
    characters since it's static text. It'll only let me embed if the
    text fields are dynamic. Does this mean I have to change them all
    to dynamic text fields, and if so do I need to embed the font in
    every text field in every frame of the animation or can you do this
    in one place?
    Appreciate your continued help.

  • *Class Project - Please help:  Why does my movie clip keep playing over and over?

    I am desperate for help on this one as its my Final Flash
    class project and I just can't get my scenes/movie clips to play in
    the order I want them to.
    I have Scene 1 (movie clip 1) that plays and then Scene 2
    (movie clip 2) plays. The problem is that Scene 2 (or movie clip 2)
    repeats itself over and over again. I can't get it to go back to
    Scene 1 (movie clip 1) to play that again.
    I want it go to to this Scene 1 and actually start at a
    certain frame to continue on with the story.
    I have named my movie clip instances.
    What am I doing wrong? I went into movie clip 2, into
    actions, and movie clip control, and I don't really see a way to
    tell it to go back and play movie clip 1. Trying to see how to
    refer back to the instance name of the movie clip and get it to
    play.
    Ideas? Please please? I would be forever greatful.
    Angie

    quote:
    Originally posted by:
    computerkitten
    I wonder if I should just take that movie clip out of the
    scene completely.... and not have the second scene at all. Maybe I
    should just have 1 scene and these 2 movie clips. Wonder if that
    would work better?
    As Nickels55 said, above, scenes add unnecessary complexity.
    So the answer to this is: YES. Scenes are awkward in Flash. Never
    use them in any final project. Put everything on a single timeline
    in a single scene, and you will have much better control of the
    project.

  • When in mail, i would like to move emails to different folders other than the inbox, sent and trash can a folder be created?

    When in mail i would like to move my emails to a different folder on mail account other than the inbox, sent and trash options, can i  create a new folder?

    The suggestion above is for MailBoxes on the Mac in the mail app and have nothing at all to do with the iPad. I think that you are asking about the iPad mail app.
    You need to have an IMAP email account in order to create additional mailboxes on the iPad.
    If you go to your email account in the Mail app and look at the window where your inbox, trash folder and sent folder are - if there is an Edit button at the top of the window - tap that and then tap Add Mailbox at the bottom.
    If the Edit button is not there - you cannot create folders on the iPad. Your email account is not IMAP. Only IMAP email accounts can create folders on the iPad. Any folders that you would already have in an IMAP account would sync to the device as well.

  • I accidentally uploaded songs from cds to the wrong itunes library. i would like to move those songs to my regular itunes library that i use to purchase and download music, since my ipod cant sync to both libraries. how can i do this? please advise. thank

    i accidentally uploaded songs from cds to the wrong itunes library. i would like to move those songs to the regular itunes library that i use to purchase and download music, since my ipod cant sync to both libraries. how can i do this? please advise? thank you.

    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • I would like to move my photos in iPhoto to my NAS?

    I would like to move my photos in iPhoto to my NAS. 
    Some state simply drag and drop it then point iPhoto to the new Location
    quit iPhoto and drag the iPhoto library intact as a single entity to the external drive - depress the option key and launch iPhoto using the "select library" option to point to the new location on the external drive
    Some say it isn't possible.
    Unless the NAS is formatted Mac OS extended (journaled) you will not be able to run the iPhoto library on it 
    I am not particularly fussed about other users seeing it, I just want it off my iMac?  I am using iphoto 9.5.1.  its a synology DS213J NAS.
    thanks,
    ooops think i am in the wrong section, if someone can move it then great. apologies.

    for anyone else reading this, this is what I was told in the other forum.
    iPhoto is problematic with referenced original files, because iphoto has no tools to recover from broken references, but Aperture has been designed to handle referenced images and libraries distributed across several drives well and has tools to fix broken references.
    But both, iPhoto and Aperture, are not network databases.
    Apple says:  Use locally mounted Mac OS X Extended volumes for your Aperture library
    Putting your originals on a network storage will make Aperture slower, and you are risking library corruption by transmission errors. The safest and option, and the solution with the quickest access to your original files will be a directly connected drive.

  • I have two apple accounts and one of which has my music on. I would like to move this music to the other account. Is there a simple way of doing this?

    I have two apple accounts and one of which has my music on. I would like to move this music to the other account. Is there a simple way of doing this?

    There is currently no way to merge accounts.  The best option is to pick one, and use it consistantly.
    HTH.

  • I just purchased a ipad 2 and have not sync it yet.  I have an old pc and would like to move the itunes library account to a newer pc that I have.  Can I move the library to the ipad and sync ipods to the ipad and/or move the library to the new pc?

    I just purchased a ipad 2 and have not sync it yet.  I have an old pc and would like to move the itunes library account to a newer pc that I have.  Can I move the library to the ipad and sync ipods to the ipad and/or move the library to the new pc?

    Perhaps this web page will help: http://support.apple.com/kb/ht1229
    But I must point out that leaving the iPhoto Library on the external is worth considering. Your internal drive would be better off without having to carry the photos.
    When you booted with the external connected and you were asked for the library, did you try navigating to the Library in on the external drive?

  • I just bought a new IMac. I have photoshop elements installed on my old IMac and would like to move it to the new one. How can i do this?

    I just bought a new IMac. I have photoshop elements installed on my old IMac and would like to move it to the new one. How can i do this?

    Unfortunately, adobe doesn't have photoshop elements 6 available for download, as far as i know, so your best bet is to either get an usb dvd drive or use an computer with a dvd drive and copy the contents of the pse 6 dvd to somethiing like
    a flash drive and then copy the contents from that drive to your new computer.
    Do you still have your older mac and it has a dvd drive?
    You can share files between the two using airdrop or an ethernet cable.
    http://support.apple.com/en-is/HT203106
    http://support.apple.com/kb/PH18722
    http://support.apple.com/kb/PH14409

  • HT1589 My laptop memory is getting very full, mostly with music in I tunes.  I have an external hard drive and I would like to move all the Itunes library to the external drive but I am afraid I will screw up I tunes and I won't be able to find and or syn

    My hard drive is filling up with music files in I Tunes.  I would like to move them to my external hard drive but I am afraid when I do that I won't be able to sync my music to my devices.  I have just added I cloud and signed up for I Match.  I wonder if this would allow me to move all my I tunes files to the external drive.  What will be the impact of this.  I believe I can set the default to the new location for future downloads

    Move the entire iTunes folder out to the external drive, e.g. as X:\iTunes where X: is the letter of the drive. Hold down shift as you click the icon to start iTunes and keep holding until asked to choose or create a library. Click choose then browse to the file X:\iTunes\iTunes Library.itl.
    tt2

  • I would like to take a iTunes play list and put it on a USB drive for my car radio to stay in my car. Is there a way to do this through iTunes so you have all the song info and there's no number in front of the name of the song? Is there a program?

    I would like to take a iTunes play list and put it on a USB drive for my car radio to stay in my car. Is there a way to do this through iTunes so you have all the song info and there's no number in front of the name of the song? Is there a program?

    iTunes only syncs to Apple devices.
    Assuming the media is not DRM protected, any of the media can be dragged and dropped from iTunes onto other drives (external, flash, etc) as the user chooses.

  • I would like to move 2 users to creative cloud, but maintain all the other users (myself included) on CS5. Can I still get the reduced monthly rate? What serial number should I use?

    I would like to move 2 users to creative cloud, but maintain all the other users (myself included) on CS5. Can I still get the reduced monthly rate? What serial number should I use?

    Hi Thomasjewell,
    Yes you can avail the discounted prices even you are upgrading the product just for two users. You can use the serial number for your Creative Suite 5 product.
    You can follow the link: https://creative.adobe.com/plans in order to purchase Creative Cloud for Teams product.
    Let me know if it works or not.
    Thanks,
    Ratandeep Arora

Maybe you are looking for

  • How to collapse unused text field in PDF form

    Hi all, may i know how to collapse unused text field in a PDF form. Etc, we have alot of description line for user to enter the info, but some line will be left unused, so i was wondering whether can i hide those unused text field. But when i need th

  • No confirmation on ibook when sent

    When i am publishing my ibook with itunes producer, I have received a delivery confirmation but do not receive a confirmation email that it has been successfully uploaded to the store. What do I need to do to fix this.

  • Sound Blaster Live! 24-Bit -- Please He

    I have my SB Li've card hooked up to 5. speakers. I have not been able to get 5. sound to work and the only time I can get more than 2 speakers to sound is when I use CMSS and play something in Windows Media Player. If I play something in Winamp, Win

  • What type and how many gigabyte external hard drive do I get for my iMac?

    What brand and what features and how many gigabytes do I need in an external hard drive for my new imac?

  • Compressor doesn't convert the entire Blu-Ray file.

    I have FCP 7. Tell me if I've done something wrong here. 1. I exported as a quicktime file a wedding video that is about 3 hours long. 2. The file is all their from beginning to end. I then drop it into compressor and set it up to export the 120 gig