I am trying to experiment with Tweens and Easing Types in ActionScript 3.0, Adobe Flash CS4. help

I am using ActionScript 3.0, Adobe Flash CS4 software
I have created Tweens for some MovieClip properties and experimented with some of the easing types.
This is what I have managed to create and works okay!
grow_btn.addEventListener(MouseEvent.CLICK, grow);
shrink_btn.addEventListener(MouseEvent.CLICK, shrink);
rotate_btn.addEventListener(MouseEvent.CLICK, rotate);
hide_btn.addEventListener(MouseEvent.CLICK, hideClip);
show_btn.addEventListener(MouseEvent.CLICK, showClip);
fadeOut_btn.addEventListener(MouseEvent.CLICK, fadeOut);
fadeIn_btn.addEventListener(MouseEvent.CLICK,fadeIn);
function grow(e:MouseEvent):void {
                var scale1:Tween = new Tween(instrument, "scaleX", Back.easeIn, 0, 1, 3, true);
                var scale2:Tween = new Tween(instrument, "scaleY", Back.easeIn, 0, 1, 3, true);
function shrink(e:MouseEvent):void {
var oneSmall:Tween = new Tween(instrument, "scaleX", Back.easeInOut, 0, -.2, 3, true);
var twoSmall: Tween = new Tween(instrument, "scaleY", Back.easeInOut, 0, -.2, 3, true);
function rotate(e:MouseEvent):void {
var spin:Tween = new Tween(instrument, "rotation", Elastic.easeOut, 0, 360, 5, true)
function hideClip(e:MouseEvent):void {
instrument.visible = false;
function showClip(e:MouseEvent):void {
instrument.visible = true;
function fadeOut(e:MouseEvent):void {
var tweenfadeOut:Tween = new Tween(instrument, "alpha", None.easeOut, 1, -.1, 3, true);
function fadeIn(e:MouseEvent):void {
var tweenfadeIn:Tween = new Tween(instrument, "alpha", None.easeIn, 0, 1, 3, true);
I am having trouble creating Tweens and add easing types for the action script below!
I keep getting error message (“Access of undefined property Sine”) for example when I type
function hideClip(e:MouseEvent):void {
var noClip:Tween = new Tween(instrument, "visible", Sine.easeOut, 0, 1, 3, true);
Can anyone help???? The original script is below
hide_btn.addEventListener(MouseEvent.CLICK, hideClip);
show_btn.addEventListener(MouseEvent.CLICK, showClip);
function hideClip(e:MouseEvent):void {
instrument.visible = false;
function showClip(e:MouseEvent):void {
instrument.visible = true;

make sure you have imported the Sine class
import fl.motion.Sine;

Similar Messages

  • I have had LR4 since last August.Have just decided to start using it.I have an IMAC 10.9.3 version. Am trying to learn with "Classroom in a Book. Ton of  problems.Adobe will not help because it is to old and they no longer support. Can anyone tell where I

    Did anyone see the post I made about LR 4?Just in case I will post again. I have LR4 I bought last August and just now I am trying to learn this >I have "Classroom in  a Book" for LR4 lots of problems . I have a IMAC version 10.9.3. I tried different Adobe sites. They will not give me the Time of day because they say they no longer support this program. Can anyone here tell me where I can get support for this LR$ that Adobe no longer recognizes. Thank you My name is Jerry S. MY e-mail is [email protected] and phone number is 563-344-7910.

    Okay I will try. First I have lost pictures in catalogs and could not find again.I have tried reinstalling LR4 and when I do and reopen LR4 the same catalog appears in the panel and filmstrip and I have no idea how to get rid of that catalog and start over at square one like it was the frist time it was opened. That would be a big help and I think I start over and avoid the same problems.

  • HT1848 I am trying to transfer my purchases from my iPhone 5 to my new Mac computer.  I get the message stating that it can only be synced with one computer at a time.  I have tried the 2 other ways and I get no options to transfer my purchases.  Help?

    I am trying to transfer my purchases from my iPhone 5 to my new Mac computer.  I get the message stating that it can only be synced with one computer at a time.  I have tried the 2 other ways and I get no options to transfer my purchases.  Help?

    If you see Devices in the big list on the left-hand side of iTunes, it should show the name of your iPhone right below it. You can right-click (or hold ctrl and left click) on the name of the iPhone there, and choose "transfer purchases from iPhone".
    If you're on iTunes 11, you won't see the big list of the left until you go to the View menu at the very top (where you see iTunes/File/Edit/View/etc) and choose Show Sidebar. Then do the same thing: right-click or ctrl and left-click on the iPhone's name below Devices and "transfer purchases from iPhone".
    It'll ask you to authorize the computer for your Apple ID if you haven't yet; to do that, you just type your Apple ID and password in when it asks. If it says you are not authorized but doesn't automatically give you an option to do so, then you can go to the Store menu at the very top and choose "authorize this computer".

  • Trying to register with ePrint and getting error code.Ajax submit failed: error = 403, Forbidden.

    Trying to register with ePrint and getting error code.Ajax submit failed: error = 403, Forbidden. I need help??

    To bypass this error attempt either a restart of your computer, or use an alernate broser such as firefox or chrome. If you already have another browser the latter may be the easier fix.
    Jon-W
    I work on behalf of HP
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    Click the KUDOS STAR on the left to say “Thanks” for helping!

  • HT1296 When I sync my iphone with Windows 7, the contact moves to my computer, but the contact is not complete. No phone numbers. What am I doing wrong? I have also tried sync-ing with Yahoo, and that doesn't work either.

    When I sync my iphone with Windows 7, the contact moves to my computer, but the contact is not complete. No phone numbers. What am I doing wrong? I have also tried sync-ing with Yahoo, and that doesn't work either.

    The music sync is one way - computer to iphone.  The only exception is itunes purchases.  File>Transfer Purchases
    It has always been very basic to always maintain a backup copy of your computer for just such an occasion.  Use your backup copy to move everything to your new computer.

  • Trying to sync with iTunes and iPhone

    trying to sync with iTunes and iPhone cannot be synced because it cannot be read or written to keeps coming up.
    Iphone 6+ with iMac all latest versions

    Hi PreParrott,
    Welcome to the Apple Support Communities!
    I understand that you are receiving an alert that your iPhone cannot be synced because it cannot be read or written to. In this situation, I would recommend reading over the attached article and working through the troubleshooting steps suggested within it. 
    'Disk cannot be read from or written to' when syncing iPod or 'Firmware update failure' error when updating or restoring iPod - Apple Support
    Best regards,
    Joe

  • HELLO, I UNLOCKED MY 3GS PHONE THEN RESTORED  IT TO FACTORY DEFAULTS THROUGH ITUNES THEN COULD NOT REACTIVATE THE IPHONE, I TRIED SEVERAL TIMES USING WIFI AND ITUNES, IT CAN NOT DETECT THE SIM, SOMEONE PLEASE HELP ME WITH FOLLOW UP, THANKS

    HELLO, I UNLOCKED MY 3GS PHONE THEN RESTORED  IT TO FACTORY DEFAULTS THROUGH ITUNES THEN COULD NOT REACTIVATE THE IPHONE, I TRIED SEVERAL TIMES USING WIFI AND ITUNES, IT CAN NOT DETECT THE SIM, SOMEONE PLEASE HELP ME WITH FOLLOW UP, THANKS

    sir as ur reply i guess that my phone has locked again as i restored to factory defaults, now if i try with a att active sim then can i activate the iphone ? and i think  i need to unlock again if i want to use sim other then att right ? pls reply me in details asap

  • I was trying to snyc with computor and now its frozen on do not disconnect

    i was trying to snyc with computor and now its frozen on do not disconnect

    NOTE:  If the iPod is set to Manually manage music or Enable disk use, it will say DO NOT DISCONNECT until you eject the iPod.  Just want to make sure it really is "frozen."
    If iPod is frozen, you need to do a Reset on the iPod.
    http://support.apple.com/kb/ht1320

  • After downloading InCopy I click on the downloaded file to install, but the process stops when trying to connect with server and doesn't carry on.

    After downloading InCopy I click on the downloaded file to install, but the process stops when trying to connect with server and doesn't carry on. Can you please help?
    Thanks,

    Agathe.texier which copy of InCopy are you downloading and installing?  Do you receive any specific error messages?  Finally what operating system are you using?

  • When i connect my ipad2 to my tv using the hdmi cord for video mirroring, nothing happens! I've tried it on two new and different types of tv's, what gives?

    When I connect my Ipad2 to my tv using the HDMI cord for video mirroring, nothing happens! I've tried it with new and different types of tv's, what gives?

    Do you have the correct input set on the TV, like HDMI 1, HDMI 2, etc?

  • Im trying to watch videos in youtube and i can't I already download Adobe flash player

    Im trying to watch videos in youtube and i can't I already download Adobe flash player please help me

    YamyDoug wrote:
    Im trying to watch videos in youtube and i can't I already download Adobe flash player please help me
    Did you install it as well as repaired permissions and restarted your comp? 

  • TS3221 my iphone 4s is not connecting with itunes and giving me a message of unknow error 0xE8000012 Please help me out

    my iphone 4s is not connecting with itunes and giving me a message of unknow error 0xE8000012 Please help me out

    You've managed to permanently damage the phone. As gdgmacguy suggests, buy a new one. Preferably from a legitimate source.
    You may also want to keep in mind that it is illegal to use the Gevey SIM in pretty much every country on the planet. It may still be legal on the continent of antarctica, but that's only because penguins don't use cell phones as a rule.

  • TS3694 I have attempted to update my iphone to ios8. My phone has gone into recovery mode. I have tried all of your recommendation and it will not come out of recovery mode. HELP!

    I have attempted to update my iPhone to ios8. My phone has gone into recovery mode. I have tried all of your recommendation and it will not come out of recovery mode. HELP!

    Without knowing what you did and exactly what happened (error messages) all I can suggest is:
    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable       
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     

  • How do I choose and then install the correct version of Adobe Flash Player for my machine?

    First thing - My computer -   PROCESSOR: Intel Celeron 450 @2.2 Ghz,  MEMORY: 4GB,  OS:  Windows 7 Home Premium SP1 64 bit,  BROWSER:  IE 9.0.8112.16421
    Everything was hunky-dory until the auto-installer updated my version to the Flash Player 11.2 version and that's when it all went downhill.  As soon as it installed that version, none of the TV networks, news networks or Hulu recognized that I had Adobe Flash Player.  In addition, I could no longer create a blank new tab in IE or use the tools button (the little gear symbol) in the upper right hand of an IE window.  Because of the IE problems, I figured it was a problem with IE and went about searching for a solution in that arena.  I finally found something at Microsoft that helped me determine if it was an IE problem and went through the various steps.  The final step required booting into safemode and trying to replicate the problem.  IE worked fine in safemode so, Microsoft determined the problem had to be with outside influences.
    After several frustrating attempts with other fixes including virus scanning and firewall settings, the problem persisted.  I then un-installed Flash Player per Adobe's instruction and re-installed the recommended 'latest' version.  The problem remained.  So, when all else had failed I did a full system restore to a point over a month ago, which is prior to the occurence of the problem, while at the same time noting which drivers and programs would be affected.  I already had a sneaking suspicion that it was Flash Player because I read the full system requirements for the recommended version that the auto installer was trying to install (see below).  I then began updating everything one at a time to see if any of the windows/software/driver updates had any affect on IE.  None did until I got to the Adobe Flash Player and updated it.
    Now, what I think the problem is:  The auto installer ONLY looks at Operating System and Browser to determine which version of Adobe Flash Player is correct.  In this regard, my machine should use the latest 11.2 version.  HOWEVER, if you look at the full system requirements for the 11.2 versions, you will note that it requires a...... 2.33 Ghz processor!  In this regard, 11.2 is NOT the correct version for my machine as it only has a 2.2 Ghz processor.  And I think therein lies the problem.
    So.  I freely admit that I am not a computer expert and am, in fact, so far removed from ever even contemplating wearing such a title that I'm sure all who read this are sitting in your offices having a good laugh at my expense.  As such, I welcome anyone and everyone to tell me what I've done wrong and how I should go about fixing it.  If my deductions are correct, then could someone please tell me how to choose the correct version for my machine and then tell me how to actually install it on my machine.
    I know that this is a long post and I thank you all for your patience and any help you choose to offer me.

    Mr. Willener,
    Thank you for your reply.
    I did un-install and then re-install per the Adobe recommendations which are what you listed in your reply.  The problem remained until I did a MS Windows restore to a restore point a month or so ago.  The IE problems vanished.  However, now I'm using an outdated and unsupported version that is lower than most of the web pages require for their sites, at least the ones I want to view (they all say I need to upgrade my Flash Player which, when I did, put me in this fix).
    As to:
    Pat Willener wrote:
    Usuallyexasperated wrote:
    it requires a...... 2.33 Ghz processor!
    You can safely ignore that requirement; it is simply not true.
    Why would Adobe post a system requirement of 2.33 Ghz for 11.2 if it simply were not true?
    Message was edited by: Usuallyexasperated

  • Hello, I have a problem with Adobe flash cs4 Professional, the tool, : Trace Bitmap

    So anyways, I was trying to make a Sprite animation using Adobe Flash Cs4 Professional. And While someone gave instructions on how to do so on Youtube, it said to use the Trace Bitmap tool in the top where tools are listed. So when I click, a downloading bar pops, and its loading so it can load it and do whatever the Trace Bitmap tool does. So anyways, when its like half-and-a-quarter done, one quarter stopped downloading, and to exit Adobe Flash Cs4 Professional, I have to activate Task Manager, and the tool dosen't work, help please.

    Did the Flash plugin crashes also happen with a previous version (10.1) of the Flash player?
    If you have submitted Breakpad crash reports then post the IDs of one or more Breakpad crash reports (bp-xxxxxxxx-xxxxxxxxx-xxxx-xxxxxxxxxxxx).<br />
    You can find the IDs of the submitted crash reports on the <i>about:crashes</i> page.<br />
    You can open the <b>about:crashes</b> page via the location bar, like you open a website.
    See:
    * http://kb.mozillazine.org/Breakpad (Mozilla Crash Reporter)

Maybe you are looking for

  • Error during call sqlldr - ODI version 11.1.1.3 and java 1.6.0_30

    Hey All, I have scroll thru forums for resolution of similar issue but no luck. Here is the problem this is working fine in ODI version 11.1.1.5, Except the file is mapped to local drive. Now below is the error message from ODI 11.1.1.3, Trying to us

  • If I update my iTunes will I loose my music?

    Hello, Can someone advise me on if I'm going to loose all my songs if I update iTunes on my laptop? Thanks Merry christmas

  • NW 7.01 on Oracle 10.2.0.4 - Upgrade Path to NW 7.4 on Oracle 11.2

    Hi all One of our clients has a 2-system-BW-landscape (2 physical hosts) based on the following versions: * Windows 2008 R2 SP1 * Oracle 10.2.0.4.0 * Oracle Client 10.2.0.4.0 * NetWeaver 7.01 SP7 * SAP Kernel 7.01 Patch 94 64bit UC As you can see 60%

  • A problem with connecting my mixer to the laptop

    Hi. i got my new Dynacord powermate 600-3 mixer last night and i connected to my macbook pro using USB wire it works perfectly with video recording softweres like photo booth but it does not work with grage band or adobe audition i can see that there

  • Tips and help on browsing web

    I typed http://www.facebook in the browser. I assumed that it will append ".com". But it is not sending. Is it possible for the browser to fill ".com" automatically? Are there any tips on browsing?I found following other problems. 1. When I switch to