How do I combine two actions in code correctly?

I figured out how to create my  playback controls, however I still have a problem.  I want to have an  additional button that links to a website (I have coded this correctly  with actionscript and works great.  Now I have two seperate  projects...one project has my playback controls and the other has a  button that links to a website.
I am having problems combining both action  script codes and having everything working properly.  My code for each  is below.  How do I arrange them into one?
Code for link to website:
website_btn.addEventListener(MouseEvent.CLICK,gotoWebsite);
function  gotoWebsite(evtObj:Event):void{
    var theSite:URLRequest =  new URLRequest("http://www.website.com");
     navigateToURL(theSite,"_blank");
Code  for playback controls:
go.addEventListener(MouseEvent.CLICK,startplaying);
hault.addEventListener(MouseEvent.CLICK,stopplaying);
function  startplaying(event:MouseEvent):void{
    play();
function  stopplaying(event:MouseEvent):void{
    stop();

the only way that could make sense is to use:
go.addEventListener(MouseEvent.CLICK,startplaying);
hault.addEventListener(MouseEvent.CLICK,stopplaying);
function  startplaying(event:MouseEvent):void{
    play();
var theSite:URLRequest =  new URLRequest("http://www.website.com");
     navigateToURL(theSite,"_blank");
function  stopplaying(event:MouseEvent):void{
    stop();
var theSite:URLRequest =  new URLRequest("http://www.website.com");
     navigateToURL(theSite,"_blank");

Similar Messages

  • How can I combine two databases, from two computers, to have one combined database of messages?

    My old XP computer recently died and I had to build a new Windows 8.1 machine. While I was down I used a laptop as a temporary replacement. Now my new machine is running fine and receiving e-mail, but I now have two databases--one on the new machine and one on the laptop. Both are based on a recent backup, so they are lengthy--except that the new machine's database has a hole in it for the period I was on the laptop and the laptop's database also has gaps. How can I combine two databases into one that includes the messages from both machines?
    Thanks in advance,
    profsimonie

    Thanks for your reply. My profile folder did not contain any MBOX files. I found them in another folder on another drive. The Import-Export tools simply transferred each folder to the current one as a sub-folder. Then I had to use ctrl-a to select everything in the folder and move them manually to the current folder (such as inbox). Then I could use the other utility you mentioned to remove the duplicates. This had to be done, one folder at a time, to combine each folder. It worked, but I had about thirty-five folders to deal with. The whole process took most of two days to complete. I wish there was a simple way to blend everything together in one action, but I could not find an add-on that would do this.
    Frank Simonie

  • How can I combine two itunes accounts into one?

    How can I combine two itunes accounts into one?

    Items purchased from the iTunes Store are permanently associated with the account from which they were originally purchased.  Apple provides no way to change this.
    However, if you wish to put content from two accounts into a single iTunes library, you can easily do so.  Use the command File > Add File (or Folder) to Library.

  • How do you combine two or more movie clips into one movie clip in iMovie '09

    how do you combine two or more movie clips into one movie clip in iMovie '09

    First create an iMovie project. Then drag the clips (or portions of clips) that you need into the project.
    When finished, use the SHARE menu to share the project.

  • How do i combine two folders with some of the same music?

    How do I combine two music folders (one is on my pc, the other is on my external HD). The external HD is for back up, but I have since added 7gb of music on my PC. I want to add the 7gb to my external HD, but not sure exactly what songs/artist I need to move. Short of going folder by folder to copy and drag, is there an easier way to combine the folders with out doubling up what is in both spots?

    IF you are going from PC to external then drag the whole library to the external drive and andwer no when asked if you want to copy over existing files. That's how I do it. No duplication and only the new songs actually copy.

  • How do I combine two iTunes accounts to one.?

    How do I combine two iTunes accounts into one?

    iTunes Account = Apple ID...
    From Here   http://support.apple.com/kb/HE37
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.

  • How do I combine two iPhoto libraries into one without losing pictures or creating duplicates?

    How do I combine two iPhoto (iPhoto 09) librairies into one without losing pictures or creating duplicates?

    Two ways - use Aperture or use  iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ -
    LN

  • How do I combine two one page documents into one two page document?

    How do I combine two one page documents into on two page document?????

    Menu > View > Show Thumbnails > Click on the thumbnail > Copy > Paste into the Thumbnails of the 2nd document
    Peter

  • How do i combine two user accounts into one

    how do i combine two user accounts into one

    Drag one account's home folder from the Users folder to the other account's desktop, provide your administrator password, and then move your files from it.
    (75344)

  • How do I combine two regents into one in Logic Pro Arrange?

    how do I combine two regents into one in Logic Pro Arrange?

    Thanks for your input kcstudio. I would still be left with 2 regions although one after the other, on one track.
    I am trying to save steps of the way I am combining the info of 2 seperate regions into one: bouncing the 2 tracks then re-importing that audio back into the project. It would save a lot of time if you could just drag one region on top of the other
                                W.W.

  • How do I combine two user iPhoto files into one...keeps blocking the pics between users

    How do I combine two user iPhoto files into one...keeps blocking the pics between users on the same Mac?

    Put the library on an external hard drive that is formatted as shown in this screenshot:
    OT

  • How do I combine two or more pictures into one?

    How do I combine two or more pictures into one?

    I found out how to do what I wanted and I'm giving my steps in hopes that it might help someone else.  I wanted to put several photos from a file onto a new blank image.  This is what I did.
    1.  Create a blank page.    File/New/ Blank File.   Put in the size.  I used 8x10.
    2.  Bring the photo  you want to use into Elements as you always do. It will list along the top next to the blank sheet.
    3.  Choose SELECT (top of screen)/ Select All.
    4.  Choose Edit/Copy   or Command "C"
    5.  Click on the Blank File.   Chose Edit/Paste  or Command "V"
    6.  Click on Image/ Transform or Command "T".  There should be a dotted line around your pasted image.  You can then move and adjust the image to how you want it.  When finished, press the check-mark on lower right of photo.
    7.   Repeat this with all the photos you want on the new blank file.
    8.  You will see on lower right of Elements,  the background layer and as many layers as you have photos.  These layers need to be permanently placed on the background layer. Go to Layers and press Merge Visible.  This will merge all layers to the background.
    9.  Save as and you are done.

  • HT4759 How do I combine two accounts into one

    How can I combine two accounts into one account

    If you are talking about iCloud accounts, you can't.
    Or you could tell us what type of accounts these are?

  • How do I combine two user accounts into one account?

    When we originally set-up our iMac, I set-up two accounts for my wife and I. Since then it has been a royal pain with music and applications sharing. How do I merge the two accounts into one?

    I found an answer to this by searching on "merging two accounts" rather than "combining two accounts." BTW, it's a little mini-nightmare if you only use "combine" on both Google and Apple support. At least this post might help others avoid the same fate.
    Here's where to go to find the answer: http://discussions.apple.com/message.jspa?messageID=5629676#5629676

  • How can I combine two "My ITunes Folders"

    I have been reading the discussion forums for weeks but have not found a solution to my problem and was hoping someone might be able to help. Here is my situation.
    Background:
    I have a large collection of CD’s that I wanted to import into itunes. Looking at the prospect of importing approx 4,000 cd’s I decided to “divide and conquer”. My wife took half and I took half and we each proceeded to import the cd’s onto our respective PC’s. Unfortunately when he “met in the middle” we didn’t realize it and we each proceeded to import cd’s that the other had already done (i.e. when comparing our music folders there are some duplicates).
    Problem:
    The real question I am trying to get answered is how I can combine the two separate itunes music folders into one. I would like to combine the two folders and then have one itunes music folder that I can import into itunes.
    Any Suggestions? We used iTunes to organize the folders so they use the same “artist, album, song” hierarchy.

    Try this -> syncOtunes

Maybe you are looking for

  • Error while processing sales order as new pricing carried out.

    "new pricing procedure carried out".iam getting this error while processing the sales order.

  • Urgent - ABAP subroutines - Proxy method

    I am coding a proxy method. I had to code a BDC call transaction. For this I have defined 2 sub-routines. One BDC_DYNPRO (for screen chnage) and BDC_Insert(for inserting the fields). When compile the code, it is giving an error in the line just above

  • Adobe Photoshop Elements 11 Folders

    I recently purchased and downloaded Adobe Photoshop Elements 11 and I notice that 2 folders were created in My Documents, as follows: Folder No. 1 - Adobe Photoshop Elements 11 - 1.87GB, 163 files, 52 Folders Folder No. 2 - Photoshop Elements 11 - 1.

  • CAN YOU UN DO A PDF DOCUMENT ON MAC

    CAN YOU UN DO A PDF DOCUMENT ON A MAC

  • Oracle Ultra Search XE - missing droldUS.dat

    When I try and create my index I get the following error ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine ORA-20000: Oracle Text error: DRG-11422: linguistic initialization failed DRG-11446: supplied knowledge base file C:\oracle