Player move to tile

I have a player movie clip and a tile movieclip. When I click the tile movieclip, it adds buttons on the screen. When I click the button, I want the player to go to that tile movieclip that was clicked, however, it isn't working.
function mouseclick(event:MouseEvent)
                                                  (event.currentTarget as Tile).outline.gotoAndStop("active");
                                                  addChild(skip_btn);
                                                  skip_btn.buttonMode = true;
                                                  ////////////////SKIP BUTTON FUNCTIONALITY/////////////////////
                                                  if (player.x == (event.currentTarget.x) && player.y == (event.currentTarget.y)) {
                                                            skip_btn.buttonMode = false;
                                                            skip_btn.gotoAndStop("inactive");
                                                  else {
                                                            skip_btn.gotoAndStop("out");
                                                            skip_btn.buttonMode = true;
if (skip_btn.skipClick == true){
                                                            removeChild(skip_btn);
                                                            player.x = (event.currentTarget.x);
  player.y = (event.currentTarget.y);
                                                            trace("MOVE!");
                                                            skip_btn.skipClick = false;
Basically if a player is on a tile and you click that tile, then the button appears, but it isn't clickable. If you click another tile that the player is not on, then it is clickable and the player should move there, but it doesn't. Any ideas on how to get this to work?

i assume you're posting your tile listener function and have not posted the button's listener function. 
in the tile listener function i do not see that you're saving a reference to the tile so it's not clear how the button's listener function will know which tile to go to.  you probably need to fix that and you should post your button's listener function.

Similar Messages

  • I have vlc player movies on my external hard drive; can i watch these on the apple ipad?

    i have vlc player movies on my external hard drive; i normally watch them on an windows laptop; can i watch these on the apple ipad?

    <edited>
    There's a vlc streamer app in the app store, but you would need to also install the streamer helper on the device where the movies reside. This works between my macbook and my ipad, but if you cannot access the external drive and install the helper file, then probably not

  • Applet Game Programming - player movement

    HI Java Experts,
    I have a very simple question applet game programming - jdk 1.02.
    Let's say you have a player on the applet window. He can move right and left.
    Naturally you have an image representing the player. When the player moves left you present an image loop with him running left. And vice versa for running right.
    Of course when he stops moving you just want to show a still image.
    What do you guys feel is the best technique for that situation ?
    Stephen

    Hi Thanks for the advice.
    I'm under the impression that if I used jdk1.4
    everybody who wanted to play the game would have to go
    through the trouble of downloading something . If
    that is so, then i would like to stick with 1.02 to
    have the widest possible audience.Use Java Web Start to deploy it as an application instead of an Applet. If your program is really cool, people will download the JDK 1.4 to use it. Then we will have more java users in the world :)
    By the way i have a URL perhaps someone could look > at the source code and give additional suggestions
    you can make sonic the hedge hog run and jump
    http://www.swebdev.com/Adventure.html
    That code has some good points. I like the nice object oriented flow of it. However, the way he sets up the Thread is all wrong. He uses yield and sleep, you would want to set up this using wait() and notifyAll() calls if you want to make it more interesting.
    Right now i'm trying to address the issue of how to
    reverse the image for when the player is running the
    opposite way -- ? perhaps a separate thread in 1.02
    might be an answer? I would be glad to hear all kinds
    of suggestions on the sample code seen thereYou shouldn't need a separate thread just to reverse the image. If your little guy is already in his own thread, just switch the image that is displayed when the player hits the opposite direction key.
    Think of threads like puppets, and you are the puppet master. Your little guys is a puppet, so he should be in his own thread. You can make him do whatever you want from your thread (the master) by pulling strings (changing globals, and message passing)
    Wow... Thats a really good analogy... I just thought that up :)

  • Download windows media player movies to itunes to ipod

    download windows media player movies to itunes to ipod?  downloaded music ok

    I saw that post... but it doesn't match the screen in Windows Media Player 0. On the Sync tab there is a Start Sync button a Edit Playlist button and Set up Sync button. The 'Set up Sync' button is always disabled.
    I can't figure out how to get the playlists downloaded to the Zen Touch. Windows Media Player 0 would be the way to go if I could get the playlists to download.
    I have played around over and over with the screens etc... I just can't figure out how to make them download with the Zen Touch anyway... 40 gig, for what it's worth.
    If someone has been able to do this with a Zen Touch, I would love to know how to do it.
    mg
    Message Edited by ng7m on 02-03-2005 05:33 AM

  • Flash Player movie not working.

    Hi,
    I tried to add flash player movie in website(www.consumer-court.in) but that movie is not working it is due to browser problem or need to install flash player in my system and my browser name and version is FireFox 3.6.
    Please help.

    This doesn't seem to relate to Acrobat, so you should try one of the Flash forums: http://forums.adobe.com/community/flash

  • Why Does QT Player Movie Show Flip4Mac Icon?

    I use Mavericks 10.9.3.  Please see enclosed picture.  Why does QuickTime Player Movie (that has been converted to QuickTime.mov) show a Flip4Mac icon on the top right hand side of movie? How do I remove that Flip4Mac icon?

    That watermark is put there by Flip4Mac. Apparently there was a bug in that extension, that was fixed in the latest version:
    Version 3.3.0.9:
    Removed Flip4Mac watermark from playback.

  • Choppy player movement

    I have coded an enging for a smooth-scrolling, top-down third person view online game, and I am making many things server side to eliminate security risks. Every time the client presses an arrow key, it sends the direction to the server, which in turn changes the players coordinates, and sends them back to the player. The client has a thread to repaint the map at every 10 milliseconds.
    I have also made a thread with a timer to send out the coordinates of all the players on one map to all the players on that same map. The problem is, even with a timer of this.wait(10), the player movement is still choppy.
    I was wondering if there were any way to do this (other than the way I proposed), or if there is any way to eliminate the choppy movement of the player.

    Well that's strange because people who have downloaded it from Youtube and played locally (including me) don't find it choppy at all.  The video only becomes choppy when playing on Youtube, and that's only for some viewers.  People either find it choppy or completely smooth.
    http://forum.videohelp.com/threads/363688-Youtube-video-choppy-during-camera-movement-for- some-viewers?p=2314056
    http://forums.afterdawn.com/t.cfm/f-4/youtube_video_choppy_during_playback_for_some_viewer s-973920/
    http://forum.videohelp.com/threads/363096-Embedded-video-smoother-than-actual-Youtube?p=23 08460#post2308460

  • Loading Movies from Tile List

    I have two questions.
    I want to click on a thumbnail in a tile list and have that
    thumbnail load a related movie into the video player.
    I also want the loaded movie to continuously loop, however,
    quicktime doesn't support above actionscript 1.0.
    Any Ideas?

    Hi Mindy,
    If it has a FireWire connection, use that to connect it to your MBP, open iMovie, and import.

  • Flash player "Movie not loaded" in Chrome on certain pages.

    When tryingto load a video in Chrome I get a blank window and a "movie not loaded" message when I right click. The video doesn't work in Firefox or IE either. It just doesn't display the player at all.
    Youtube works though and I can see the test flash animation on adobe's website but it's not working on a specific website. I tried I uninstalling Flash using Revo and reinstalling it, running CCleaner, disabling hardware acceleration, updating Chrome and deleting flash player's stored data.
    I read some where that it might be network/firewall related but I wouldn't know how to investigate that.
    Any ideas on how to fix this?

    Couple things...
    Since you are using the old, outdated <object><embed> method, you normally use a classID with the object, like this:
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="550" height="400">
    along with the correct path to the file name... (you are using a fake filename in the object)
    But a better method is to skip the <embed> entirely and use this updated version of <object>
    <object data="http://www.gwarg.dk/images/GWG2.swf" type="application/x-shockwave-flash" width="550" height="400">                   
               <param name="movie" value="http://www.gwarg.dk/images/GWG2.swf">
               <param name="quality" value="high" />
    </object>
    You can change the path to relative paths instead of absolute if you like.
    Best wishes,
    Adninjastrator

  • Now all I get  on IPhoto export is a  Player movie. I have QuickTime 7.2.0

    Now all I get on IPhoto export is a movie. I haveQuickTime™ Version 7.2.0, Player Version 7.2 (7.2)
    It will at least export now. I removed the File exporter. How can I reinstall IPhoto 7 '08? Can I just drag the iphoto app to the trash and then install I Photo 7? Is that safe?

    To reinstall iPhoto the application need to be deleted and all files with iPhoto in the file name that reside in the HD/Library/Receipts folder. Then iPhoto 08 will install.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Adobe Flash Player "Movie Not Loaded" on Browsers?

    On Browsers (Firefox, Chrome) Adobe Flash Player does not display and only shows a white empty space that, when right clicked, says "Movie not Loaded".
    Can someone help me to fix this issue?

    Im able to stream youtube video.Bt when i try to stream a local video, white
    screen occurs.
    This is my code
    <object width="630" height="312" classid="clsid:D27CDB6E-AE6D-
    11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0">
                       <param name="salign" value="lt"/>
                      <param name="quality" value="high"/>  
                      <param name="scale" value="noscale"/>
                       <param name="wmode" value="transparent"/>
                      <param name="movie" value="http://geekfile.googlepages.com/flvplay.swf"/>
                       <param name="FlashVars"                              value="&streamName=http://localhost:8080/resources/video/demo-video.flv&skinName=http://geekfile.googlepages. com/flvskin&autoPlay=true&autoRewind=true"/> 
                           <embed     width="630"
                                  height="312"
                                                                  flashvars="&streamName=http://localhost:8080/resources/video/demo-video.flv&autoPlay=true&autoRewind=true&skinName=http://geekfile.googlepages.co m/flvskin"
                                   quality="high"
                                  scale="noscale"
                                  salign="LT"
                                  type="application/x-shockwave-flash"
                                   pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://geekfile.googlepages.com/flvplay.swf"
                                   wmode="transparent">
                              </embed>
                </object>

  • I need help with Flash Player, "movie not loaded".

    Sometimes movie loads, sometimes not.  Sometimes loads upon refresh, somtimes not.  I cannot figure out how to get Flash to load reliably.  This happens frequently while surfing the internet with IE10 on Windows 7 64bit sp.  I use Microsoft Security Essentials and Windows Firewall.  I prefer to set pop-up blocking on high but have lowered it to medium to no avail.  I have uninstalled Flash using the step by step instructions on Adobe site and reinstalled version 12.0.0.77 twice.  I have unstalled and reinstalled IE 10.  Clearing the catch does not help.  Clicking in and out of compatability setting also does not get flash to load.  I have run out of ideas.  Is there some setting I am missing.  Flash is on so many sites and its so unreliable it is frustrating.

    Sorry, I thought I had mentioned everything.  Active x filtering is off and Shockwave flash object is enabled.  I have cleared the IE catch and the Flash Player catch.
    I should also point out that it is not that some videos play and others do not,  The same video will work sometimes and sometimes not.  I go back to check and sometimes the video loads and then it doesn't again.  I wondered if it had to do with different advertisers before the link played or something like that.  Something is randomly happening it seems.

  • Flash Player movies not activating in Internet Explorer

    I had Internet Explorer 6.0 and now 7.0... same thing occurs
    in both programs... PROBLEM: I have a very simple webpage with
    Flash Buttons for navigation. When I load the page in IE, the
    buttons are NOT activated. When I put my mouse over the control, a
    message reads... "Click to activate and use this control". I have
    tried to ENABLE every ActiveX control option I can find in IE
    settings to allow Flash Player to run as an add-on. I have deleted
    Flash Player and reloaded the page, it asks me to install Flash 9.0
    which I have done. But when I load the webpage... the controls are
    not active till I click on them to activate then I have to click
    again for the navigation. I AM TOTALLY DUMBFOUNDED and pulling my
    hair out to get these controls to work. They work fine in
    FireFox... The HTML code is correct for the Object & Embed
    tags. SOMEONE PLEASE HELP!!! It would be greatly appreciated!

    This is a known problem with Internet Explorer 11, which Microsoft has been aware of since October 18 when they released their latest "untested" browser. The pages can't recognize the browser, so they don't recognize any of the plugins, like Flash Player. So far, Microsoft has made NO indication that they have any plan to fix it soon.
    Microsoft's recommendation is to use Compatibility View for affected pages, and "pretend" you're using an different browser. Trouble with that is it has seen limited success at best, and you have to individually enable it for EVERY page that has problems.
    I'm not big on "pretending" so I recommend actually using another browser.
    Firefox (from Mozilla)
    Opera (from Opera)
    Safari (from Apple)
    Chrome (from Google)
    ANY of those will work where IE11 won't, with the Flash Player Plug-in (For all other browsers), and Chrome doesn't even need that because it has its own Flash Player plugin built in.

  • Is possible to convert a Real Player Movie to Quiketime or better yet, DVD?

    I have a great shot of my wedding that I would like to cut and paste into my DVD project but it is in Real Player format. Is it possible to convert it into a format that I can use with iDVD?

    I got hitched in Vegas at the Viva Las Vegas Wedding Chaple and they recorded a dvd and they brodcasted it on line live using Real Player... Long story short I have 2 views of my wedding (1 on DVD and another from another angle in Real Player) and I'd like to combine them (edit them) into one. So if anyone has any other ideas that I should look into please let me know.
    Thanks.

  • Simple Grid/Tile based layout

    I am trying to create a simple game, where there is the human controlled character and some enemy placed in a maze. When you take one move, the enemy takes one move, until he reaches you or you reach the exit.
    What I'm having trouble figuring out is how I can lay all this out.
    What I'm envisioning is a 2 dimensional array, with each position either a 0 or 1 depending on if the user can move there or not.
    Is there a way in java to implement a grid style playing field, such that the player moves from tile to tile, and incoporate collision detection with the use of the array values?
    I could realy use some help here, I was thinking of using a layout manager, but I don't think the two ideas are compatible. Please help!

    Assuming your not going to use a special-purpose gaming library, you'll probably have to build most from scratch.
    A simple way of doing it would probably be to to create a 2-dimensional Tile array, in which Tile is a class you'll write yourself to hold all relevant information (painting info, wether it can be moved to, etc).
    If you're going for a 'square' looking game (as opposed to isometric) you might be able to use GridLayout to some extent. But in that case (or when using any other layout manager) your Tiles will have to subclass Component. My guess is that it will quickly become more work to cram everything into Component-shape than it's worth...
    Short skeleton-example of what I might do:
    public class Game extends JFrame {
        private Tile[][] tiles;
        private Monster[] monster;
        private Player player;
        private GameCanvas canvas;
        public Game() {
            canvas = new GameCanvas();
            add(canvas);
            //other initialization, listeners, etc.
        //you could call something like this when you detect user input that implies a move
        private void move(int x, int y) {
            if (tiles[x][y].isPassable()) {
                player.moveTo(x, y);
                for (int i = 0; i < monsters.length; i++) {
                    monsters.makeMove();
    canvas.repaint();
    } else {
    //inform user that he can't move to (x, y)
    private static class GameCanvas extends JPanel {
    public void paintComponent(Graphics g) {
    for (int i = 0; i < tiles.length; i ++) {
    for (int j = 0; j < tiles[i].length; j++) {
    //OtherPaintingInfo is stuff like coordinates, width, height, etc.
    //All of that more or less depends on how you want tiles to look
    tiles[i][j].paint(Graphics g, OtherPaintingInfo I);
    //do something similar for monsters and player
    private static class Tile {
    boolean isPassable() { ... }
    //Again, OtherPaintingInfo is just a placeholder for anything your impl. needs
    void paint(Graphics g, OtherPaintingInfo I() { ... }

Maybe you are looking for

  • How can I get the iTunes Store to open on my PC running Windows 7?

    I have upgraded iTunes software for my iPod Touch and my PC.  iTunes store will not open on my PC.  Is it supposed to open to purchase items or do I have to use the iPod Touch for all of this.

  • JDBC adapter connected to a DB in high availability!

    Hi folks, I have finished my scenario File -> XI -> JDBC and now I’m preparing to transport it to QAS. I found that Data Base of QAS is in two cluster nodes. I have two hostnames to fill the parameter <b><IP address></b> and I don’t know which hostna

  • Problem in displaying arabic

    Hi I am having a problem in displaying arabic language. The problem is that sentences are not being displayed in correct format. That is they are displaying in the format like left to right languages and not in the format like right to left languages

  • Numbers for iPad totalling check boxes

    I am very new to Numbers on iPad. I have been searching for how to total check boxes and gather that you use the function "countif" Am I missing something? I look in functions and can only see count or if, but not a countif option. How do you select

  • Changing database version in the application

    Hi The production site would be changing its database version from oracle 8.1.5 to oracle 8.1.6. Could I please have pointers to documents telling me the changes in the versions; or your expert comments; so that I would know the differences and the e