Tweens/add/remove childs works fine, but after a few clicks it goes to the crapper

I keep checking this and checking this, but its obvious I'm missing something. after a few clicks the entire design breaks down. Anyone have any insight? Here's the code...
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
whitePanel_mc.addEventListener(Event.ENTER_FRAME, startUpAni);
greyPanel_mc.addEventListener(Event.ENTER_FRAME, startUpAni);
greyPanel2_mc.addEventListener(Event.ENTER_FRAME, startUpAni);
redPanel_mc.addEventListener(Event.ENTER_FRAME, startUpAni);
bgPanel_mc.addEventListener(Event.ENTER_FRAME, startUpAni);
banner_mc.buttonMode = true;
websites_mc.buttonMode = true;
content_mc.buttonMode = true;
contact_mc.buttonMode = true;
var startAd_mc:StartAd = new StartAd();
var return_mc:Return = new Return();
var infoText1_mc:Info = new Info();
var infoText2_mc:Info2 = new Info2();
function getReturnBtn(e:TweenEvent):void
banner_mc.removeEventListener(MouseEvent.CLICK, startBanText);
contact_mc.removeEventListener(MouseEvent.CLICK, startConText);
content_mc.removeEventListener(MouseEvent.CLICK, startContText);
websites_mc.removeEventListener(MouseEvent.CLICK, startWebText);
return_mc.buttonMode = true;
return_mc.x = 100;
return_mc.y = 466;
return_mc.addEventListener(MouseEvent.CLICK, restoreMainMenu);
addChild(return_mc);
function startWebText(e:MouseEvent):void
var contMenuTween:Tween = new Tween(content_mc, "x", Strong.easeOut, content_mc.x, 0, 6, false);
var conMenuTween:Tween = new Tween(contact_mc, "x", Strong.easeOut, contact_mc.x, 0, 6, false);
var banMenuTween:Tween = new Tween(banner_mc, "x", Strong.easeOut, banner_mc.x, 0, 6, false);
var wTween:Tween = new Tween(whitePanel_mc, "x", Strong.easeOut, whitePanel_mc.x, 899, 12, false);
var gTween:Tween = new Tween(greyPanel_mc, "x", Strong.easeOut, greyPanel_mc.x, 899, 12, false);
var g2Tween:Tween = new Tween(greyPanel2_mc, "x", Strong.easeOut, greyPanel2_mc.x, 899, 12, false);
infoText1_mc.x = 25;
infoText1_mc.y = 25;
infoText1_mc.gotoAndStop("websites");
addChild(infoText1_mc);
infoText2_mc.x = 458;
infoText2_mc.y = 120;
infoText2_mc.gotoAndStop("websites");
addChild(infoText2_mc);
removeChild(startAd_mc);
banMenuTween.addEventListener(TweenEvent.MOTION_FINISH, getReturnBtn);
function startContText(e:MouseEvent):void
var webMenuTween:Tween = new Tween(websites_mc, "x", Strong.easeOut, websites_mc.x, 0, 6, false);
var conMenuTween:Tween = new Tween(contact_mc, "x", Strong.easeOut, contact_mc.x, 0, 6, false);
var banMenuTween:Tween = new Tween(banner_mc, "x", Strong.easeOut, banner_mc.x, 0, 6, false);
var wTween:Tween = new Tween(whitePanel_mc, "x", Strong.easeOut, whitePanel_mc.x, 899, 12, false);
var gTween:Tween = new Tween(greyPanel_mc, "x", Strong.easeOut, greyPanel_mc.x, 899, 12, false);
var g2Tween:Tween = new Tween(greyPanel2_mc, "x", Strong.easeOut, greyPanel2_mc.x, 899, 12, false);
infoText1_mc.x = 25;
infoText1_mc.y = 25;
infoText1_mc.gotoAndStop("content");
addChild(infoText1_mc);
infoText2_mc.x = 458;
infoText2_mc.y = 120;
infoText2_mc.gotoAndStop("content");
addChild(infoText2_mc);
removeChild(startAd_mc);
banMenuTween.addEventListener(TweenEvent.MOTION_FINISH, getReturnBtn);
function startConText(e:MouseEvent):void
var webMenuTween:Tween = new Tween(websites_mc, "x", Strong.easeOut, websites_mc.x, 0, 6, false);
var contMenuTween:Tween = new Tween(content_mc, "x", Strong.easeOut, content_mc.x, 0, 6, false);
var banMenuTween:Tween = new Tween(banner_mc, "x", Strong.easeOut, banner_mc.x, 0, 6, false);
var wTween:Tween = new Tween(whitePanel_mc, "x", Strong.easeOut, whitePanel_mc.x, 899, 12, false);
var gTween:Tween = new Tween(greyPanel_mc, "x", Strong.easeOut, greyPanel_mc.x, 899, 12, false);
var g2Tween:Tween = new Tween(greyPanel2_mc, "x", Strong.easeOut, greyPanel2_mc.x, 899, 12, false);
infoText1_mc.x = 25;
infoText1_mc.y = 25;
infoText1_mc.gotoAndStop("contact");
addChild(infoText1_mc);
removeChild(startAd_mc);
banMenuTween.addEventListener(TweenEvent.MOTION_FINISH, getReturnBtn);
function startBanText(e:MouseEvent):void
var webMenuTween:Tween = new Tween(websites_mc, "x", Strong.easeOut, websites_mc.x, 0, 6, false);
var contMenuTween:Tween = new Tween(content_mc, "x", Strong.easeOut, content_mc.x, 0, 6, false);
var conMenuTween:Tween = new Tween(contact_mc, "x", Strong.easeOut, contact_mc.x, 0, 6, false);
var wTween:Tween = new Tween(whitePanel_mc, "x", Strong.easeOut, whitePanel_mc.x, 899, 12, false);
var gTween:Tween = new Tween(greyPanel_mc, "x", Strong.easeOut, greyPanel_mc.x, 899, 12, false);
var g2Tween:Tween = new Tween(greyPanel2_mc, "x", Strong.easeOut, greyPanel2_mc.x, 899, 12, false);
infoText1_mc.x = 25;
infoText1_mc.y = 25;
infoText1_mc.gotoAndStop("banners");
addChild(infoText1_mc);
infoText2_mc.x = 458;
infoText2_mc.y = 120;
infoText2_mc.gotoAndStop("banners");
addChild(infoText2_mc);
removeChild(startAd_mc);
contMenuTween.addEventListener(TweenEvent.MOTION_FINISH, getReturnBtn);
function restoreMainMenu(e:MouseEvent):void
removeChild(return_mc);
removeChild(infoText1_mc);
if (infoText2_mc.visible == true)
  removeChild(infoText2_mc);
