Can't get actionscript to work
I'm very new to flash and I've watched many tutorials and I'm pretty much doing exactly as I've seen others doing, but mine won't work. I'm trying to build an application that serves as a header for a website. I want there to be animations by the logo and several mouse generated events: over, leave, click. I'm no longer getting any compiling errors on my actionscript, but when I test the movie none of it works. The "stop();" doesn't work at all. None of the mouse related events work. FRUSTRATING!!!
I'm attaching my fla document and I would love it if someone could help me so I don't lose my mind.
Note: I haven't finished animating all the differnet mouse related events, but none of the valid code actually works, so I've stopped until I can get it to work. Thanks in advance.
Spencer
I created a layer and named it "actions" to put all of my code in. It is the top layer if that matters. Within that layer I have put keyframes, and within those keyframes lies the code(option F9 on my mac to get to the actions screen). In the first keyframe(frame 1), this is the code:
portfolioButton.addEventListener(MouseEvent.MOUSE_OVER, gotoOverPortfolio)
portfolioButton.addEventListener(MouseEvent.MOUSE_LEAVE, leavePortfolio)
portfolioButton.addEventListener(MouseEvent.CLICK, gotoPortfolio)
pricingButton.addEventListener(MouseEvent.MOUSE_OVER, overPricing)
pricingButton.addEventListener(MouseEvent.MOUSE_LEAVE, leavePricing)
pricingButton.addEventListener(MouseEvent.CLICK, gotoPricing)
homeButton.addEventListener(MouseEvent.MOUSE_OVER, overHome)
homeButton.addEventListener(MouseEvent.MOUSE_LEAVE, leaveHome)
homeButton.addEventListener(MouseEvent.CLICK, gotoHome)
servicesButton.addEventListener(MouseEvent.MOUSE_OVER, overServices)
servicesButton.addEventListener(MouseEvent.MOUSE_LEAVE, leaveServices)
servicesButton.addEventListener(MouseEvent.CLICK, gotoServices)
contactButton.addEventListener(MouseEvent.MOUSE_OVER, overContact)
contactButton.addEventListener(MouseEvent.MOUSE_LEAVE, leaveContact)
contactButton.addEventListener(MouseEvent.CLICK, gotoContact)
function gotoOverPortfolio(event:MouseEvent):void
gotoAndPlay (61);
function leavePortfolio (event:MouseEvent):void
gotoAndPlay (61);
function gotoPortfolio (event:MouseEvent):void
gotoAndPlay (61);
function overPricing (event:MouseEvent):void
gotoAndPlay (61);
function leavePricing (event:MouseEvent):void
gotoAndPlay (61);
function gotoPricing (event:MouseEvent):void
gotoAndPlay (61);
function overHome (event:MouseEvent):void
gotoAndPlay (61);
function leaveHome (event:MouseEvent):void
gotoAndPlay (61);
function gotoHome (event:MouseEvent):void
gotoAndPlay (61);
function overServices (event:MouseEvent):void
gotoAndPlay (61);
function leaveServices (event:MouseEvent):void
gotoAndPlay (61);
function gotoServices (event:MouseEvent):void
gotoAndPlay (61);
function overContact (event:MouseEvent):void
gotoAndPlay (61);
function leaveContact (event:MouseEvent):void
gotoAndPlay (61);
function gotoContact (event:MouseEvent):void
gotoAndPlay (61);
In the second and third keyframe(frame 60 and frame 99) I have the code:
stop(); and I have also tried this.stop();
******I'm aware that all the functions are pointing to the same frame but that's because I haven't created the animations yet.
Nothing the code is supposed to do works.
The entire timeline loops when I test the movie. So I am seeing the first animation between Frames 1-60 and then instead of stopping it continues to frame 61-99.
I'm also now getting a compiling error when I test the movie:
1119: Access of possibly undefined property MOUSE_LEAVE through a reference with static type Class.
Similar Messages
-
Have entrourage and want to use Mail. Can't get it to work.
I had a macbook and purchased the Microsoft office for Mac which included Entrourage.
I have now purchased a new macbook Pro and want to begin to use Mail rather than Entrourage.
I have Entrourage on my new computer but i can't get it to transfer my information to the the Mail program
I am on Charter.net at my office and sbcglobal.net at home.
How can i get this to work. I can receive on Mail, but i can't send.check your outgoing port settings and make sure it's using a specific port and not the default port, also you might want to check to see if it is using SSL, TLS or any other encryption. Verify the setting from your old machine setup.
-
got my password wrong twice and my mini is disable. I connected to iTunes, but can't get it to work. Can some one guide my through?
If it's showing the red disabled screen due to incorrect passcodes then you may need to put the iPad into recovery mode : http://support.apple.com/kb/ht1808 - you should then be able to reset the iPad via your computer's iTunes and restore/resync your content to it
-
HT1151 i have a new apple external dvd drive, and i can't get it to work with my iMac?
I have a new apple dvd drive, I was told it will work with my imac, but when i plug it in ...nothing... iv been for update... still nothing. How can i get it to work???
If it is this drive, note that it is for MBA's and Mini's only:
http://store.apple.com/us/product/MC684ZM/A
Ciao. -
Is there a way to reset my messages account, I can't get iMessage to work on IPad nor Mac osx. Help please this is really frustrating.
Hi,
Is there an iPhone involved ?
If not, what happens if you remove the Apple ID on the iPad and then set it in Airplane Mode (allow a couple of minutes at this point) followed by re-adding the Apple ID ?
What, if any error messages are appearing on the Mac when you try to launch the App or Login to the iMessages server ?
Is the Apple ID linked to an iCloud account ?
In Messages 7 (Mountain Lion) this did not seem to be important but it seems it is in Mavericks/Messages 8
9:14 pm Friday; April 11, 2014
iMac 2.5Ghz i5 2011 (Mavericks 10.9)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
Couple of iPhones and an iPad -
I bought an IR receiver and an Apple Remote, and I can't get it to work. What am I doing wrong? The receiver is a Lenovo eHome OVU430006/01 USB IR Receiver.
Hello,
You would need to pair the Apple Remote with the receiver. So I would use the generic Mac/PC receiver and follow these instructions:
http://support.apple.com/kb/HT1619
If that doesn't work then check in System Profiler to see if the IR receiver has been recognized by the PowerBook's hardware. You may require the install of drivers for this device to be recognized.
Best of luck -
I have a go daddy email account and I can't get it to work on my iPad
I have a go daddy email account and I can't get it to work on my iPad
Try turning the email account off and then turn it on again. Settings>Mail, Contacts, Calendars>select your gmail account>Off. Go to the mail app and then come back to the account in the settings and turn it on again.
If you can't find any other way for the iPad to accept the password, delete the email account and then add it back onto the iPad. -
I have a Mac Mini and I can't get it to work with my Ricoh Aficio MP 161. Any ideas?
I have a Mac Mini and I can't get it to work with my Ricoh Aficio MP 161. Any ideas?
The latest Apple driver support begins with the MP 171.
Here is Ricoh's official driver download page specifically for the Afico MP 161. Note that new drivers for this device were released on Aug 2, and include Lion and Mountain Lion.
Hopefully, this will solve your device issues. -
Iphone 5 went black. Tried pushing on/off and circle at the same time. Worked yesterday and then did it again today. Can't get it to work.
You need to hold those button longer until you see the apple logo, then release, then wait for the phone to boot back up.
-
I just bought a new computer and had files transferred along with itunes to the new computer. I can't get it to work. It doesn't recognize the extensions for itunes. I also tried downloading Quicktime and couldn't get it to download.
iOS: Device not recognized in iTunes for Windows
I would start with:
Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7 -
I bought a DATAPILOT to transfer pictures to my macbook and can't get it to work. Any suggestions please?
Best if you try and explain what you are trying to acheive.
Iphoto is a different paradigm than you're used to. I don't understand why you are trying to transfer your edited photos back to an external disk.
There are tutorials here
http://www.apple.com/findouthow/photos/
Regards
TD -
I have signed up for adobe conversion to microsoft word and i can't get it to work - can you help me
I have signed up for adobe conversion to microsoft word and I can not get it to work - can you help me?
Hi Mike,
I've checked your account. I see that you just purchased the subscription this morning. The order is still pending processing, which is why you haven't yet been able to log in an use your subscription. It can take 24-48 hours for a subscription to process fully. Once it does, you'll be able to log in and convert files.
I apologize for the inconvenience.
Best,
Sara -
Trying to connect 2010 Mac mini to alba hd tv but can't get it to work, any theories?
Trying to connect 2010 Mac mini to alba hd tv but can't get it to work, any theories?
Welcome to the Apple Community.
The iPad 1 is only able to do basic AirPlay, many providers of programming have blocked their apps from working with AirPlay. -
I just bought Quick time Pro and I can't get it to install. It shows a yellow box in my application folder, but I can't get it to work. Help!
you launch QT then go to its REGISTRATION
-
Downloaded the App Sales Call Manager. I can't get it to work on either my Iphone 4s or my Ipad2? Can anybody advise how to fix or even get back my money that i paid for it?
Contact the app developer for support. A link to their website will be in the apps description in the AppStore.
Maybe you are looking for
-
I have an old Mac Tower. I need to move data from the unit to an external hard drive. What kind of of hard drive must I purchase so that it works with the Tower? There is not a lot to transfer.
-
Adobe Premiere and After Effects CS6 installer failed to initialize on Mac Book Air
Hi everybody, I'm trying to install Adobe Premiere and After Effects CS6 for at least a month now. I have downloaded the .dmg file at the Adobe Website and it starts to initializing the installer, then a error show up: "The installer could not initia
-
How to generate swf file automatically on server ?
Hi. I'm new to flash and i've just learnt how to use OSMF to build a flash player. My question is very basic and i hope to put it as clearly as i can:- Now i can create a flash player from flash builder. But in order to point to a new location for th
-
hi, How to get line number in sap script form? Regards, Sal.
-
Why does my Mac air make a lot of noise with the fan inside?
I bought Mac air one year ago. at the beginning, I satisfied with the product. However, 8 months later, the laptop made a lot of noise from the fan inside. When I I run about 4 or 5 solfwares, it starts warmer and make noise. I feel so unhappy with t