Trying to figure out how to implement the scroll wheel for scrubbing through the final swf animation.

I have an animation I have created and would like to allow the user to scroll up and down (for forwards and backwards) to control which direction the animation plays and at what rate. I'd also like to have the the animation do nothing if the scroll wheel isn't being manipulated. Here's the code I have so far, but I keep getting errors:
import flash.events.MouseEvent;
function handleMouseWheel(event:MouseEvent):void {
  trace("The delta value is: " + event.delta);
  frame = (clip_mc._currentframe + delta);
     clip_mc.gotoAndStop(frame);
addEventListener(MouseEvent.MOUSE_WHEEL,mouseWheel);
Appreciate your help!
I'm pretty new to this and I'm not sure what I'm doing wrong.
Thanks

Completely forgot to include my errors. After updating the code:
import flash.events.MouseEvent;
function handleMouseWheel(event:MouseEvent):void {
  trace("The delta value is: " + event.delta);
  frame = (clip_mc.currentFrame + event.delta);
     clip_mc.gotoAndStop(frame);
addEventListener(MouseEvent.handleMouseWheel,mouseWheel);
And the errors I'm getting: (with my animation playing from beginning to end)
Scene 1, Layer 'Actions', Frame 1, Line 6, Column 2
1120: Access of undefined property frame.
Scene 1, Layer 'Actions', Frame 1, Line 6, Column 11
1120: Access of undefined property clip_mc.
Scene 1, Layer 'Actions', Frame 1, Line 7, Column 6
1120: Access of undefined property clip_mc.
Scene 1, Layer 'Actions', Frame 1, Line 7, Column 26
1120: Access of undefined property frame.
Scene 1, Layer 'Actions', Frame 1, Line 12, Column 29
1119: Access of possibly undefined property handleMouseWheel through a reference with static type Class.
Scene 1, Layer 'Actions', Frame 1, Line 12, Column 46
1120: Access of undefined property mouseWheel.
Apologies for my ignorance. I've been getting into ActionScript and still don't know much at all as I've only touched on programming in the past.
I really appreciate your help.
Thanks again!

Similar Messages

  • I have creative cloud, I have both photoshop and lightroom current versions installed - I was using the trial period.  I paid for the 9.99 a month and now I'm trying to figure out how to get a current program so it won't expire - which is still says it is

    I have creative cloud, I have photoshop and lightroom current versions installed - I was using the trial period.  I paid for the 9.99 a month and now I'm trying to figure out how to update this. 

    You need to uninstall the trial applications and reinstall from the CC app.

  • HT201209 I need assistance with trying to figure out how to change my security code answer

    I need assistance with trying to figure out how to change my security code answer

    If you mean the answers to your security questions, then f
    rom http://support.apple.com/kb/HT5665 :
    If you have three security questions and a rescue email address
    sign in to My Apple ID and select the Password and Security tab to send an email to your rescue email address to reset your security questions and answers (the steps half-way down that page should give you a reset link)
    If you have one security question and you know your Apple ID passwordsign in to My Apple ID and select the Password and Security tab to reset your security question.
    If you have one security question, but don't remember your Apple ID passwordcontact Apple Support for assistance. Learn more about creating a temporary support PIN to help Apple confirm your identity when you contact Apple Support.
    If you can’t reset them via the above instructions (you won't be able to add a rescue email address until you can answer your questions) then you will need to contact iTunes Support / Apple in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312

  • I am trying to figure out how I can get my library transferred to the Honda Accord 16gb hard drive?  I have purchased music of off I tunes and do not have the physical CD.  Anybody with any suggestions on how this can be done?

    I am trying to figure out how I can transfer my library to my new 2014 honda accord that has an internal 16gb hard drive.  The manual for the car says that it needs to be original CD's but I have purchased alot of the albums/songs I have from I tunes therefore not having the original CD.  Can someone help me with this as I dont want to load each CD into the player to record and have some albums that I purchased off of I tunes that I would like to be on the hard drive.
    Thanks Any Help is appreciated.

    If Honda says you need the original CDs, you need the original CDs.

  • I recently set up multiple accounts and when I was trying to figure out how to share files I messed up something in my documents. Everytime I open a doc from the ADMIN account, a box pops up that says "The file is not in the correct format" how to fix?

    I recently set up multiple accounts on my imac, When I was trying to figure out how to share the documents I must have done something wrong. When logged into the Admin account, I open up any document and I get a message box that says, "The Document could not be opened. The file isn't in the correct format. The file might be corrupted, truncated, or in an unexpected format." What did I do and how do I fix it?

    Without knowing what you did it is impossible to give advice on how to correct it.
    If these were files you copied over from some other system then just Re-Copy them replacing the ones that are corrupted.
    Other then that I suggest you Wipe the drive and start over with a clean reinstall of the OS and programs. Then if you want to share files to All Accounts place those files in a folder in the ROOT of the drive.

  • I really need someone to help me. I have been trying to figure out how to select a PDF document to convert to a Word doc. When I go to select a PDF file, all that shows up is the WORD docs. does not show ANY of my PDF files... Please help me figure out wh

    I really need someone to help me. I have been trying to figure out how to select a PDF document to convert to a Word doc. When I go to select a PDF file, all that shows up is the WORD docs. does not show ANY of my PDF files... Please help me figure out what is going on? We have it set on auto renewal so I know its not that we haven't renewed this subscription, because we pay automatically.

    Hi olivias,
    It sounds like there may be some confusion on your system about what application should be associated with PDF files. You can reset filename associations by following the steps in these articles (depending on your operating system):
    How to change the default application for a file type | Macworld
    http://windows.microsoft.com/en-us/windows/change-default-programs#1TC=windows-7
    Please let us know if you have additional questions.
    Best,
    Sara

  • TS4223 I accidentally bought the HD version of a movie for my daughter's iPod nano (it can't be watched on the Nano).  So I'm trying to figure out how to re-download the SD version.  do I have to pay for the lower version??

    I accidentally bought the HD version of a movie for my daughter's nano. you can't watch HD on a nano.  So I'm trying to figure out how to re-download the SD version.  This help screen makes it seem like you can just correct the problem and just "download" the lower version.  But when I follow the steps, I basically get to where I'm just having to actually purchase the other version.  Do I have to pay to get the lower quality version after I've already paid for the HD version?

    When you purchase an HD movie or show, in most cases the SD copy can be downloaded from your purchases area in iTunes. On the main iTunes Store page, go to Purchases under the Quick Links and then select Movies or TV shows as appropraite. Click the "Not On This Computer" button. Uncheck the "Download HD when available" box and you should then see the SD copies of the movies/shows and be able to download them.
    Note that with digital copies from a Blu-Ray or DVD, if it comes with an HD copy, you normally cannot get the SD copy as well and have to purchase it separately if you want it.
    Regards.

  • My iPhone 4S is not showing up in iTunes.  I've never had this issue before, but I'm finding it a little frustrating trying to figure out how to rectify the situation.  Any suggestions would be greatly appreciated.

    My iPhone 4S is not showing up in iTunes.  I've never had this issue before, and I'm finding it a little frustrating trying to figure out how to rectify the situation.  If anyone knows how to fix this problem, please advise.  Otherwise any suggestions would be greatly appreciated.

    Hi Josie,
    I understand that you are having issues with iTunes recognizing your iPhone 4S. Let's see if we can tackle this.
    The following resource will provide helpful steps in resolving this issue, pay specific attention to Steps 3-6 as these usually resolve this sort of issue.
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    Thanks,
    Matt M.

  • I am trying to figure out how to clear my massage backlog of messages on Messages for Mavericks OS. I believe a lot of space is taken up by this running in the background keeping recent messages loaded. Especially with all the gif files I've been sending

    I am trying to figure out how to clear my massage backlog on Messages for Mavericks OS. I believe a lot of space is taken up by this running in the background keeping recent messages loaded. Especially with all the gif files I've been sending. Is there a way to select all and deleter? Please help! Can't find anyone who looks to do the same just lots of manuals for using the app on iphones and ipads.
    Thanks

    I am trying to figure out how to clear my massage backlog on Messages for Mavericks OS. I believe a lot of space is taken up by this running in the background keeping recent messages loaded. Especially with all the gif files I've been sending. Is there a way to select all and deleter? Please help! Can't find anyone who looks to do the same just lots of manuals for using the app on iphones and ipads.
    Thanks

  • HT2931 I am trying to figure out how to get the pre made "beats" with my garage band for my MacBook Air can u help

    I am trying to figure out how to get the pre made "beats" with my garage band for my MacBook Air can u help

    Hello Mattxy2,
    Thank you for the question. It sounds like you would like to add some Apple Loops to your project.  I recommend reviewing the following sections in Garageband Help:
    GarageBand Help - Search for Apple Loops
    http://help.apple.com/garageband/mac/10.0/#gbnd3002ab64
    GarageBand Help - Add Apple Loops to your projects
    http://help.apple.com/garageband/mac/10.0/#gbndc1d3db81
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • I'm trying to figure out how I can see the equation of the line on the graph I just created. I'm using the OS X Mavericks version of  Numbers.

    I'm trying to figure out how I can see the equation of the line on the graph I just created. I'm using the OS X Mavericks version of  Numbers.

    I think what you're looking for is this. Click chart and in the Series tab under Trendlines you select linear and check Show Equation.
    Unfortunately you can't move the equation from its initial position the way you could with the old Numbers 2.3.
    SG

  • I have recently had to fire my web designer who was using iWeb.  Now I'm trying to figure out how to get the site to open in iWeb on my new MacBook Pro.  Is there a way?

    I have recently had to fire my web designer who was using iWeb.  Now I'm trying to figure out how to get the site to open in iWeb on my new MacBook Pro.  Is there a way?

    Firstly iWeb CAN'T IMPORT any kind of published html code as it has no import facility.  You can however add html code, javascript and css by selecting the html snippet and placing it on your page the entering the code in here and clicking on Apply.  You DO NOT create a shape as you say - you use the html snippet and place your code in there.
    There are not really a lot of ways in which you can write code - if you want to enter small amounts of code, then you would use an ordinary text editor to do this such as Text Edit on a Mac or Text Wrangler.  If you want to add code to iWeb like this, then you would either use the html snippet method in iWeb itself or you would have to publish the site to a local folder from iWeb and open the relevant html page with a text editor and add the additional code in this way and then publish.  However, if he decided to add the code with a text editor, then you would have to upload the pages directly to the server using an ftp client - if you try to upload the site directly from iWeb, all the extra code will be overwritten.
    As for checking whether the site was created using iWeb, all you need do is view the site in Safari and then click on View and then select View Source Code and it will tell you.
    Even thoough extra code was added to the site and he might well have done this by publishing to a local folder and adding the code with a text editor, he should still have the domain file for the site too.
    Ask again.  I'm sure that for adding quick code, most would not want to use programmes such as Dreamweaver, but a simple text editor will suffice.  As OT already said, if he claims that he does not have the domain.sites file, then try Flux 4 which is a web design programme and has full import facilities.  At least this way, if he just gives you the published version of the site, you have some way of opening it.
    You can download a free trial of Flux 4 and you can also purchase the full version from the Mac App Store if you decide you like it.

  • From the US but in France these days trying to figure out how to get case

    I have an iPhone 4, and I got the email about being eligible for the case. I am from the US, and I am now in France for a bit for work. I am trying to figure out how I could get my case shipped to me here instead of back home, since I will not be back there until December at the earliest. I downloaded the app and it will ship to my US address by default, and I am not interested in changing that because I want to still be part of the US zone.
    If someone from Apple could help and tell me what to do it would be great. I could not find the right department that could have answered this question when I looked on the support page.
    Thanks.

    These are user forums - Apple will not respond to you here.
    Call customer service with the order number and tell them that you need to change the ship to address ... they should be able to do that or you...

  • Trying to figure out how to change the tuning of certain notes so I can play notes in between pitches for example the middle note between B

    Trying to figure out how to change the tuning of certain notes so I can play notes in between pitches for example the middle note between B & C or E & F. I can use different tracks if needed but I would prefer to know how to do it for individual notes as well. They have to be exactly in the middle so it's not out of tune.

    Danny,
    The theme to Doctor Who is in 12/8. In music theory, there's no such thing as a 12th note, the notation and nomenclature is all based on things being divisible by four. So for the diddly-dum feel to happen, you have to give the beat to a quarter note plus another eighth note -- we call it a dotted quarter note, and now you have three eighth notes per beat so you can go diddly. So, since you can't call the time signature 12/dotted quarter, you call it 12/8 and go faster. Make sense? Anyway, for GB's purposes, all you need to know is that you'll get that feel by choosing 12/8.

  • I am a brand new mac user...trying to figure out how to switch from the Mac Pro screen to my external monitor.  Appreciate any help.

    am a brand new mac user...trying to figure out how to switch from the Mac Pro screen to my external monitor.  Appreciate any help.  thanks

    In Finder... goto Help... In the Search Window type in Displays...
    Lots of Useful Information there...
    You may find these Links Useful too:
    http://www.apple.com/support/mac101/
    http://www.apple.com/support/macbookpro/
    Cheers,

Maybe you are looking for

  • Purchase Order Form design

    Hi Friends, Please help to me to get the information of below requirement, List of all the fields we'll need to include in the Purchase Order Form (start with the standard fields). List to contain the Label Name of the Field on the Form with its appr

  • How do I get a water color looking photo in elements 10

    I need to know the area in the elements 10 that I can change a photo into a water color looking photo?

  • How to set duration of multiple tasks

    Hello all.  I am a new LabVIEW user and have a question on how to set a duration of a specific task and then initializing the start of another.  I am using an Agilent N3300A load and I would like to simulate the "power-up" of the device I am working

  • Open as Administrator in Nautilus

    Hello, Maybe today I can be a contributor... I noticed that since Gnome3, I can no longer right click inside Nautilus and get the menu item "Open as Administrator". I googled and found this post: https://bugs.archlinux.org/task/10297 It seems that pr

  • Log4J + WebLogic * JMX

    Hi, I just went through a few bumps trying to get Log4J's JMX support (in 1.2.8) working nicely with WebLogic 6.1 (SP 3) and thought I'd share the results, since info on getting JMX set up seems pretty slim everywhere you look (WebLogic docs, Sun JMX