return_mc.removeEventListener(MouseEvent.CLICK, restoreMainMenu);
stage.addEventListener(Event.ENTER_FRAME, startMenuAni);
whitePanel_mc.addEventListener(Event.ENTER_FRAME, startUpAni);
function startUpAni(e:Event):void
var wTween:Tween = new Tween(whitePanel_mc, "x", Strong.easeOut, whitePanel_mc.x, 330, 6, false);
var gTween:Tween = new Tween(greyPanel_mc, "x", Strong.easeOut, greyPanel_mc.x, 356, 10, false);
var g2Tween:Tween = new Tween(greyPanel2_mc, "x", Strong.easeOut, greyPanel2_mc.x, 393, 14, false);
var rTween:Tween = new Tween(redPanel_mc, "x", Strong.easeOut, redPanel_mc.x, 428, 18, false);
var bTween:Tween = new Tween(bgPanel_mc, "x", Strong.easeOut, bgPanel_mc.x, 454, 20, false);
rTween.addEventListener(TweenEvent.MOTION_FINISH, removeAni);
function removeAni(e:TweenEvent):void
whitePanel_mc.removeEventListener(Event.ENTER_FRAME, startUpAni);
greyPanel_mc.removeEventListener(Event.ENTER_FRAME, startUpAni);
greyPanel2_mc.removeEventListener(Event.ENTER_FRAME, startUpAni);
redPanel_mc.removeEventListener(Event.ENTER_FRAME, startUpAni);
bgPanel_mc.removeEventListener(Event.ENTER_FRAME, startUpAni);
stage.addEventListener(Event.ENTER_FRAME, startMenuAni);
function startMenuAni(e:Event):void
var contTween:Tween = new Tween(contact_mc, "x", Strong.easeOut, contact_mc.x, 100, 3, false);
var webTween:Tween = new Tween(websites_mc, "x", Strong.easeOut, websites_mc.x, 150, 3, false);
var conTween:Tween = new Tween(content_mc, "x", Strong.easeOut, content_mc.x, 200, 3, false);
var banTween:Tween = new Tween(banner_mc, "x", Strong.easeOut, banner_mc.x, 250, 3, false);
banTween.addEventListener(TweenEvent.MOTION_FINISH, removeMenuAni);
banner_mc.removeEventListener(MouseEvent.CLICK, startBanText);
contact_mc.removeEventListener(MouseEvent.CLICK, startConText);
content_mc.removeEventListener(MouseEvent.CLICK, startContText);
websites_mc.removeEventListener(MouseEvent.CLICK, startWebText);
startAd_mc.x = 25;
startAd_mc.y = 25;
addChild(startAd_mc);
function removeMenuAni(e:Event):void
stage.removeEventListener(Event.ENTER_FRAME, startMenuAni);
banner_mc.addEventListener(MouseEvent.CLICK, startBanText);
contact_mc.addEventListener(MouseEvent.CLICK, startConText);
content_mc.addEventListener(MouseEvent.CLICK, startContText);
websites_mc.addEventListener(MouseEvent.CLICK, startWebText);
Is it the tweens? do I have too many? Should I create variables for the exact destinations of the objects? Should I create some null references? Should I index some of it with array(s)? I know i'm missing something...
This can actually be viewed here as well... www.calladorn.com

