Moving the player to the mouse position.

I have a question about moving and animated player symbol to the mouse location on a MouseDown event. Right now I have it set up to do an easing so that I can control how fast the player moves to the location. Problem is that it is done with easing. I don' t like the easing because the velocity of starts really fast and then slows down before it reaches the mouseX and mouseY location. I would like just a plain ol' stroll from the player location to the mouse location on the MouseDown event. Here is my code:
package
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.MouseEvent;
public class PlayerToMouse extends MovieClip
  //Declare constants
  private const EASING:Number = 0.1;
  //Declare variables
  private var _targetX:Number;
  private var _targetY:Number;
  private var _vx:Number;
  private var _vy:Number;
  public function PlayerToMouse()
   player.gotoAndStop(1);
   //Initialize variables
   _targetX = mouseX;
   _targetY = mouseY;
   _vx = 0;
   _vy = 0;
   //Add event listeners
   stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
  private function onEnterFrame(event:Event):void
   player.play();
   //Calculate the distance from the player to the mouse
   var dx:Number = _targetX - player.x;
   var dy:Number = _targetY - player.y;
   var distance = Math.sqrt(dx * dx + dy * dy);
   //Move the object if it is more than 1 pixel away from the mouse
   if (distance >= 1)
    //move the player
    _vx = (_targetX - player.x) * EASING;
    _vy = (_targetY - player.y) * EASING;
    //move the player
    player.x +=  _vx;
    player.y +=  _vy;
   else
    player.gotoAndStop(1);
    trace("Player reached target");
    removeEventListener(Event.ENTER_FRAME,onEnterFrame);
  private function onMouseDown(event:Event):void
   _targetX = mouseX;
   _targetY = mouseY;
   addEventListener(Event.ENTER_FRAME,onEnterFrame);
Any input would be appretiated. I am a beginner and my mindset for the best coding procedure is not there yet.
Shiim

I didn't exactly figure in the constants of _vx and _vy, but I took a bit of your idea and created something that works to my liking. The downfall to my code is that the calculations in the onEnterFrame causes the player to not fully reach the destination, thus the animation never stops. I forced it to stop with an if statement that comes close enough to not be noticeable.
Here is the edited code:
if (distance >= 1)
    _vx = (dx /30);
    _vy = (dy /30);
    //move the player
    player.x +=  _vx;
    player.y +=  _vy;
    if (distance <= 15)
     _vx = 0;
     _vy = 0;
     player.gotoAndStop(4);
     removeEventListener(Event.ENTER_FRAME,onEnterFrame);
Thanks for the input Ned.
If anyone has any ideas to make this better, feel free to comment. I'm a beginner and can use all the advice I can get...
Shiim

