Help!(confused face) I'm new with flash and don't know why the timers don't work like i would expect

I'm new with flash and don't know why the timers don't work like i would expect.  In VB.NET timers are how you move stuff, but it doesn't look like they are ideal for moving stuff in flash at all (really slow).  I'm making a game in which you throw a ball around the screen. i am using a timer to get the ball to move. this doesn't work well for 2 reasons; 1: the ball jumps alot, and 2: the timer should eventually run out of time.  If anyone can help, i'd be thrilled cus this is my first post here, so yeah

Timing for movement would be more often dealt with using something that operates at the frame rate of the file.  The ENTER_FRAME event is usually selected for this purpose.
stage.addEventListener(Event.ENTER_FRAME, moveBall);
function moveBall(evt:Event):void {
     // your positioning code
You could use a Timer to control when to stop the listener from being active.

Similar Messages

  • My new iPhone 4s and my iPad 1 have the same problem: While working on one of them, the screen goes black and the right back to home screen. I've tried resetting the iPad with no chages to this problem. Need help, this is anoying.

    My new iPhone 4s and my iPad 1 have the same problem: While working on one of them, the screen goes black and the right back to home screen. I've tried resetting the iPad with no chages to this problem. Need help, this is anoying.

    I just did a reset all settings on both.
    Will see where this gets me.
    Thank you for your helpfull input.

  • HT2905 Many (most) of my songs in my library have multiplied. I now have doubles and triples of my music. I don't know why it has done this or how to fix this problem. This is a new problem since I synced a new ipod touch this week.

    Many(most) of my songs in my library have multiplied. I now have doubles and triples of my music. This is a new problem that started this week when I synced my new ipod touch. Why did this happen and how do I get rid of it. I have around 1400 duplicates in my library now.

    I suspect in this case the problem is caused by your library and device having downloaded independent copies of the media, so that when the library connects to the device it copies over your purchases not realizing they are already in the library.
    When deduping use Shift > View > Show Exact Duplicate Items as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks. If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin. Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See this thread for background and please take note of the warning to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed)
    tt2

  • I was syncing iPad 2 with my macbook and had no problems.  Now it will NOT sync my iCal on my mac with my iPad.  It only syncs with my gmail cal.  I don't know why the change happened.  Need to keep both calendars synced onto my iPad 2 .

    I was syncing iPad2 with my macbook and all iCal info was erased.  It only syncs google calendar.  Info on my iCal won't transfer to iPad.  No problems b4 tonite. 

    What is the file name of the video(s) you want to sync?
    Another way. You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
    Secrets of the iPad Camera Connection Kit
    http://howto.cnet.com/8301-11310_39-57401068-285/secrets-of-the-ipad-camera-conn ection-kit/
     Cheers, Tom

  • Ipod nano doesnt work with synchronizing and i dont know why...

    could you please help me with my ipod nano?
    From last week i cant make any synchro with my computer i´ve lost all my music and i cant put it back (as i use before)... every time when i make a connect ipod wants a make a whole deletaing and setting.....
    Thank you...
    (really i tried almost all what i could...)
    Lucka

    Same issue, possibly different circumstance? After each software update on my iPod 5, apps that I use regularly and/or have paid for are removed from my iPod. When I go to the app store to reinstall them, there is no option to reinstall or download. I have no restrictions set on my iPod.

  • HT4527 I can't find any of my previous purchases.  I had to buy a new computer because the old one died, and I also upgraded my iPhone.  I don't know why the music I previously purchased isn't stored in my iTunes account...?

    I can't find any of my previous purchases after upgrading my computer and iPhone - are they still in my iTunes account somewhere?

    Hi there leonfromNH,
    You may find the information in the article below helpful.
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/ht2519
    -Griff W. 

  • I keep getting "Unable to connect" for my firefox. It was working yesterday and I turned my computer off. I can get to the web using internet explorer 9. I don't know why my firefox is not working. Everything else is working. HELP....

    I keep getting "Unable to connect" for my firefox. It was working yesterday and I turned my computer off. I can get to the web using internet explorer 9. I don't know why my firefox is not working. Everything else is working.

    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.com/kb/Server+not+found
    *https://support.mozilla.com/kb/Firewalls

  • When i run labview6.1 on my pc with windows the "DAQ Solution " was gary doesn't work i don't know why ?i don't have a daq board card is that a reason? i want to know what should i have to use labview in data acquisitio​n?

    i am using a platform windows 98 ,and labview 6.1
    thanks in advance

    With the NI-DAQ driver, you can build VIs, but you can not acquire data until you have a Data Acquisition card. You can get these from National Instruments over the web or by calling.
    J.R. Allen

  • Help! Simple function not working like you would expect

    So I have a bunch of Aux channels in my mixer window and am trying to use the hand tool to grab them, one at a time, and move them into an order that makes more sense to me within the mixer window and I am not able to get this to happen. No matter how I have the hand tool set- as the left click tool or the command click tool. I try to get the hand to "Close" somewhere within the aux strip so I can move it and it just wont happen.
    Anyone???
    Thank you in advance!!!

    Thanks for the reply! I understand this however the channel strips I am trying to move are aux channels and as such are not in the arrange window. I have concocted a "work around" but really, this seems like one should be able to move around the aux channels as one sees fit.
    ??

  • Whats new with Flash Player 9.0

    Hi all ..
    i want to know whats new with flash player 9.0. what are the
    new features etc..
    thanks in advance

    > He is using stopAllSounds to stop sounds that are in
    seperate swfs on an html page. I tested it, and it does not work.
    In my
    > tests
    > I put 3 swfs on an html page (not loaded into each
    other). On the third swf I have the stopAllSounds command. It stops
    only it's
    > own sound in the third swf but has no effect on one.swf
    and two.swf's sound.
    > The thing is I don't know if stopAllSounds ever worked
    across separated swfs before in players before version 9.
    > tralfaz
    I have confirmed his complaint. stopAllSounds works correctly
    across multiple swfs on an html page using Flash player 8 but not
    with Flash Player 9.
    Incidentally, there is another big "improvement" (they say)
    that prevents you from uninstalling the Flash 9 player without
    running
    their uninstaller exe. Unfortunately, their uninstaller
    uninstalls all flash player versions (not just version 9) from ALL
    browsers
    so if just want to remove player 9 from IE you are forced to
    also uninstall it from FireFox etc as well. Great, huh?
    tralfaz

  • Help needed with flash and web service call

    Hi all,
    I need some help with web services and flash. I'm very new to flash, so please have that in the back of your mind when reading this :-)
    I've got a .swf file, and I would like to display a number received from a web service (using adobe flash professional cs5). Ive added the web service and provided the WSDL, but when i try to "Add Method Call", nothing happens. Why? What am I doing wrong?
    Hope someone can help

    start with the button that causes the text to be displayed.  find what it does (which may not be easy because most templates are coded by novice or intermediate level coders) and follow that trail to the text.  (note:  the text may be in a txt or xml file that's loaded.)
    to have a button release open a file, use:
    yourbtn.onRelease=function(){
    getURL("http://www.adobe.com");

  • I am new with iMac and I am trying to copy some file from my external HDD but it does not let me also I can't delete anything from this HDD using the finder. Can somebody help me , please?

    I am new with iMac and I am trying to copy some file from my external HDD that a used with my PC but it does not let me also I can't delete anything from this HDD using the finder. Can somebody help me , please?

    No, unfortunately, when you format a drive, it will erase all the contents. So you will need to find a temporary "storage" place to put the stuff using a PC so you have access to it. Then reformat using Disk Utility (Applications > Utilities). If only using with mac, format Mac OS Extended (Journaled) and use GUID Partition scheme under Partitions/Options. After formatting, you can drag the files back.

  • New to flash and fireworks

    I've worked with frontpage and dreamweaver on simple
    websites. Now I want to publish pictures to my site. My problem is
    tht I want to install a picture a a hair style. I want to display
    the front and bsvk of the style. Which do I use(Flash of Fireworks)
    to make it when you drag your mouse across the picture that it
    turns from front to back? Thanks in advance for your help.

    You could use Either. With Flash you could create a movie
    with two frames,
    one for each image and create a mouseover effect.
    Alternative you could use Fireworks, create the two images,
    then load them
    into DW and add a swap image behaviour to them.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "lilpe5512" <[email protected]> wrote in
    message
    news:e7cl06$t3b$[email protected]..
    > I've worked with frontpage and dreamweaver on simple
    websites. Now I want
    > to
    > publish pictures to my site. My problem is tht I want to
    install a picture
    > a a
    > hair style. I want to display the front and bsvk of the
    style. Which do I
    > use(Flash of Fireworks) to make it when you drag your
    mouse across the
    > picture
    > that it turns from front to back? Thanks in advance for
    your help.
    >

  • When streaming a movie with the new Apple TV, and using a DSL Internet connection, all audio sound works, e.g., the music track, but the audio track with the actor's voices, does not work. What can I do?

    When streaming a movie with the new Apple TV, and using a DSL Internet connection, all audio sound works, e.g., the music track, but the audio track with the actor's voices, does not work. What can I do?

    Hi Brian,
    Thanks restoring and restarting didn't fix my problem - i have started it fresh and still it doesn't work. Basically I press ONCE on the remote, after the machine has not had any commands for 10 minutes, and the cursor skips from one end of the menu to the other - so I can't choose network or update software etc - I sometimes manage to stop it randomly in the middle of the menu if I press on a command in the middle of the cursor skipping all the menu steps...not sure what the problem is but I have basically not used my brand new apple tv since I bought it for that reason! I should call Apple support I suppose! grrrr hate wasting time with stuff like this!
    Thanks for your help though!
    Pernille

  • After some advice, I am new to Apple and looking to purchase either the MacBook Air 13inch with 256GB and 8GB mem or the MacBook Pro 13inch with retina 256Gb and 8GB mem. I am an assistant principal in a primary school and also studying my masters

    After some advice, I am new to Apple and looking to purchase either the MacBook Air 13inch with 256GB and 8GB mem or the MacBook Pro 13inch with retina 256Gb and 8GB mem. I am an assistant principal in a primary school and also studying my masters at university. I don't play computer games and I don't watch movies. I do store photos and videos of my kids and music on iTunes. I also like browsing the net with numerous windows open, check email etc. I am really wanting long battery life as I do a lot of my work on the couch - not close to a PowerPoint. Would the air do the trick or will it soon be outdated as Apple move towards retina display? Both air and pro seem very thin  - almost the same? And not much difference in weight either so both very portable which is also a necessary requirement. Just can't help dreaming about that 12 hour claimed battery life. Any helpful advice/opinions, very much appreciated. Thanks

    It's not likely that you'll get 12 hours in reql life. Those benchmarks are set under very strict controlled conditions. Kind of like mileage per gallon claims on cars. If 16GB of ram is an option at all I'd highly recommend you get that. As far as storage 256GB isn't alot, consider storing some things on an external thunderbolt real

Maybe you are looking for

  • HT4970 does any one else miss the month at a glance that the old version of reminders had? I wish Apple would bring that feature back.

    Does anyone else miss the month-at-a-glance feature from the old version of Reminders app? I wish Apple would bring that feature back. It made it very convenient to schedule for the future.

  • How to find out the T-code of a program

    Hi Experts,   I want to find out the T-codes of some programs. For that I am passing the program name in  TSTC table and I am getting the T-code.   But TSTC table gives T-code for only main program and not for the includes. Is there any way to find o

  • ORA-1093 during Database Recovery in 11g R2

    1. PSEUDO Process present in the standby db preventing the switch to recovery mode (initiated by the application) Excerpt from the alert log Active process 0 user '' program 'PSEUDO' Active process 0 user '' program 'PSEUDO' Active process 0 user ''

  • HR/PAYROLL Country Specific information

    hello all, I am unable to remember, someone gave me a very great site which had HR and payroll information related to various European countries. Im supporting Germany, Holland, Belgium etc.... and wanted to

  • Strange apache2 error_log entry

    Every few seconds an entry "/var/empty/server-status" appears in the apache2 error_log (Mac OS X Server 10.6.7). What is the meaning of this? Also, I do not know what instance is writing to this log since each website writes to its own error log. Is