Ideas anyone?

Similar Messages

  • I use a two button mouse with my Mac Book Pro.  It works fine, but after installing Lion, the mouse wheel goes in reverse of what it did (rolling the wheel towards your palm goes up not down the page).  Anyone know how to fix this?

    I use a two button mouse with my Mac Book Pro.  It works fine, but after installing Lion, the mouse wheel goes in reverse of what it did (rolling the wheel towards your palm goes up not down the page).  Anyone know how to fix this?

    First sentence in OPs question:
    I use a two button mouse with my Mac Book Pro
    I guess the track pad settings would look similar to my screen shot?
    Regards,
    Colin R.

  • I bought an iPad in June 2012 and have it worked fine, but after 2 weeks of purchase, he began to hang up, then the sound disappeared and the screen became black. I updated all through itunes, but the sound is still absent, and still problem with sound an

    I bought an iPad in June 2012 and have it worked fine, but after 2 weeks of purchase, he began to hang up, then the sound disappeared and the screen became black. I updated all through iTunes, but the sound is still absent, and still problem with sound and iPad still doesnt work.

    Take it to an Apple Store for evaluation.
    Make a Genius Bar Reservation
    http://www.apple.com/retail/geniusbar/
     Cheers, Tom

  • Linked server using kerberos working fine then after inacitive for 10 minutes start receiving the anonymous logon error

    Linked server using kerberos working fine but after leaving the session inactive for 10 minutes is startin to fall down to ntlm and receive the anonymous logon error

    we are connecting to  SQL mgmt studio app published on citrix, using  Windows authentication and Kerberos to forward the credentials to the linked servers and avoid the double hop issue, that part is working fine,  we already have the Constrained
    delegation, SPNs and Active directory settings for the Service accounts and the authentication is working, we can connect to the linked servers without errors, it's only whe the Session get idle when we faced the issue, the citrix team already have verifyed
    any timeout setting and they mentioned there is no 10 minute timout setting anywhere,  we also looked at the Kerberos AD Global policy settings to see if maybe the kerberos service ticket was expiring, but the configured values are  Maximum lifetime
    for service ticket 600 minutes  Maximum lifetime for user ticket 10 hours  Maximum lifetime for user ticket renewal 7 days, if you have any other suggestion please let me know.

  • I have an old iPhone 3Gs with software version 4.3.5,  I am trying to use it again, and it works fine, but I have not been able to update the software.  Every time I try, I get the following message: "there was a problem downloading the software for the i

    I have an old iPhone 3Gs with software version 4.3.5,  I am trying to use it again, and it works fine, but I have not been able to update the software.  Every time I try, I get the following message:
    "there was a problem downloading the software for the iPhone, the network connection could not be established".  This happens even though I have a working internet connection.
    Besides that, all the other functions work properly, even synchronize apps and library.
    Will I be able to update the software?

    look around the forum tons of people repport that they can't update
    makes you suspect that apples update servers can't meet the depand of too many users
    trying to update at once

  • Linked server using kerberos working fine then after inactive for 10 minutes start receiving the anonymous logon error

    Linked server using kerberos working fine then after inactive for 10 minutes start receiving the anonymous logon error

    Hi,
    This Could be  a double hop problem or some thing could have gone wrong with your SPN
    This could also be non trusted Service Account under which your SQL Server is running
    Check the following links
    http://blogs.technet.com/b/askds/archive/2008/06/13/understanding-kerberos-double-hop.aspx
    http://blogs.msdn.com/b/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx
    https://technet.microsoft.com/en-us/library/cc739474(v=ws.10).aspx
    Hope this helps
    Thanks
    Bhanu

  • TS1398 I updated my airport firmware and my Imac works fine, but my two Ipads won't connect to the internet now. How can I fix this?

    I updated my airport firmware and my Imac works fine, but my two Ipads won't connect to the internet now. How can I fix this?

    Did you check your wifi settings and do a reboot?

  • I have bought a docking station and my iphone works fine but my ipod mini seems to fit on the connection but only works intermittently. Is it a different connection or is there a problem with the ipod?

    I have bought a docking station and my iphone works fine but my ipod mini seems to fit on the connection but only works intermittently. Is it a different connection or is there a problem with the ipod?

    I think that is happening is that the microphone is on during this recording.  If you play the music through the iPhone speakers, it will record this sound, albeit at very poor quality.  If you say anything (or laugh uproariously as I did while watching the app in action, then that, too, get recorded.
    I am still looking for the solution we all want, which is to save the audio in reasonable quality.
    Anyone out there with some ideas?
    Cheers,
    Rob

  • Firefox 4 initially worked fine, but after a back-up and restoration (now on a hybrid disk) it cannot find the bookmarks and crashes when I attempt to open the HTML file

    I installed Firefox 4 on my 2010 13" MBP, standard configuration. It worked fine except that it didn't recognize any of the add-ons I was using and, to be frank, I don't like the interface as much as v.3. But ...
    Then I backed up the entire HD, wiped the HD, removed it and replaced it with a Seagate hybrid HD. I then booted from the b/u and installed the entire HD contents on the new hybrid HD. Everything runs fine except for one thing -- Firefox 4 now will not recognize my bookmarks.
    I tried reinstalling FF4 but this made no difference.
    I did the b/u and restoration with Carbon Copy Cloner which I have used successfully for many b/u and restore operations on this and the white MB I previously owned.
    Uh oh! I just tried to save a new bookmark (of this page) and it did not save -- or at least, it did not show in the "Show all Bookmarks" pane.
    HOWEVER, when I start typing in a URL, it FF4 comes up with the completed URL in a flash. e.g. I typed "wiz" and FF4 showed me the completed URL (which should be in my Toolbar bookmarks and which I visit t least once daily).
    Kind regards
    Geoffrey Heard
    Business & Environment Writer, Editor, Publisher
    The Worsley Press

    Do a clean (re)install and delete the Firefox program folder (C:\Program Files\Mozilla Firefox\).
    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 10.0.x: http://www.mozilla.org/en-US/firefox/all.html
    Uninstall your current Firefox version, if possible.
    *Do NOT remove personal data when you uninstall the current version or you lose your bookmarks and other data because all profile folders will be removed.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_backup
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • Firefox previously worked fine but after installing new version does not open. Opens in the same day that I install it but not after restarting computer.

    I just installed the new version of firefox. My firefox worked fine with the previous version. But the new version only works on the day I install it but the next time i start my computer it does not work. It does not open after clicking the icon. I even uninstalled it and then reinstalled it but again the same thing happened. I have no idea about plug ins etc. but I did not install any new ones.

    This is a very interesting issue. Let's start with trying [[safe mode]], [[managing profiles|new profile]], and [http://firefox.com/all-older.html installing an older version] - if one of these works, please don't do the rest and reply here.

  • Am using windows 7 and upon installing firefox 4 i installed speeddial extension and it was working fine but after 2 days speed dial no longer appears why is that?

    upon downloading firefox I added speed dial . It was working fine for a couple of days but yesterday when I opened up firefox which I made as a default browser because of the speed dial it no longer appears even though it is still appearing as one of the extensions and is enabled

    Hello Steve.
    You may be having a problem with some extension or plugin that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    If you detect a faulty add-on, you should contact its author for support. You can also search for alternatives. Site filters are relatively common in the add-ons gallery: [http://addons.mozilla.org addons.mozilla.org].

  • Battery was working fine but after crash...

    My iphone had been working perfectly. I got it on launch day and have really put it through it's paces. I experienced no charging problems and only a few situations where Safari would shut down and only once where I had to hold the sleep button to power down.
    but...
    2 days ago it froze hard in Safari on the Apple web site. It was on and would not shut off - no response - so after 5 minutes I did the reset where you hold both buttons. It worked perfectly and came back up.
    I was at 80% so I pugged it into the computer that night and when I got up in the morning it still was not fully charged. I had the lightning bolt. I used it down to about 10% and then charged and it worked perfectly with the timings we expect. About 2.5 hours for 80% and another 2 hours or so to get full charge with battery.
    So I used it again until about maybe 30% and plugged it in again yesterday afternoon. I noticed that after about 6 hours of charging it was just slightly over half. I was having a party so didn't pay attention to it but got up this morning and there it is. Charging for about 18 hours and I still have the lighting bolt.
    I have read of the many battery problems and people returning them but my batter was fine unti the crash. This makes me think it is something more software than hardware related.
    Anyone else have this problem?
    Anyone went to Apple tech support with this?
    Has tech support told anyone to do a system restore to fix this?
    Has anyone done the system restore thing in iTunes to try and fix this problem?
    TIA
    Havrek

    I always charge via USB. However my frist charge aftre the iPhone crashed and I had to hard reset was via A/C because I was at work. This never went from lightning bolt to plug.
    My next charge was via USB over night, like usual, and it went it worked and my usage stuff got updated.
    This last charge again was from USB, like usual, and will not go from lightning bolt to plug so my usage stats won't reset because it thinks there has not been a full recharge.
    My statistics now say over 23 hours of usage and 2.5 days of standby. I wished the batter lasted that long.
    But for now I just wish the battery would go back to normal.
    I have done a shutdown and restart but no luck. I'm going to drain the battery for a while and then try again. I was getting ready to restore just to see if it would go back to normal but I saw posts about no restoring today/activation down.

  • Autofill used to work fine, but after I downloaded 4.0.1, it stopped working. I will use IE until that feature is fixed.

    Google Autofill still shows in my toolbar, but it will not work any more since I downloaded the new version 4.0.1. It works fine on IE, so I will use that until it is fixed on FF. It is a very important feature for me, since I do a lot of web e-commerce. Please email me when it is fixed.

    Google Autofill still shows in my toolbar, but it will not work any more since I downloaded the new version 4.0.1. It works fine on IE, so I will use that until it is fixed on FF. It is a very important feature for me, since I do a lot of web e-commerce. Please email me when it is fixed.

  • I have windows 7 When I first start firefox works fine but after an hour or so it quits and won't load pages unless you go off line and start over. What can I do?

    My question pretty much covers it. The program works fine usually about an hour and then when I go to load a page it comes up blank and you can see it is not searching. The only thing to do is go off internet and reconnect. Sometimes I have to shut the computer down.

    The default of the pref network.http.max-connections has been increased from 30 to 256 in Firefox 6+ versions.
    Try to decrease the value of the pref <b>network.http.max-connections</b> from 256 to 30 as used in Firefox 3 versions.
    *https://support.mozilla.com/kb/Firefox+never+finishes+loading+certain+websites

  • TS1398 I am begun to experience problems with my wi-fi connection on my home router.  All other devices in the house work fine - but my iPhone 3GS seems to connect to the route OK, then loses the connection,  I have tried re-boot/network settings etc - no

    As per my headline comment, the wi-fi connection (which before IO6) worked fine now problematic, and iPhone in serious danger of flying out of the window..is there an option to get previous IOS back on the phone?  I have tried the various "solutions" indicated in the chat forum but nothing helps..any ideas before I lose what little hair I have left?

    If, as you suggest, you have iOS 6.0.2 installed in your 3GS, you shouldn't have. That OS is only for the iPhone 5 and Mini iPad.
    Try rebooting the router. Any other devices working happily on it are irrelevent.

Maybe you are looking for

  • Moving movie files from Windows to iMovie

    Hello, I have recently purchased a Macbook and have a number of home movies on VHS I want to edit and convert to DVD using iMovie. I do not have a analog to DV device to connect to my Macbook, but I do have one installed in my Win/XP machine. I would

  • How to add an element to an array, then be able to remove it specifically

    So i have a list of numbers. The user is able to then add numbers to that list. I have a button which allows the user to remove any number of their choice by typing that number in a textbox. For some reason the numbers that the user add to the list w

  • Content Server / Content Repository / Archive Link and co.

    Hi, i have installed a content server on an external Windows 2003 Server Plattform using MAXDB. The Server is now running and working properly. The test of the content repositories were positive too. Now im a bit confused about all the actions which

  • Office 2013 Keeps Prompting Proxy Authentication

    I am using Microsoft Office 2013 behind company proxy. Each time I launch an office application it will keep on prompting me for proxy authentication on the following domains. this computer is in domain and I am login with domain username and passwor

  • Problems weiwing photos

    I have a problem viewing photos