Similar Messages

  • The ppt animations doesn't pause in the player but the audio does.

    I've imported an animated PPT into Captivate 7. The audio is added into Captivate. After publishing the project. The ppt animations doesn't pause in the player but the audio does. When you click the play button again the audio and animations are out of aliment. Is there any way to make the PPT animations pause in the player?

    Im on a Mac.  Adobe Captivate 7 & PPT Office 2011.
    The animations in Power Point are timed to go with audio. One animation is with previous. Building out bullet lists with graphics.
    Lisa

  • Stopping the player at the client machine independent of the server playing

    can anyone help me i need to allow the client to stop a player independent of the server transmitting the movie. can anyone help me plz!!
    here are rhe codes for the client and the client gui
    import javax.swing.*;
    import javax.swing.UIManager;
    import java.awt.*;
    import java.awt.event.*;
    public class ClientChoice
         public static void main(String args[])
              try
                             UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
                        catch(Exception e)
         }//main
         JFrame frame=new JFrame("--- New Line Movie ---");
         //Create the menu bar
         JMenuBar menuBar;
         JMenu menu;
         menuBar = new JMenuBar();
         //Build the file menu in the menu bar
         menu = new JMenu("File");
         menu.setMnemonic(KeyEvent.VK_F);
         menuBar.add(menu);
         JMenuItem menuItem= new JMenuItem("Exit",KeyEvent.VK_X);
         menuItem.addActionListener(new ActionListener()
              public void actionPerformed(ActionEvent e)
                        System.exit(0);
         menu.add(menuItem);
         //Build help menu in the menu bar.
         menu = new JMenu("Help");
         menu.setMnemonic(KeyEvent.VK_H);
         menuBar.add(menu);
         JMenuItem help_item=new JMenuItem("Help Topics",KeyEvent.VK_T);
         menu.add(help_item);
         JMenuItem about_item=new JMenuItem("About Us");
         menu.add(about_item);
         frame.setJMenuBar(menuBar);
              ImageIcon icon=new ImageIcon("images/potter.jpg","");
              JButton clickmovie=new JButton(icon);
              //final JLabel latest=new JLabel("<html><caption>Harry Potter</caption></html>");
              //clickmovie.add(latest);
              final JLabel welcome1=new JLabel("<html><font color=blue face=arial size=3><strong>New Line Movie</strong> gives you the possibility to view your favorite movies.<br>You can choose your category of movies below and click on any movie to get more information about it. <br>Latest News about new movies are also available. ENJOY!!!</font></html>");
              frame.getContentPane().add(welcome1,BorderLayout.EAST);
              final JLabel copyright=new JLabel("<html><font color=blue face=arial size=3><p align=center>&copy Copyright 2004</p></font></html>");
              //frame.getContentPane().add(copyright,BorderLayout.EAST);
              JPanel actionPanel=new JPanel();
              JPanel cartoonPanel=new JPanel();
              JPanel comedyPanel=new JPanel();
              JPanel fictionPanel=new JPanel();
              JPanel mainPanel=new JPanel();
              mainPanel.setLayout(new GridLayout(2,1,5,5));
              mainPanel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
              mainPanel.add(actionPanel);
              mainPanel.add(cartoonPanel);
              mainPanel.add(comedyPanel);
              mainPanel.add(fictionPanel);
              //mainPanel.add(copyright);
              actionPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder("Action"),BorderFactory.createEmptyBorder(5,5,5,5)));
              cartoonPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder("Cartoon"),BorderFactory.createEmptyBorder(5,5,5,5)));
              comedyPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder("Comedy"),BorderFactory.createEmptyBorder(5,5,5,5)));
              fictionPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder("Science Fiction"),BorderFactory.createEmptyBorder(5,5,5,5)));
              frame.getContentPane().add(mainPanel,BorderLayout.SOUTH);
              frame.getContentPane().add(clickmovie,BorderLayout.WEST);
              // Create combo box with action movies choices
              final JComboBox actionChoices;
              String[] actionmovie={"-Select a movie-","X-Men","Spiderman"};
              actionChoices=new JComboBox(actionmovie);
              actionChoices.setSelectedIndex(0);
              actionPanel.add(actionChoices);
              actionChoices.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e)
                        JComboBox cb = (JComboBox)e.getSource();
                        String act = (String)cb.getSelectedItem();
                        if(act=="X-Men")
                             JFrame action_xmen= new JFrame("--- New Line Movie: X-Men --- ");
                   action_xmen.setSize(400,350);
                   JPanel main=new JPanel();
                   main.setLayout(new GridLayout(2,1,5,5));
                             main.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
                             ImageIcon icon_men=new ImageIcon("images/x-men.jpg","");
                   JButton clickmovie_men=new JButton(icon_men);
                   final JLabel xmen_overview=new JLabel("<html><font color=blue face=arial size=3><b>Title:</b></font> <font color=black><strong>X-Men 2 </strong></font> <br><br><font color=blue face=arial size=3><b>Starring:</b> Hugh JACKMAN and Halle BARRY<br><br><b>Story:</b> The time has come for those who are different to stand united. <br><br>A military officer with a link to Wolverine's mysterious past conspires <br><br>to eradicate the mutant population for once and all. In order to defeat <br><br>this new menace, the X-men will be forced to join forces with Magneto. <br><br><b>Duration:</b> 1hr45min </font></html>");
                   final JLabel copyright=new JLabel("<html><font color=blue face=arial size=3><p align=center>&copy Copyright 2004</p></font></html>");
                             action_xmen.getContentPane().add(copyright,BorderLayout.SOUTH);
                   JButton view=new JButton("View");
                   view.setLayout(new BoxLayout(view,BoxLayout.X_AXIS));
                                            view.add(Box.createHorizontalGlue());
                             view.add(Box.createRigidArea(new Dimension(30,0)));
                   view.setMinimumSize(new Dimension(20,100));
                   view.setPreferredSize(new Dimension(20,100));
                   view.setMaximumSize(new Dimension(Short.MAX_VALUE,Short.MAX_VALUE));
                   view.setMnemonic('v');
                   view.addActionListener(new ActionListener()
                                  public void actionPerformed(ActionEvent e)
                                            String a="172.22.45.44/42050";
                                            String b="172.22.45.44/42052";
                                            String argv=a+b;
                                            Client cl= new Client(a,b);
                                            String[] c={a,b};
                                            cl.mainCl(c);
                                            //this is the code i added so that on clicking the view button
                                            //the client is automatically connected to the server and the player
                                            //plays on the current machine
                   main.add(clickmovie_men);
                             main.add(view);
                             //action_xmen.getContentPane().add(view,BorderLayout.SOUTH);
                   action_xmen.getContentPane().add(main,BorderLayout.WEST);
                   action_xmen.getContentPane().add(xmen_overview,BorderLayout.EAST);
                   action_xmen.show();
                        else if(act=="Spiderman")
                             JFrame action_spider= new JFrame("--- New Line Movie: Spiderman --- ");
                             action_spider.setSize(400,350);
                   action_spider.show();
              //Create combo box with cartoon movies choices
              JComboBox cartoonChoices=null;
              String[] cartoonmovie={"-Select a movie-","Le Roi Lion"};
              cartoonChoices=new JComboBox(cartoonmovie);
              cartoonChoices.setSelectedIndex(0);
              cartoonPanel.add(cartoonChoices);
              //cartoonChoices.addActionListener();
              //Create combo box with comedy movies choices
              JComboBox comedyChoices=null;
              String[] comedymovie={"-Select a movie-"};
              comedyChoices=new JComboBox(comedymovie);
              comedyChoices.setSelectedIndex(0);
              comedyPanel.add(comedyChoices);
              //comedyChoices.addActionListener();
              //Create combo box with fiction movies choices
              JComboBox fictionChoices=null;
              String[] fictionmovie={"-Select a movie-","ET"};
              fictionChoices=new JComboBox(fictionmovie);
              fictionChoices.setSelectedIndex(0);
              fictionPanel.add(fictionChoices);
              //fictionChoices.addActionListener();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.pack();
              frame.setVisible(true);
    //Implement player function here
    import java.io.*;
    import java.awt.*;
    import java.net.*;
    import java.awt.event.*;
    import java.util.Vector;
    import javax.media.*;
    import javax.media.rtp.*;
    import javax.media.rtp.event.*;
    import javax.media.rtp.rtcp.*;
    import javax.media.protocol.*;
    import javax.media.protocol.DataSource;
    import javax.media.format.AudioFormat;
    import javax.media.format.VideoFormat;
    import javax.media.Format;
    import javax.media.format.FormatChangeEvent;
    import javax.media.control.BufferControl;
    * Client to receive RTP transmission using the RTPConnector.
    public class Client implements ReceiveStreamListener, SessionListener,
         ControllerListener
    String sessions[] = null;
    RTPManager mgrs[] = null;
    Vector playerWindows = null;
    boolean dataReceived = false;
    Object dataSync = new Object();
    public Client(String sessions[]) {
         this.sessions = sessions;
    public Client(String a, String b)
         }//constructor
    protected boolean initialize() {
    try {
         mgrs = new RTPManager[sessions.length];
         playerWindows = new Vector();
         SessionLabel session;
         // Open the RTP sessions.
         for (int i = 0; i < sessions.length; i++) {
              // Parse the session addresses.
              try {
              session = new SessionLabel(sessions);
              } catch (IllegalArgumentException e) {
              System.err.println("Failed to parse the session address given: " + sessions[i]);
              return false;
              System.err.println(" - Open RTP session for: addr: " + session.addr + " port: " + session.port + " ttl: " + session.ttl);
              mgrs[i] = (RTPManager) RTPManager.newInstance();
              mgrs[i].addSessionListener(this);
              mgrs[i].addReceiveStreamListener(this);
              // Initialize the RTPManager with the RTPSocketAdapter
              mgrs[i].initialize(new RTPSocketAdapter(
                             InetAddress.getByName(session.addr),
                             session.port, session.ttl));
              // You can try out some other buffer size to see
              // if you can get better smoothness.
              BufferControl bc = (BufferControl)mgrs[i].getControl("javax.media.control.BufferControl");
              if (bc != null)
              bc.setBufferLength(350);
    } catch (Exception e){
    System.err.println("Cannot create the RTP Session: " + e.getMessage());
    return false;
         // Wait for data to arrive before moving on.
         long then = System.currentTimeMillis();
         long waitingPeriod = 30000; // wait for a maximum of 30 secs.
         try{
         synchronized (dataSync) {
              while (!dataReceived &&
                   System.currentTimeMillis() - then < waitingPeriod) {
              if (!dataReceived)
                   System.err.println(" - Waiting for RTP data to arrive...");
              dataSync.wait(1000);
         } catch (Exception e) {}
         if (!dataReceived) {
         System.err.println("No RTP data was received.");
         close();
         return false;
    return true;
    public boolean isDone() {
         return playerWindows.size() == 0;
    * Close the players and the session managers.
    protected void close() {
         for (int i = 0; i < playerWindows.size(); i++) {
         try {
              ((PlayerWindow)playerWindows.elementAt(i)).close();
         } catch (Exception e) {}
         playerWindows.removeAllElements();
         // close the RTP session.
         for (int i = 0; i < mgrs.length; i++) {
         if (mgrs[i] != null) {
    mgrs[i].removeTargets( "Closing session from AVReceive3");
    mgrs[i].dispose();
              mgrs[i] = null;
    PlayerWindow find(Player p) {
         for (int i = 0; i < playerWindows.size(); i++) {
         PlayerWindow pw = (PlayerWindow)playerWindows.elementAt(i);
         if (pw.player == p)
              return pw;
         return null;
    PlayerWindow find(ReceiveStream strm) {
         for (int i = 0; i < playerWindows.size(); i++) {
         PlayerWindow pw = (PlayerWindow)playerWindows.elementAt(i);
         if (pw.stream == strm)
              return pw;
         return null;
    * SessionListener.
    public synchronized void update(SessionEvent evt) {
         if (evt instanceof NewParticipantEvent) {
         Participant p = ((NewParticipantEvent)evt).getParticipant();
         System.err.println(" - A new participant had just joined: " + p.getCNAME());
    * ReceiveStreamListener
    public synchronized void update( ReceiveStreamEvent evt) {
         RTPManager mgr = (RTPManager)evt.getSource();
         Participant participant = evt.getParticipant();     // could be null.
         ReceiveStream stream = evt.getReceiveStream(); // could be null.
         if (evt instanceof RemotePayloadChangeEvent) {
         System.err.println(" - Received an RTP PayloadChangeEvent.");
         System.err.println("Sorry, cannot handle payload change.");
         System.exit(0);
         else if (evt instanceof NewReceiveStreamEvent) {
         try {
              stream = ((NewReceiveStreamEvent)evt).getReceiveStream();
              DataSource ds = stream.getDataSource();
              // Find out the formats.
              RTPControl ctl = (RTPControl)ds.getControl("javax.media.rtp.RTPControl");
              if (ctl != null){
              System.err.println(" - Recevied new RTP stream: " + ctl.getFormat());
              } else
              System.err.println(" - Recevied new RTP stream");
              if (participant == null)
              System.err.println(" The sender of this stream had yet to be identified.");
              else {
              System.err.println(" The stream comes from: " + participant.getCNAME());
              // create a player by passing datasource to the Media Manager
              Player p = javax.media.Manager.createPlayer(ds);
              if (p == null)
              return;
              p.addControllerListener(this);
              p.realize();
              PlayerWindow pw = new PlayerWindow(p, stream);
              playerWindows.addElement(pw);
              // Notify intialize() that a new stream had arrived.
              synchronized (dataSync) {
              dataReceived = true;
              dataSync.notifyAll();
         } catch (Exception e) {
              System.err.println("NewReceiveStreamEvent exception " + e.getMessage());
              return;
         else if (evt instanceof StreamMappedEvent) {
         if (stream != null && stream.getDataSource() != null) {
              DataSource ds = stream.getDataSource();
              // Find out the formats.
              RTPControl ctl = (RTPControl)ds.getControl("javax.media.rtp.RTPControl");
              System.err.println(" - The previously unidentified stream ");
              if (ctl != null)
              System.err.println(" " + ctl.getFormat());
              System.err.println(" had now been identified as sent by: " + participant.getCNAME());
         else if (evt instanceof ByeEvent) {
         System.err.println(" - Got \"bye\" from: " + participant.getCNAME());
         PlayerWindow pw = find(stream);
         if (pw != null) {
              pw.close();
              playerWindows.removeElement(pw);
    * ControllerListener for the Players.
    public synchronized void controllerUpdate(ControllerEvent ce) {
         Player p = (Player)ce.getSourceController();
         if (p == null)
         return;
         // Get this when the internal players are realized.
         if (ce instanceof RealizeCompleteEvent) {
         PlayerWindow pw = find(p);
         if (pw == null) {
              // Some strange happened.
              System.err.println("Internal error!");
              System.exit(-1);
         pw.initialize();
         pw.setVisible(true);
         p.start();
         if (ce instanceof ControllerErrorEvent) {
         p.removeControllerListener(this);
         PlayerWindow pw = find(p);
         if (pw != null) {
              pw.close();
              playerWindows.removeElement(pw);
              //p.close(); //i added to know if player close when click
         System.err.println("Client internal error: " + ce);
    * A utility class to parse the session addresses.
    class SessionLabel {
         public String addr = null;
         public int port;
         public int ttl = 1;
         SessionLabel(String session) throws IllegalArgumentException {
         int off;
         String portStr = null, ttlStr = null;
         if (session != null && session.length() > 0) {
              while (session.length() > 1 && session.charAt(0) == '/')
              session = session.substring(1);
              // Now see if there's a addr specified.
              off = session.indexOf('/');
              if (off == -1) {
              if (!session.equals(""))
                   addr = session;
              } else {
              addr = session.substring(0, off);
              session = session.substring(off + 1);
              // Now see if there's a port specified
              off = session.indexOf('/');
              if (off == -1) {
                   if (!session.equals(""))
                   portStr = session;
              } else {
                   portStr = session.substring(0, off);
                   session = session.substring(off + 1);
                   // Now see if there's a ttl specified
                   off = session.indexOf('/');
                   if (off == -1) {
                   if (!session.equals(""))
                        ttlStr = session;
                   } else {
                   ttlStr = session.substring(0, off);
         if (addr == null)
              throw new IllegalArgumentException();
         if (portStr != null) {
              try {
              Integer integer = Integer.valueOf(portStr);
              if (integer != null)
                   port = integer.intValue();
              } catch (Throwable t) {
              throw new IllegalArgumentException();
         } else
              throw new IllegalArgumentException();
         if (ttlStr != null) {
              try {
              Integer integer = Integer.valueOf(ttlStr);
              if (integer != null)
                   ttl = integer.intValue();
              } catch (Throwable t) {
              throw new IllegalArgumentException();
    * GUI classes for the Player.
    class PlayerWindow extends Frame {
         Player player;
         ReceiveStream stream;
         PlayerWindow(Player p, ReceiveStream strm) {
         player = p;
         stream = strm;
         public void initialize() {
         add(new PlayerPanel(player));
         public void close() {
         player.close();
         setVisible(false);
         dispose();
         public void addNotify() {
         super.addNotify();
         pack();
    * GUI classes for the Player.
    class PlayerPanel extends Panel {
         Component vc, cc;
         PlayerPanel(Player p) {
         setLayout(new BorderLayout());
         if ((vc = p.getVisualComponent()) != null)
              add("Center", vc);
         if ((cc = p.getControlPanelComponent()) != null)
              add("South", cc);
         public Dimension getPreferredSize() {
         int w = 0, h = 0;
         if (vc != null) {
              Dimension size = vc.getPreferredSize();
              w = size.width;
              h = size.height;
         if (cc != null) {
              Dimension size = cc.getPreferredSize();
              if (w == 0)
              w = size.width;
              h += size.height;
         if (w < 160)
              w = 160;
         return new Dimension(w, h);
    public static void mainCl(String argv[])
         if (argv.length == 0)
         prUsage();
         Client avReceive = new Client(argv);
         if (!avReceive.initialize()) {
         System.err.println("Failed to initialize the sessions.");
         System.exit(-1);
         // Check to see if Client is done.
         try {
         while (!avReceive.isDone())
              Thread.sleep(1000);
         } catch (Exception e) {}
         System.err.println("Exiting Client");
    static void prUsage() {
         System.err.println("Usage: Client <session> <session> ...");
         System.err.println(" <session>: <address>/<port>/<ttl>");
         System.exit(0);
    }// end of Client

    hi,
    i have try compile your source code...anyway, there is 28 errors..I m not sure where is the errors come from. Currently , i m working on the same project as you. Trying to play the media at client machine, but stil can't manage to do so. Can i have your email address? I want to consult you a bit about my project .Is it ok? Thanks =).

  • How can I make the player show the song's rating all the time?

    I want to be able to see the rating of the song that is playing.  I know I can open a menu that will show it, but I want to be always displayed in the player.  How do I do this? 
    also: I am trying to rate all the songs in my library.  I have tried to create a playlist that only shows unrated songs, but as soon as I rate a song, it's removed from the list and playback stops completely instead of going on to the next song.  Is there a was to fix that?

    Add Battery Percentage to iPod Touch 5th Generation on IOS 6+ without Jailbreaking
    Note % battery is not accurate on the iPod. You will see large fluctuations in % battery

  • Does anyone leave the player with the charger for longer than 3 hou

    Like if they decided to charge the player up before going to bed? The book advises against it because of overheating issues, but shouldn't chargers know when to stop repleneshing energy to the battery?

    This may be a little off topic, but knowing now it's ok to leave it plugged in and (according to another thread) have it plugged in when transfering files...at the risk of revealing crass ignorance, can I have it plugged in while listening to it so as to preserve battery life still further (ie if I'm sitting on a chair or in bed, not running with 3 km of flex trailing out behind me!)? According to the manual this is a no no, but surely...

  • HT1420 How do I get the songs transfered from my IPOD touch that are on the player but the sync won't transfer?

    How do I transfer songs that are on my IPOD touch to my new PC? It only recognizes songs I purchased on itunes?

    That is correct.
    The sync is one way - computer to ipod.  The only excetion is itunes purchases.
    The music came from your computer in the first place and should still be there and in your regular backup copy of your computer.

  • Status of the player

    hi
    ok im developing a game, in the game the player has to hit moles that pop up randomly and i want to add a status bar of the player in to the game.
    what i mean is that the bar has to ends good and bad. when the game starts the player is rated as a middle player because the player is niethjer good or bad. but as the game starts the bar begins to decrease and if the player hits the moles then the bar goes up representing that the player is quite good. basically its the job of the player that causes the bar to go either up or down according to the how the player plays. so if the player hits moles the status of the bar goes up and if the player misses the moles then the status of the bar starts to decreses.
    i hope that kinda makes sense but i am stuck!!!!!! i have no idea how to go about it.
    any suggestions or sample code is greately apprieciated!!!!!!!!
    thanks

    You could use cubes placed one after the other to represent the status. If there was no gap between a cube and the one which followed, it would look like a bar. So say if the status was full you would have maybe ten cubes all positioned one after the other, as time progressed you would remove the cube on the end, and if the player hit a mole, you would add one to the end.
    The way you would code this would be to create a translation for each cube and then attach it to the translation of the cube before it. Each translation would be the same distance, but because each cube is chained to end it undergoes all the translations from the start.
    CUBE 1
    |
    ------------ CUBE 2
    |
    --------------- CUBE 3
    |
    ------------------ CUBE 4
    Jonathan

  • How can I get the iTunes player in the taskbar?

    I've tried to find an answer to how I can do this in Windows 8 however there are no answers. I don't want the icon where I have to click and select what I want iTunes to do. I've done the thing where I add the toolbar to the taskbar and allowed iTunes to minimize to the tray but all this does is give me the icon. I want the player in the taskbar so I can just click play/pause and such. I've got the newest version of iTunes.

    1) ensure iTunes is authorized for your iTunes store account(s)
    2) connect your device and right-click or control-click it in the iTunes Source list, then choose transfer purchases from the shortcut menu that appears.
    3) sync the device
    iTunes will wipe the iPhone but, since you transferred your purchases in the previous step, your content will be in your library and you can re-populate the iPhone with it.
    above works for purchases from the iTunes store. for everything else, check out this post by Zevoneer.

  • How does the player talk to the debugger

    Is there some way to interact with the player through the
    debugging connection instead of the Flex Debugger? (A possible
    application could be automation, code coverage, etc.)

    Both Lee Jay and Beat are correct.
    When downloading profiles with ALPD, the thing to avoid is downloading a profile made with a camera that has a smaller sensor than yours. 
    For example: Suppose you have a Nikon D700 (full frame sensor). You don't want to download profiles made with a Nikon D90 (1.5x crop) and use those with the D700.

  • Zen XFi- 2 crashed and can't see any files on the player after reset

    My zen crashed yesterday and after i reset it - everything that was on the player has gone - music pictures applications etc - however if i plug the player into the PC all music etc is still on the player - i have reloaded the firmware but no joy - any ideas ?

    Copied media files to a HPFS+ (journaled) SimpleTech USB drive connected to my iMac. Files copied fine and can be accessed from the iMac with no problems.
    I connect it to the TC, the drive can be seen and mounted over the network but the files do not show up. The free space corresponds to the free space left by the files I had copied--but again the files do not show up.
    TC file sharing is on and is working fine as demonstrated by access to the internal drive without problem. And the USB drive shows up in the airport utility without error indication. Files copied over the network to the USB drive are accessible as expected (read/write/delete--no problem).
    Any advice?
    Thanks,
    Mark

  • Zen Touch: Importing Playlists to the player with new firmware?/ Where do I get MediaSourc

    Hello!
    I have a problem with my Creative Zen Touch. I have updated the firmware of the Player to 2.., the new one which causes many trouble. The trouble is that I can throw my music via plug and play on the Player, but just with the Media Explorer for Play-for-Sure-Devices and with the Windows Media Player 0.
    With this programs it works quite fine, but I cannnot import playlists to the player, just the plain files. With the Media Explorer for Play-for-Sure-Devices I cant even select the Playlists and with the Windows Media Player the files just get loaded onto the player, but it does not import the playlist into the playlist-screen in the media-library in my Zen Touch.
    Before the stupid firmware-update came out, I used the Creative MediaSource-software, this worked quite well, because I also could import my Windows-Media-Player-Playlists and this was great. But now it does not work anymore. The problem with MediaSource is that after the firmware-update it does not recognize that my Zen Touch is connected with the PC. That is the reason why I cannot use this software to drag my music onto the Zen Touch.
    I tried to update my MediaSource via Internet via the auto-update-tool. Now I have mediaSource 3.30.2 but it still does not work. In this forum I read that there is a version 5 avaiable but where can I get it's Would it actually solve the recognizing-problem
    Are there maybe other possibilities to solve this problem
    I really need your help!
    Thank you,
    your Dridge from Germany

    OK, now I have found the MediaSource5-Software and I have downloaded and installed it. In the startpage there is at the end of the box "transfer playlist" but if I click on it, it says, that my Zen Touch is not connected. Overall the new MediaSource does not recognize my player, like the version 3 did too. But other software is recognizing that the Zen Touch is connected with the PC, like the Windows Media Player 0 or the Media Explorer for PlaysForSure-Devices.
    Please help me!

  • [ZEN V] Sync manager detects the player, firmware upgrade don

    Hello, I've got a Creative ZEN V and I've delete the firmware from the recovery menu to reload new firmware. The syncmanager and the other creative products detects the player. When I'm running the program which installs the new firmware the program said: 'Your player is not connected'. But the player is connect! I can see the player on the windows device manager, and the sync manager. But the firmware tool doesn't see the player! My configuration:Windows XP SP2Media player 0 Creative has got a tool called 'MP3 recovery tool', this program downloads the correct firmware for your device, the recovery tool detects my ZEN V and download the correct firmware, after downloading the firmware install tool is running. And said also: 'Your player is not detect', it is strange the recovery tool detects the player and the firmware update don't! Please help me!

    My God! Why Creative messed up like this with there software. Actually i was always happy but this...
    I could install the firmware (2.0 - and without the steps descriped before i couldnt even do that) but still the player is shown in the file explorer, but no software will synchron or recognices the player.
    Ohh, so many hours for nothing. But if I'll get news from creative - i will post.
    http://forums.creative.com/creativelabs/board/message?board.id=dap&message.id=4634&query.id=7783 #M4634

  • How Do I "Disconnect" A Player From The Computer, Without Disconnecting

    Okay, so here's what I want to do...
    I do a lot of my "media management" on my computer at work (downloading and transcoding music), and so my music player is constantly connected to my computer. However, sometimes I want to use my player WHILE connected to the computer.
    However, when it's connected, it's always in the "docked" mode. What I would like assistance doing is "disconnecting" the player from the computer from being "seen" by the computer, yet allow it to continue charging, while plugged into the computer. I know this can be done, as I've done it before (on Windows XP), but cannot remember how to.
    Can anyone help me refigure out how to do this in Windows XP and also in Windows Vista, please?

    Well, sadly, I have tried this, and it does not work. The computer still sees the player, it just isn't autodetected, but the player still sees that it is connected to the computer, so I cannot charge and listen to music when it's connected to the computer... :'(

  • Fixing the problem with the Device Not Recongized by WMP and Mediasource problem with MTP devi

    PLEASE READ THE WHOLE THING!!! I KNOW IT SOUNDS LIKE MANY OTHER FAILED SOLUTIONS BUT YOU HAVE TO READ THROUGH MY WHOLE POST TO MAKE IT WORK!!!TRUST ME!!!
    ok, now I read this a billion times, and felt that I was the only idiot that had a "bad" computer that didn't allow me to use my Zen mtp device... but it turns out I was more idiotic than I thought. I hope this helps those who have the same problem I had...here goes...
    When you go to the Creative Labs website, go to Support, then Knowledge Base, then go to the MP3 players picture in the PRODUCT CATEGORY and click on it. You need to follow the steps that are described on the SID0053 Product Article. Then click on the Editing the System Registry link towards the bottom and it will tell you what to do...BUT there is something that I never ever did right and I bet lots of other folks didn't do right either. Once you are in the USB Properties seccion of the registry, YOU ACTUALY HAVE TO ADD THE WORD "EVERYONE" INTO THE ALLOWED SECCION!!! Not just because it says "Administrators" and what not means that EVERYONE IS ALLOWED, allow the word "everyone"thne click OK. Now, I did this with my Zen Touch on and plugged into the USB port and without the word DOCKED on it, as it wouldn't dock for me before this. that's it... hope it works for you, if it does then almost instantly the word DOCKED should appear on your MP3 player's Display. Hope that everyone has the same luck as I did. if not, I'll pray for you, I know how frustrating this problem is because I delt with it for toooooo long.

    I had a similar problem with my Zen Touch, but the only symptom was not being able to install MediaSource or the Software Suite. I got the same messages that you did. I was able to use Windows Explorer to add/edit/remove files, but I wanted the Zen Media Explorer so that I could create playlists. After about 2 days of research and trial and error, I ended up fixing it by uninstalling/reinstalling the drivers.
    If you don't know how to do that, here are instructions...
    I'm using XP SP2, btw, so if you're using another version of Windows, it might be slightly different...
    ) With the Zen connected, Right-click on "My Computer"
    2) Select "Properties"
    3) Click on the "Hardware" tab and select "Device Manager"
    4) Right Click on "MTP Device" (or MTP Media Player) and select "Uninstall"
    5) Disconnect the player from the computer, wait about 5 secs, and reconnect.
    When you reconnect it, the drivers will be reinstalled. Try running the setup again after that.
    If that still doesn't work, look for random optional Windows updates, maybe?...esp. PlaysForSure, WMP, or USB/mobo/INF/Chipset driver updates...or maybe when it says "Setup could not detect and portable device on your system. Setup will now install the necessary drivers to enable your device to be detected," it actually <i>is</i> doing something, but it isn't apparent until you reinstall the driver. To be honest, I just don't know. The computer I'm using is only a few months old and I didn't have any problems installing on an older computer.
    Oh well. I hope that fixes your problem.
    As far as the problem with the 360 connectivity, I'm sorry I can't help you there.Message Edited by potestasx on -03-2006:28 PM
    Message Edited by potestasx on -03-2006:45 PM

  • Mouse position outside of the top-most container

    I know how to acquire the position of the mouse through either the MouseListener or MouseMotionListener interfaces by calling the getX() and getY() of the MouseEvent class.
    But if the mouse is moved outside of the top-most container, eg. a JFrame, then the methods in the two listener interfaces above aren't called.
    So, does anyone know how I can retrieve the position of the mouse if it is outside the JFrame?
    Thanks,
    Dewi Williams

    As far as I know this is not possible using pure Java. Search the native methods forum for the OS(s) you are supporting and this topic.

Maybe you are looking for