My buttons won't work. Help
error:
/Main.as, Line 18
1126: Function does not have a body.
package
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class Main extends MovieClip
public function Main()
oneBtn.addEventListener(MouseEvent.CLICK, moveRight);
leftBtn.addEventListener(MouseEvent.CLICK, moveLeft);
//add event handlers
private function moveRight(event:MouseEvent):void
prvate function moveLeft(event:MouseEvent):void
monkMc.x += 20;
monkMc.x -= -20;
The error is likely refering to this line since it has no function body, though you could help by indicating which line is 18 yourself...
private function moveRight(event:MouseEvent):void
If the way you wrote this is attempting to get two functions to do the same thing it is not correct to do. Also the code within the function that follows it will not move anything since the first line is cancelled by the second.
The correct way to code the event handlers would be...
//add event handlers
private function moveRight(event:MouseEvent):void
monkMc.x += 20;
prvate function moveLeft(event:MouseEvent):void
monkMc.x -= -20;
Similar Messages
-
My ipod home button won't work or its jammed help
My ipod home button won't work or its jammed or something help.
I would if its still under warranty ask apple to repair it, thats what i did.
-
I loaded software updates to Settings and now my lock button won't work. I was told to do a Restore but it keeps timing out. It says it will take 58 minutes to do the restore. I disabled my virus software but that didn't help. Any suggestions so I can do a Restore?
Try the Manual Install discussed here:
iDevice Troubleshooting 101 :: iPhone, iPad, iPod touch -
My iPod Nano, 4th gerenration buttons won't work anymore, but I can still shake iPod to get song to shuffle... any help?
Try:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Reset all settings
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device.
iOS: How to back up your data and set up as a new device
- Make an appointment at the Genius Bar of an Apple store.
Apple Retail Store - Genius Bar -
I updated Firefox on my Mac (10.6.8), and now history is not remembered (that option is checked) and the back button won't work. Help?
A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
*http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
*https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
You can also try to repair the places database with this extension:
*https://addons.mozilla.org/firefox/addon/places-maintenance/ -
Help, my home button won't work at all!!!
Hi,
my home button won't work at all, and when I tried to restart the phone, the message appears that this action won't work unless the phone is on the airplane mode. Can't really read the whole message cause it disappears after a second or so.
I put the phone on the charger and the USB connection also failed.
What happened?It sounds like it's broken. Assuming you haven't jailbreaked or otherwise hacked it you should try a Restore or a Recovery. If you put it in the cradle and you can't restore it see: http://docs.info.apple.com/article.html?artnum=305797 for Recovery mode.
If this doesn't work call Apple or take it to an Apple store; it probably needs to be replaced.
If it HAS been hacked go to the source of your hacking tools for help; we aren't allowed to discuss it here. -
My volume buttons won't work. Music plays when I get a phone call. That is the only time my speaker makes noise. My settings are how they should be, the top button is not on silent, I've shut my phone off many times, I've totally restored my phone. Help
Genius reservation http://www.apple.com/retail/geniusbar/
-
My husband's I-pad has been playing up! His home button won't work, and this keeps happening.
Try a reset ...
If that doesn't help, tap Settings > General > Reset > Reset All Settings
Beyond that, restore the iPad > iTunes: Restoring iOS software -
My music button won't work.
updated my iphone to ios7 and everything was fine. but when i tried to use the music buttons to skip/play songs, the buttons won't work. as in i'm not able to skip or play a song. i have to go to the music icon and do it from there. can someone help?
Genius reservation http://www.apple.com/retail/geniusbar/
-
As of late, my power button is acting weird. Either when you press the power button it won't turn on.. or it will.. Sometimes it works sometimes it doesn't..
To get it to turn off if the power button won't work, I'll just drain the battery. Anybody know anything to help?That's a hardware problem. Apple doesn't repair it. If there is no sign of abuse (don't try to fix it yourself), they replace it with a refurbished unit. The fixed-price for non-warranty replacements can be found here.
-
2 buttons won't work that were created exactly like a many others that work.
I am using Flash CS4 with actionscript 2 to create an interacitve portfolio. I have 2 text buttons that work when I test them with "enable simple buttons." When I publish to IE these buttons won't work. I have created over 50 buttons using the same methods, they all work. Any idea what might be wrong?
I have attached an edited version which shows working buttons and the ones we are having trouble with.
If you publish this in IE, the only button that will work is the last one on the entry page ("Writing"). This is because I have deleted all the other info to reduce the file size
On the next page the "Blog Excerpts" and "English Notebook" links are the ones that have been configured but do not work. The "Home" page on top does work. As you can see, the buttons have all been created the same way.
Thanks for being willing to help work this out.
Mark -
Mail touch screen not responding, on off button won't work
My iPhone 4 on/ off button won't work so I can't re-set my phone. Been told i need new one but trying to hold out for new iphobe!
Now the touchscreen won't work only in mail, and the screen is darker in mail than everythinguch else. Can anyone help?My touch screen stopped working and could not power off. Plugged it in to recharge and then it was okay. Very weird. The suggestion to restore from Itunes was very good and probably a basic apple practice. I was ready to get a new phone and not an apple. I will see how the iphone works the next few days.
-
The forward button won't work and the hold switch doesn't either. I tried restoring it, but that didn't work.
Restore to factory settings.new iPod if you have not yet already. If still problem time for an appointment at the Genius Bar of an Apple store.
-
Vertical scrolling with TrackPoint's middle button won't work on MS Word
Question:
I have a T42 ThinkPad and the vertical scrolling with TrackPoint's middle button won't work on MS Word and therefore not in my email either. Big pain in butt as I'm so used to using it. Are there any patches that fix that? Any ideas on why it won't work?It's really weird. My suggestion would be that you install the most up-to-date driver by direct downloading or via System Update (if you haven't updated the driver).
Rockwill
ThinkPad T61p 6459A12 -
Lower volume button control not working help?
Lower volume button control not working help?
If you only restored from backup, restore to factory defaults/new iPod. If you then still have the problem it is likely a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
-
My lock screen button won't work how can I fix this?
My lock button won't work, every time I click it it won't lock my screen unless I press the button hard enough and or in a weird gesture, how can I fix this where I don't need to struggle locking it?
Stating the obvious,
Can you Reset it?
Have you checked if the Hold switched is not in locked position? (should not see the red mark)
Maybe you are looking for
-
To how many macs can you install cyber antivirus?
To how many macs can you install cyber antivirus? thx
-
Evaluate function doesn't work with Static values
Hi All, I have been trying to call a evaluate function and have been successfully in calling it..but i face problem when i pass any static values to it... For eg when i try calling the function using one of the columns...it works fine Evaluate('dbo.H
-
How do you change the color of the sign and fill text to the color blue
How do you change the color of the sign and fill text to the color blue in a pdf document
-
How to use Delta Update in InfoSpoke
How to use Delta Update in InfoSpoke & to include in Process Chain
-
Hi I want to print multiple cheques on a single click. i am done with Printing setting like New output type, New page format but when i am printing multiple cheque it is overwriting. its not taking the page break. all the cheques are printing on a si