Stopping previous functions and tweens onPress

Flash newbie.  Trying to see if someone can guide me to a way I could stop my earlier tweens and onRollOver function when my onPress function is launched.  What I worked out here with that McX/YScale.stop(); and that target9_mc.onRollOver = null; is kind of working but I don't want the onRollOver function to stop until the onPress function begins. Really appreciate any help.  Thanks.
var mcl_obj9:Object = new Object();
mcl_obj9.onLoadInit = function(target9_mc:MovieClip) {
target9_mc._x = 410;
target9_mc._y = 10;
TransitionManager.start(target9_mc,{type:Fly, direction:Transition.IN, duration:1, easing:Elastic.easeInOut, startPoint:6});
var ogYScale = target9_mc._yscale;
var ogXScale = target9_mc._xscale;
new mx.transitions.Tween(target9_mc, "_xscale", mx.transitions.easing.Strong.easeOut, ogXScale, ogXScale-38, 30, false);
new mx.transitions.Tween(target9_mc, "_yscale", mx.transitions.easing.Strong.easeOut, ogYScale, ogYScale-38, 30, false);
target9_mc.onRollOver = function():Void  {
var mcXScale:Tween = new Tween(target9_mc, "_xscale", Elastic.easeOut, 60, 64, 4, true);
var mcYScale:Tween = new Tween(target9_mc, "_yscale", Elastic.easeOut, 60, 64, 4, true);
mcXScale.stop();
mcYScale.stop();
target9_mc.onPress = function():Void {
target9_mc.onRollOver = null;
target9_mc._y += 5;
target9_mc._x += 5;
target9_mc._xscale += 5;
target9_mc._yscale += 5;
        if (target9_mc._x >= 300) {
    target9_mc._x = 475;
if (target9_mc._y >= -1) {
    target9_mc._y = 40;
if (target9_mc._xscale <= 150) {
    target9_mc._xscale = 200;
if (target9_mc._yscale <= 150) {
    target9_mc._yscale = 200;
var my_mcl9:MovieClipLoader = new MovieClipLoader();
my_mcl9.addListener(mcl_obj9);
my_mcl9.loadClip("bottlebuild9.png",this.createEmptyMovieClip("img9_mc", this.getNextHighestDepth()));

you can use:
var mcl_obj9:Object = new Object();
mcl_obj9.onLoadInit = function(target9_mc:MovieClip) {
target9_mc._x = 410;
target9_mc._y = 10;
TransitionManager.start(target9_mc,{type:Fly, direction:Transition.IN, duration:1, easing:Elastic.easeInOut, startPoint:6});
var ogYScale = target9_mc._yscale;
var ogXScale = target9_mc._xscale;
new mx.transitions.Tween(target9_mc, "_xscale", mx.transitions.easing.Strong.easeOut, ogXScale, ogXScale-38, 30, false);
new mx.transitions.Tween(target9_mc, "_yscale", mx.transitions.easing.Strong.easeOut, ogYScale, ogYScale-38, 30, false);
var mcXScale:Tween
var mcYScale:Tween
target9_mc.onRollOver = function():Void  {
mcXScale = new Tween(target9_mc, "_xscale", Elastic.easeOut, 60, 64, 4, true);
  mcYScale = new Tween(target9_mc, "_yscale", Elastic.easeOut, 60, 64, 4, true);
mcXScale.stop();
mcYScale.stop();
target9_mc.onPress = function():Void {
mcXScale.stop();
mcYScale.stop();
target9_mc.onRollOver = null;
target9_mc._y += 5;
target9_mc._x += 5;
target9_mc._xscale += 5;
target9_mc._yscale += 5;
        if (target9_mc._x >= 300) {
    target9_mc._x = 475;
if (target9_mc._y >= -1) {
    target9_mc._y = 40;
if (target9_mc._xscale <= 150) {
    target9_mc._xscale = 200;
if (target9_mc._yscale <= 150) {
    target9_mc._yscale = 200;
var my_mcl9:MovieClipLoader = new MovieClipLoader();
my_mcl9.addListener(mcl_obj9);
my_mcl9.loadClip("bottlebuild9.png",this.createEmptyMovieClip("img9_mc", this.getNextHighestDepth()));

Similar Messages

  • HT2832 Help!  My fire wire  400 ports have stopped functioning, and my 800 is now having problems

    Help!  My fire wire  400 ports have stopped functioning, and my 800 is now having problems....I'm getting a protools message telling me there is a problem with my firewire.

    First, you have posted in the wrong area, this is for PPCs and you have an intel.
    Try repairing permissions and resetting the PRAM.
    Let us know how you made out.

  • HT1338 hi, my firefox and safari are both having difficulty loading certain parts of web pages. previous to this my firefox would freeze and state that a script was not responding. i would stop the script and reload the page and everything would be fine.

    hi, my firefox and safari are both having difficulty loading certain parts of web pages. previous to this my firefox would freeze and state that a script was not responding. i would stop the script and reload the page and everything would be fine. now though the pages just load very very slowly or load leaving out certain pictures and video content. i've tried clearing my cache's and cookies, resetting my browser etc, but it seems like its a system issue as both safari and firefox are having issues. i've run Avast to screen for malware and it came up empty. any suggestions?

    10.4.8's been a pain for Networking... not sure of all the reasons though, or whether all the complaints might not be MS working around Bugs/Non-compliance, but at this point I think you should get Applejack...
    http://www.versiontracker.com/dyn/moreinfo/macosx/19596
    After installing, boot holding down CMD+s, then when the prompt shows, type in...
    applejack AUTO
    Then let it do all 5 of it's things.
    Fixes a lot of problems, and besides, if your Mac ever gets to the point it won't Boot... this is a life saver!
    After you run that... let's see where we are.
    BTW, several ISPs seem to have trouble with their DNS Servers lately, might try these insead...
    208.67.222.222
    208.67.220.220

  • Since I migrated my files from one Mac to another and am now running Yosemite, Photoshop Elements 9 (adequate for what I do) is not showing the previous functionality on some of the tools. I have uninstalled/reinstalled twice to no avail.

    Since I migrated my files from one Mac to another and am now running Yosemite, Photoshop Elements 9 (adequate for what I do) is not showing the previous functionality on some of the tools. I have uninstalled/reinstalled twice to no avail.  Is there a fix? Also, when I tried to update, it comes up with this error.

    I have a similar problem. I found out that my macbook air created a new USER with my former's computer user name. You can check that by going into System Preferences -> User & Groups, and see if a "Other user" has been created. You have to login under this new USER to find your transferred contacts in the address book.
    My problem is that I do not know how to merge the 2 USER logins or transfer the data from the new USER created into the existing one.

  • My MacBook Pro is password protected but all of a sudden the keyboard stopped functioning and I can't log in at all. What should I do? Thanks in advance.

    My MacBook Pro is password protected but all of a sudden the keyboard stopped functioning and I can't log in at all. What should I do? Thanks in advance.

    Get a USB key board

  • When I start Photoshop the program stop functioning and shuts down, I just upgraded the memory so the computers capacity should be fine.

    When I start Photoshop the program stop functioning and shuts down, I just upgraded the memory so the computers capacity should be fine.

    Moving the discussion to Photoshop General Discussion.
    Thanks,
    Atul Saini

  • My procedures stopped functioning and I cannot reset it

    My procedures stopped functioning and I cannot reset it, any tips to start from the beginning without losing content?

    Which version of photoshop and operating system are you using?
    Can you be more specific about what is not working?

  • My camera and iBooks have stopped sending emails, the function and ability to create the email is still there but my iPad will no loner send the email or even store a draft on my account to suggest the email was ever written; please help I need thability

    My camera and iBooks have stopped sending emails, the function and ability to create the email is still there but my iPad will no loner send the email or even store a draft on my account to suggest the email was ever written; please help I really need this functionality.

    Can you send any emails at all indicating that the mail app is working? Did you try any basic stuff yet?
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Close those affected apps and restart the iPad. Go to the home screen first by tapping the home button. Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner to close the apps. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • Please Help!  All of a sudden my Epson workforce 630 won't print.  I have combed the previous discussions and tried the suggestions; still not printing.  I get an error message that says'"Stopped, Filter failed"

    HI,
    I have combed previous discussions and tried the suggestions.  I am running OS X 10.9.2.  My Epson software is current( I just re downloaded all the drivers etc.) I uninstalled and reinstalled my printer.  I opened sharing and there is a name there. My hardware has this message if this helps:
    rastertoescpII:
      Path:          /Library/Printers/EPSON/InkjetPrinter2/Filter/rastertoescpII.app/Contents/ MacOS/rastertoescpII.  I have turned off, unplugged, waited... nothing.  I am able to do a test print and all is fine.  Epson only assists via email and I have to wait 24hrs.  I'm reaching out here; been banging my head against the wall since 7am today.  I really need to get back to work, sigh.  Any assistance is greatly appreciated.
    Kristin

    I was contacted by Epson support, all resolved. There were so many steps we did to resolve this; I'm unable to remember them all to share here.

  • Wrapped in a function and/or stored procedure, recursive CTE stops working

    This query builds an hierarchical tree from a single table with the typical 
    value/reports_to_value columns. 
    When running in SQL manager returns like 7 records (note i'm avoiding infinite 
    loop by blocking top level value)
    WITH c 
    AS
        SELECT deptid, reports_to_dept
        FROM glo_tree
        WHERE deptid = '18538'
        UNION ALL
        SELECT t.deptid, t.reports_to_dept
        FROM glo_tree T  
        INNER JOIN c 
    ON t.deptid = c.reports_to_dept
        where t.deptid <> '00001'
    SELECT deptid  
    FROM c 
    However, the exact same query, if wrapped in a function and/or stored procedure, 
    returns 0 records (no error message whatsoever)
    CREATE FUNCTION [dbo].[checkDept] (@deptid varchar(16))
    RETURNS TABLE
    AS
    RETURN
        WITH c 
        AS
            SELECT  deptid, reports_to_dept
            FROM    glo_tree
            WHERE   deptid = @deptid
        UNION ALL
        SELECT  t.deptid, t.reports_to_dept
        FROM    glo_tree T  
        INNER JOIN c 
        ON      t.deptid = c.reports_to_dept
    SELECT deptid  
    FROM c 
    GO
    CREATE PROCEDURE [dbo].[getDept] (@deptid varchar(16))
    AS
        SELECT deptid
        FROM dbo.checkDept(@deptid)
    Then call them like:
    select * FROM checkDept('18538')exec getDept @deptid='18538'
    Both return nothing

    Thanks Patrick, i don't think it can do that, i call it like:
    select * FROM checkDept('18538')exec getDept @deptid='18538'Just to make sure, i've changed the function like:WHERE ltrim(rtrim(deptid)) = @deptidStill the same thing

  • How stopping a version and start a new one from the previous

    Hi,
    May be someone could help me to erase my basics questions on Robosource control.
    We have to manage several versions of our product documentation and It is not clear how it is managed by robosource control. The documentation tells what can do RBSC (and it seems to be what we need) but they do not explain how to do it (prerequisites, ordered steps, etc), and I do not really succeeded. May be I missed the basics.
    All our projects are added to Robosource control 3 from RoboHelp7 Html from a local directory.
    In the database, we inserted them in a directory corresponding to a version V01.r01.
    I would like to stop this version and start a new one V01.02 with the projects which are V01.01. What is the best way to do this:
    Do I just label the directory V01.01 and "Pin" it ?  In that way how can I recover all the projects and files that were labelled and pinned for version V01.01, if I need them later ?
    Copy and rename directory V01.01 into V01.02 to continue the file modifications without modifiying the same project in V01.01?
    My questions are quite similar to Kristen's questions.
    Please can anyone help ! Thanks !

    Then the (App) tabs from that window are lost unless you can restore an older copy of the sessionstore.js file (Time Machine?) that has that lost window.
    *http://kb.mozillazine.org/sessionstore.js

  • Previous Page and Next Page functions lost

    The Previous Page and Next Page icons suddenly vanished with only the Reload Page and Add Bookmark icons showing. The only way I am able to return to a previous page is through History. Will I have to reintall Safari? and, if so, can I just install Safari without jeopardizing my data not only in Safari but other applications? I have original OS X 10.2 and 10.3 discs. Can I reintall over the existing Safari app?
    Thanks much.
    TeddyZ
    G4   Mac OS X (10.4.3)  

    Sorry, but this didn't work at all. I think Safari has been corrupted and think I'll have to reinstall.
    Do I deinstall? or can I reinstall over the existing Safari? And can I isolate Safari with my existing OS discs (I have both OS 10.2 and 10.3.5)?
    I have an external hard drive. Could that be helpful in this process?
    (I suspect that all my bookmarks will be lost, but can compensate by printing them out in hard copy).
    G4   Mac OS X (10.4.3)  

  • Apple AL Bluetooth Keyboard - Tab, Caps Lock, Function and Control keys just stopped working

    Hi All -
    All of a sudden I get on my baby, 27" iMac OSX 10.6 and the some keys on the bluetooth keyboard do not work. Specifially the Tab, Caps Lock, Function and Control keys. I'm fine with the caps lock gone (why is it there?) but the others are useful.
    I've searched all over for a solution but I haven't found one. Tried to upgrade the firmware which is fine, reset the PRAM done, checked the speech per apple support nadda.
    Please help.
    Thanks
    -M

    Hi
    Go to System preferances > Universal Access > Mouse or Mousie and trackpad > and turn your Mouse keys off.
    Then disconnect and reconnect your keyboard.
    Note that you don't open your mouse under hardware in System Preferances, this is for a whole different group of settings
    Hope This helps

  • Stopping a function

    Is there any way to stop a function?
    I have an event listener that is a function "onRollover1".
    I have a second event listener that is a function
    "onStageLeave1".
    Is there a way to put some code into the "onStageLeave1"
    function, to stop the "onRollover1" function?
    In flash 9 there was no problem if the "onRollover1" function
    didn't complete before the "onStageLeave1" function started. The
    code worked fine. But ever since upgrading to CS3, there is a
    glitch, in which causes undesirable effects.
    http://demo.xennsoft.com/assets/menu.html
    Any help would be great! Thanks in advance :)

    the problem appears to be that there are two Tweens acting on
    the same object at the same time, conflicting with each other.
    First thing to do would be to set up a global variable for the
    tween rather than a local variable. then you can refer to the tween
    later, and tell it to stop before starting a new tween on the same
    object.

  • Stop watch function in N79

    I fail to find stop watch function in N79. Do I need to install it? If yes, how and from where? Please help. Thanks.
    Solved!
    Go to Solution.

    Many thanks for your help. I use the stopwatch and countdown timer at at work and also sometimes when Cooking!
    Does anybody know why Nokia decided to not include this feature? I would have thought this is now become a basic feature of a Mobile. I also used to use it to time xtra time when watching my team, Bury FC. I have bought a timer from the Ovi store but its not very good and seems to use a lot of battery power. I'm sure if Nokia design and create a timer and stopwatch it would be as good as in previous mobiles, being more integrated into the phone. Just my thoughts on what is otherwise a very good phone.

Maybe you are looking for

  • Reports:- Stock,Priod Wise Report, Stock value, Storage Location, WBS Repor

    Dear All, Needed some of the Reports in MM Material Mangment 1. Stock Report  Value Wise 2. Stock Report  Period Wise 3. Stock Report Storage Location wise 4. Stock Report  WBS wise 5 . Stock Value Can I get all my requirement in One Report; or Indiv

  • Creating table using joins in subquery

    can we create a table by using joins in subquery?? like this create table emp as select * from employees e,departments d where d.department_id=e.department_id can we ??

  • Identify the ways to contol the commit size in ODI ???

    Hi how i can prevent from insertion/updation of any rows in target table ,if any transaction fails.

  • Locating photos in Finder

    I'm using iPhoto '07 and I have a question about locating the files. I want to add a couple pictures as attachments in an e-mail but I find it so difficult to locate them. I have to go into Finder, then pictures, then iPhoto library, then I have to g

  • How do I create a SENT On My Mac mailbox?

    I've just migrated our Macs from Microsoft Outlook for Mac to Apple Mail, iCal and Address Book and activate iCloud. I don't know how I did it, but under my MAILBOXES in the "Sent" mailbox there are two sub-mailboxes: "iCloud" and "On My Mac" Both th