Pop/Push MC to stage help

I'm new to Actionscript 2.0 and I need some feedback on my (first!) attempt to create an array that will contain 8 instances of 2 different movieclips. As each (checkmark MCs) is added to the stage, another attention getter clip will be removed (circle MCs). So on my first frame of this command one bluecircle should be popped from the stage, and one bluecheck pushed. Then the same with the green clip on the next frame, again back to the blue's on the following frame, and finally both one blue set and one green set.
Button
invis_Btn.onRelease = function() {
    this.enabled = false;
    bar1.play();
    rt_Btn.enabled=true, new Tween(rt_Btn, "_alpha", 20, 100, 6, false);
invis_Btn.addEventListener("click", markerPush)
Poor attempt at an array
var markerArr:Array = new Array("bluecircle", "bluecheck"+i, "greencircle", "greencheck"+i, "bluecircle", "bluecheck"+i, "greencircle", "greencheck"+i);
for (i=0; i<8; i++) {
    var bluecheck:MovieClip = attachMovie("bluecheck"+i, this.getNextHighestDepth(), {_x:260, _y:400});
    var bluecircle:MovieClip = attachMovie("bluecircle"+i, this.getNextHighestDepth(), {_x:260, _y:400});
    var greencheck:MovieClip = attachMovie("greencheck"+i, bluecheck.getNextHighestDepth(), {_x:260, _y:400});
    var greencircle:MovieClip = attachMovie("greencircle"+i, bluecircle.getNextHighestDepth(), {_x:260, _y:400});
    function markerPush(event):Object {
        return markerArr.pop(bluecircle);
        trace("popped");
        return markerArr.push(bluecheck+i);
        trace("pushed");
I had attached them and removed them via strict declarations of attachMovie(...) and removeMovieClip(...) linked to the next/previous buttons I had encoded but found that this was a bit buggy as it sometimes generated extra clips that weren't necessarily added and removed correctly depending on the step the user was at. Any suggestions? Am I approaching this with an improper solution? Would a switch command work better?
Thanks in advance for any help!!

Gotcha on the undefined i. My thinking was a for loop would give the range I was pushing into the array, which is 8 items. Is the event listener the AS3 code you're mentioning? I thought that listeners like this were defined in AS2...
Deleting all the code and starting over isn't an option. This program is fully functional aside from this array. I'm not going to trash an entire project for a single bit of code that I've no experience with, and am having problems getting functional because it doesn't address the issue.
I'm not following your assertion of markerPush() being repeatedly defined as I'm trying to have the invis_Btn trigger the listener (apparently the AS3 code I need to fix?) which in turn triggers the array to add the items to the stage.

Similar Messages

  • In the new mail app for OSX v10.7 Lion it seems I can only setup my gmail account as an "imap", when I need to set it up as "pop"... PLZ HELP I NEED MY MAIL TO WORK!!!

    In the new mail app for OSX v10.7 Lion it seems I can only setup my gmail account as an "imap", when I need to set it up as "pop"... PLZ HELP I NEED MY MAIL TO WORK!!!

    Go to System prefs
    Select Mail Contacts and Calendars
    Then select Other
    Then select "Add a Mail Account and click create
    Then go to google for the settings you need:
    First here for the settings online at gmail http://tinyurl.com/du3fu
    Then here for the setting in mail http://tinyurl.com/38fevm8
    These are instructions for Mail 4.0 but all of the necessary settings should be listed.

  • My ipad2 won't accept my apple password for new app install. I've tried several time and get a pop up "unknown error". Help?

    My ipad2 won't accept my apple password for new app install. I've tried several time and get a pop up "unknown error". Help?

    Sign out of your account, restart the iPad and then sign in again.
    Settings>iTunes & App Store>Apple ID. Tap your ID and sign out. 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.
    Go back to Settings>iTunes & App Store>Sign in and then try again.

  • I upgraded to iOS 7 yesterday on my iphone and now none of my apps shows me any new message and when i open the apps it says "Connect to itunes for push notifications". Please help!!!

    I upgraded to iOS 7 yesterday on my iphone and now none of my apps shows me any new message and when i open the apps it says "Connect to itunes for push notifications". Please help!!!

    Same here.  I don't know how to solve the problem, but I figured out a way to close the app without re-starting or resetting the phone.  If you click ok and then press the home button twice really fast before the dialog box shows back up, you can put the phone in multi-tasking mode and close the app without having the shut the phone off or reset it.  Anxiously awaiting the fix for this since I have several apps I use that I can access at the moment.

  • My dvd rom pops out automatically ..please help me solve it..

    my dvd rom pops out automatically ..please help me solve it

    Hello @swarup463,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I have read your post on how your DVD rom ejects automatically, and I would be happy to help you!
    For further assistance, I will need to know:
    The Product and Model Number of your notebook computer.
    The version of Windows you have installed on your computer.
    If your computer has completed all of its important Windows Updates.
    If you have updated your HP drivers using the HP Support Assistant.
    If this is an on-going, or recent issue.
    Please re-post with the necessary information, this way I will be able to research this further for you. I look forward to your reply!
    Cheers! 
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • When linking the icloud 3.0 software to my 2010 outlook an unepexted error message pops up. Can anyone help?

    When linking the icloud 3.0 software to my 2010 outlook an unepexted error message pops up. Can anyone help?

    Not sure if you are trying to upgrade iCloud storage to make more room for the upgrade, but that won't help you. If you do not have enough room on your device for the upgrade, then you have to delete some things off of your device. You can also try to do the upgrade via iTunes on the computer you sync with. A direct upgrade does not require as much memory as a Wifi upgrade.
    Upgrading iCloud storage only provides more storage for your backups and for your iCloud sync'd items like messages, contacts, etc.
    Until the iCloud Drive is fully functional, iCloud will not help you to increase the memory capacity of your device.
    And, right now, the iCloud servers may just be overloaded with activity.
    Cheers,
    GB

  • When I try to activate my iMessage with the new iOS 7, it will not accept my original Apple ID. Also, when I try to use snapchat, it keeps popping up "login to iTunes to allow push notifications." please help!" I'm really frustrated

    Please help!!!

    I got this under XP before. I was totally baffled until I realized there was a network drive mapped to the same place XP was trying to mount my iPod. The common symptom is that you'll get this sort of "corrupt" error on one machine but it works ok on a friend's machine. If that's true for you, you can change the network drive mapping to another drive letter (easiest) or mount your iPod and change its drive letter in the disk management control panel (under admin tools).
    Hope that helps... this one just about had me pulling my hair out until I recognized the problem.

  • Learning Stage Help

    Dear All,
    I am 10 day old for this kind of new era. I got InDesign CS4 plugin development request. I have only heared about InDesign, but I have never done any development work on it. But yes I have developed some xtensions for Quark.
    I have gone through the SDK of indesign and I have explored so many of SDK samples. It's my lackness only that I am not feeling comfortable with this SDK, like Quark XDK is well organized. Can any one have idea how can I explore InDesign SDK, so that I can start development as soon as possible.
    Also, if some one has some extra sample plugins to learn Plugins development. It is self understood only that so many of you have a lot of test sample plugins might be you have developed at the stage of learning.
    I don't want any source code help, just i want help at the learning stage only.
    Regards,
    Ritu

    Hi Ritu
    After you've read the "learning-indesign-plugin-development.pdf" you might find it easier to start by creating a simple document by hand (not using code). Then ceate a new plugin using the DollyXs tool to do the following;
    1. Get a reference to the open document you just created.
    2. Get reference to spread/page where you added content, explore it's attributes.
    3. Build list of the page items (textframes, graphics etc) you added  to the doc.
    4. Explore the attributes of the different page items using the various interfaces.
    5. Add a new page via code
    6. Add new page items via code.
    7. Save and close the document.
    Use the "solutions.pdf" it contains or points to examples for doing all the above. This may seem simple but it's a good way to start learning the API.
    Good Luck.
    Mike

  • Safari/itunes pop-up black boxes, please help!

    In the past week I have started getting small black boxes popping up all the time with the safari symbol which says "itunes 25 new releases". If I click on it, it goes to a web page with newly released music for sale but no way to contact or unsubscribe. What is going on? How can I get rid of these?

    It has iTunes logo on screen and hasn't changed. Just before restore completes it pops up with network timed out? I really don't have a clue what to do. Would be so great full if someone could help?laptop is windows xp

  • Pop ichat sound is missing HELP!! Please

    ok so i just noticed that my ichat sound when im in a video chat has disappeared. its been missing for like 4 days, and i havent been able to fix the problem.
    im not talking about the main sound. im talking about the pop noise.
    so if anybody could help me fixed this it would be much appreciated

    And in System Preferences > Sound > Sound Effects what is the volume set for the Alerts ?
    Take iTunes for Instance.
    You can turn the Master volume of the computer Up or Down using the Keyboard or in System Preferences > Sound (Any tab) and the Output volume at the bottom.
    Or you can use the iTune interface to turn it up.
    The same is true of Alerts except the control is in the System Preferences > Sound > Sound Effect tab.
    I have not tried the CoreAudio Force Quit in Activity Monitor.
    If it persists I normally delete com.apple.audio.DeviceSettings.plist from inside Hard Drive/Library/Preferences and restart the computer.
    The particular Preferences folder holds System Wide Preferences rather than personal ones. (Hard Drive/Users/(Your account name)/Library/Preference).
    You will have to go to the Hard Drive/Library/Preferences manually by clicking through the folders as Spotlight does not report on this Library folder.
    8:24 PM Sunday; August 23, 2009
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
    iChat Sounds are played as Alerts when playing as part of iChats's normal function.

  • Movie Clips vs the Stage help me out plz

    Before i start i currently am taking a class on flash and i
    dont think we have gone terribly in depth.
    I have 2 sets of Code one in a Movie Clip and another on the
    Stage.
    the issue i have is neither one can see variables from the
    other. is there some special syntax or notation i need to pass the
    variables
    I cant see the Current Unit in the Button

    Syntactically your code is just fine. I didn’t receive
    any errors when I checked it. However I would rearrange some things
    in it. The 2 eventhandlers in the onEnterFrame function, I would
    pull these out and put them outside of the onEnterFrame function
    but on the same frame.
    “the issue i have is neither one can see variables from
    the other. is there some special syntax or notation i need to pass
    the variables”
    Inside that mc, the code that you have below “//Code in
    Button”, it is typically recommended that you don’t
    reference other movieclips by using ‘_levelX’. Use a
    relative path, such as ‘this._parent” or
    “this._parent._parent” depending on how many movieclips
    are nested into it. Also note, when you reference a movieclip from
    inside an eventHandler (onPress, onRelease, onEnterFrame, etc.) you
    are already within an object. So to reference something on the same
    tier you should use ‘this._parent’. Once you find the
    correct tier by using the code I mentioned in the last sentence,
    you then need to attach the instance name of the movieclip you are
    trying to access (that is if you are trying to access a movieclip).
    For an example, ‘this._parent.currentguy’.
    I hope this helps, I understand it may be hard to grasp
    however give it a shot and post back.
    You may be interested in this link that is from the livedocs;
    http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context= LiveDocs_Parts&file=00001220.html

  • I don't know where and how to change my browser's settings to allow POP-UPS??? Help!!!

    Help!!! I need to change my browser's settings to allow POP-UPS from the AT&T website so a new window can appear so I can do the tests. Help!!! This is time sensitive!!! :)

    Hi,
    If you go to the AT&T site and then tap the icon to the left of the URL/location bar, you can select 'Clear Site Preferences' to allow popups.
    Thanks,
    Michelle

  • **** sites keep popping up on my computer Help

    **** sites just started popping up on my MacBook Pro.  Is this a virus?  How do I stop this?  Do I need anti virus software?  Is so, what can I get to prevent this type of thing happening in the future.  I have never had a virus on a Mac before and I have been using Macs for years.  Please help!
    Thanks, Nadia

    You don't have a virus; you have a trojan horse. Instructions for removing it are here:
    http://www.fixkb.com/2011/05/remove-mac-protector.html

  • Droid Incredible and GoDaddy POP email problems.  Please HELP!!!!!

    My prior phone (LG Touch) used mobile email and I accessed my GoDaddy mail account with no problems.
    I just got the HTC Droid Incredible and was on the phone for hours with tech support with no resolution.
    I am able to receive email but cannot send it.  This almost makes this smartphone worthless to me.
    Here are my settings:
    Incoming POP server:  pop.secureserver.net  (Port 110 with no security)
    Outgoing SMTP Server:  smtpout.secureserver.net (Port 25 or 80)
    Incoming Works.  Outgoing does not.  I can't believe this is a problem considering GoDaddy is the largest hosting
    company in america.  They assure me that the problem is not on their end.
    The only thing I can do at this point is use the GoDaddy app to send and receive email.  This sucks cause there are
    extra steps involved and it's obviously not as nice as the built-in email feature for this phone.
    Has anyone encountered this problem with the outgoing mail using GoDaddy?
    Thanks in advance for your suggestions

    Have you tried K9 for email?  You should!
    You should be ok using port 80, security type: None, and                           try checking require sign-in
    http://help.godaddy.com/
    article/3553 might offer some help

  • Push notifications problem, please help!

    Hi,
    I own a factory unlocked iPhone 4 bought at my local Apple Store. My devices runs iOS 4.2.1.
    My problem is that I can't get any push notifications from apps like Facebook and Echofon Pro. I checked many times and everything is O.K. in the settings. I should receive push notifications from Facebook notifications and from people who are replying me in Twitter since I am using Echofon Pro and this app support Push Notifications for mentions.
    I am also a MobileMe subscriber and I use my @me.com mail as my primary mail service so my account is registered in my iPhone 4 and I receive push notifications from new mails that I receive.
    I really don't understand this problem... I have my mail push notifications but not my Echofon Pro or my Facebooks notifications...
    Please, if someone would help me, I would really appreciate...
    Thanks!
    Chris

    there has always been problems with push notifications on the iPhone I only get facebook ones every once in a while are you not getting any at all?

Maybe you are looking for

  • Visual studio online - Excel power query usage and samples needed

    Background Visual Studio Online does not offer much in the way of reporting, when compared to (onsite) TFS... unless you utilize the REST API functionality. The Visual Studio Online REST API is fairly extensive, but not very 'reporting' friendly to a

  • Not able to Post Salary

    Dear Experts, I am trying to post salary for the month of august to System through PC00_M99_CIPE. When I run in simulation mode the result I get is -> Posting Run Posting Run type - PP Posting Run Number - 401 Doc. Creation - No Errors Statistics Mes

  • Curve 8530 White Screen, help please?

    I have a white screen. It did not get damaged or wet in any way. I can hear my phone ringing, hear alerts and see the LCD indicator light flashing. I cannot press any buttons to answer the phone or see the screen. The screen will only turn white when

  • Westell 7500

    I see a few people ask, but no answer that works.  How the heck do you change the time and date on the thing?  I log into the router, and it is exactly two hours behind the time on my computer.  I have checked and unchecked the Daylight savings time

  • CFGRID - Sum of Column Values

    Hi, Is there a way to sum | total a column of numeric values in a cfgrid? I want to populate a cfinput text box with the number, and bind it so that as changes to numbers occur on the grid, the cfinput box changes. I've been able to do this by creati