Swaping button on stage to button in library

I have event listeners for a MouseEvent.CLICK and so when the
listener triggers the function I want it to change the "box" symbol
on the stage to the corresponding symbol in the library for the
target.
So basically, what is the method and syntax that allows for
such a swap?
Thx.

you can't swap objects.
but you can remove an object from the display list and you
can add an object.
to remove an object, use the removeChild() method of
displayobjectcontainers.
to add an object, assign a class to your library item,
instantiate it (using the "new" constructor), and add it to the
display list using addChild.

Similar Messages

  • Buttons in an attached movie from library

    I used the tutorial posted at
    http://www.layersmagazine.com/flash-attaching-movieclips-actionscript.html
    Now I have a button on my stage that attaches a movie from the
    library.
    on (release) {
    this.holder.attachMovie(“contents”,”contentslinks”,1);
    It works fine but I also have buttons inside the attached
    movie clip that need to control a movie that is already on the
    stage.
    contentslinks.contents_link_1.onRelease = function() {
    content_mc._visible = false; book_mc.directGotoPage(4);
    If I just place the attached movie on the stage the buttons
    work but I when I proceed to use attachMovie, they do not work. How
    do I get the buttons in the attached movie to address the movie
    that is already on the stage?

    you can use the enabled property of movieclips to
    enable/disable them.

  • I have an InfoPath with submit button, publish the same to form library.

    Hi All,
    i have an InfoPath with submit button, publish the same to form library.
    Now, i open the form  fill it and attach some files, when i press submit button, that attachments will go to the particular document library.
    Can any one help me out.
    Thanks in Advance!

    Hi Anil,
    According to your description, my understanding is that the attachments attached to the form were submitted to an documents library.
    By default, the attachments should be attached with the InfoPath form and will not be submitted anywhere.
    There may be some customizations on the form that is to submit the attachments to the document library.
    Please check the links below if the customizations are made in the form.
    http://www.bizsupportonline.net/blog/2010/01/upload-document-sharepoint-infopath-form/
    http://www.bizsupportonline.net/blog/2010/04/top-10-questions-infopath-file-attachments/
     Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How do I make all buttons on stage unclickable, while a certain movie clip is visible?

    Hi,
    I have a button on stage which opens a popup (movie clip is popup + several other buttons). The movie clip and the buttons on it take up most of the stage.
    The problem is that the buttons which are on the stage, and are behind the movie clip, remain clickable (you can click through the movie clip!). How may I disable this?
    Basically, I need to make it that you cannot click through the movie clip.
    Thanks in advance!
    PS I am using CS5 and AS2.

    One way would be to make the movieclip clickable.  That would make it block the other objects behind it...
         mc.onRelease = function(){ }
         mc.useHandCursor = false; // to hide the hand cursor
    Another way would be to disable the buttons while the movieclip is present...
         btn.enabled = false;
    Another way would be to build conditional code into the button clicking code to not work if the movieclip is visible.
         btn.onRelease = function(){
              if(!mc._visible){
                    // okay to do stuff

  • Mail won't open in Mavericks, dock has disappeared and power button is now sleep button!

    Having installed OS X Mavericks on my Macbook Air Mail just won't load, period. I have never had a problem with this before now, the entire laptop will freeze and heat up to the point that the fan is working at mach 10. Opening terminal and entering the command 'defaults delete com.apple.mail' has not worked. In addition to this problem the dock has dissappeared so there isn't quick access to applications without having to go through Launch Pad or Applications folder in Finder, (Dock is hidden but is not present when scrolling over), and Apple have turned the power button into a sleep button?! Having these issues has meant I have been restarting the computer a lot and scrolling up to the Apple Menu to hit restart is frankly annoying! If I wanted my computer to sleep I would close it down or use Hot Corners.
    Dissappointment levels 10+.

    I have since sorted this issue by doing a clean install and copying files across. The way I worked it out was by creating a guest account and logging into my iCloud account from that. If Mail loads in your guest account then the problem probably lies within your 'V2' Folder (Library > Mail > V2), after relocating V2 to my desktop and reloading Mail it loaded fine, however I lost all my folders and mail within... Hope this helps! It's not a fix but you will have access to Mail again!

  • Bug: incorrect description of 2 "button position" options (region buttons)

    Hi,
    I don't know whether this qualifies as a bug, but I found two descriptions that aren't correct in the "+button position+" option for region buttons.
    According to me, the description of the following two options should be changed from
    - Left of Page Title
    - Right of Page Title
    to
    - Left of Region Title
    - Right of Region Title
    Hopefully this is the correct way of reporting a bug for Oracle Apex?
    Kind regards,
    Tim

    RobaloBill wrote:
    > Just fabulous, really.....How? Adobe tells me that it
    can be done.....just not
    > how.
    Click on the button to select it, and then change the text on
    the 'TEXT'
    line in the Property inspector.
    > I import a 3 position button from the library. I use the
    9 slice tool to set
    > the button size, enter the text in the properties box.
    Tried to change the
    > font, style or even use the fonts in the styles
    tab....no luck.
    Double click on the button to open the button editor window.
    Change the
    font properties in the Properties inspector. Return to page
    1.
    Linda Rathgeber - Adobe Community Expert
    http://www.adobe.com/communities/experts/members/8.html

  • How do you grey out/disable fields under a radio button if another radio button is selected in Adobe Acrobat XI Pro?

    How do you grey out/disable fields under a radio button if another radio button is selected in Adobe Acrobat XI Pro?
    I’m creating a form where the user has three options to make a payment.
    1. charge to my credit card
    2. charge associated costs to bank account
    3. By cheque or money order
    My Problem is, under each option, there are required fields that has to be filled out. So if the user picks the first option, charge to my credit card, they would fill out the required fields (credit card number, expiration date etc.). But when they click submit button to submit the form, it won’t let them, because there are required fields under the second option. Also, I have the radio buttons for the three options setup so that if the user holds the shift key and clicks a radio button, it unchecks it. So what I'm trying to do is this: If the user selects the radio button for option 1, the other two options are greyed out/disabled. And if the user holds down the shift key and clicks radio button for option one again, it unchecks the radio button and the other two options are available again. Is there a way to grey out or disable the two other payment options when the other one is picked. I’m assuming I will have to use javascript, but what would the coding be and which field do I write it under?
    Thanks in advance guys

    You will have to use custom JavaScript to access the various properties of the field object.
    The radio button group has a value. When no button is selected that value is "Off". When an individual button has been selected the value for the group will be the option or export value for that individual button.
    Once you have determined the button selected, then you will know the form fields that need to be made required. You use JavaScript to access those fields and change the "read only" property to false, and set the "required" property to true. For the fields associated with the other options, those fields should be reset, made read only, and have the "required" property set to false.
    Disabling (graying-out) Form Fields
    >> Also, I have the radio buttons for the three options setup so that if the user holds the shift key and clicks a radio button, it unchecks it.
    Radio button in a PDF do not work that way. Only check boxes can be unchecked by clicking on one that has been checked.
    If you plan the coding for the Mouse UP action to test for all possible options and code for each of those options you should have what you want.
    If you want actual code you need to provide a lot more details.
    It is even possible to perform some credit card and bank routing number validations with JavaScript and some check digit formulas.

  • My back button and refresh button and my yahoo tool bar are dimmed a lot when I open up firefox. So as a result, I cannot use the back button nor my refresh button AND my yahoo toolbar disappears a lot. I have tried to get on your chat session but it is a

    <blockquote>Locked by Moderator as a duplicate/re-post.
    Please continue the discussion in this thread: [/forum/1/688252]
    Thanks - c</blockquote>
    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    My back button and refresh button and my yahoo tool bar are dimmed a lot when I open up firefox. So as a result, I cannot use the back button nor my refresh button AND my yahoo toolbar disappears a lot. I have tried to get on your chat session but it is always closed. I need one on one help. Please reply with resolution.
    == This happened
    ==
    Every time Firefox opened
    == two or three months ago
    ==
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 (BT-canvas) Firefox/3.6.3 GTB7.0 (.NET CLR 3.5.30729)
    == Plugins installed
    ==
    *-npdnu
    *npdnupdater2
    *Coupons, Inc. Coupon Printer DLL
    *Coupons, Inc. Coupon Printer Plugin
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *6.0.12.448
    *RealPlayer(tm) LiveConnect-Enabled Plug-In
    *RealJukebox Netscape Plugin
    *Default Plug-in
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    *BrowserPlus -- Improve your browser! -- http://browserplus.yahoo.com/
    *Shockwave Flash 10.0 r45
    *Yahoo Application State Plugin version 1.0.0.7
    *3.0.50106.0
    *My Web Search Plugin Stub for 32-bit Windows
    *Google Updater pluginhttp://pack.google.com/
    *Google Update
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
    *Npdsplay dll

    * If the menu bar is hidden then press and hold the Alt key down, that should make the Menu bar appear (Firefox 3.6 on Windows) (see [[Menu bar is missing]]).
    * Make sure that you have the ''Navigation Toolbar'' and other toolbars visible: View > Toolbars .
    * If items are missing then see if you can find them in the View > Toolbars > Customize window.
    * If you see the item in the Customize window then drag it back from the Customize window to the Navigation toolbar.
    * If you do not see that item then click the Restore Default Set button in the View > Toolbars > Customize window.
    See also [[Back and forward or other toolbar buttons are missing]] and [[Navigation Toolbar items]]
    See http://kb.mozillazine.org/Toolbar_customization

  • IPhone 4s looks shut down all the time.especially when the 3g is on.in the forums its said to push the use button and the power button at the same time.the people calling me cannot reach at my phone.what should i do ?

    my phone looks like offline all the time.its all about me to notice that its offline.then i have to push the main button and the power button together to open it.then the apple sign comes on the screen and the phone turns online.but i cannot receive the information of who called me at the time that my iphone 4s turned offline by itself.i cannot receive messages at all.what can i do now ? i sent the phone to the service and they just told me that they installed the current version.but i guess nothing happened.its doing the same thing again.i cannot use my iphone.
    From Turkiye.

    I've tried all those.But nothing works.The phone seems to be shut down.But it is not.When i get it out of my pocket, for example to call someone, i touch to main button but nothing happens.I solve it by pushing the power button and the main button together just for a couple of seconds, as its said so in the forums.
    also, people told me that they were calling me, my phone was ringing but i didnt answer?...i checked it for millions of times, it seems to be shut down, but its normally not.then i push the buttons together and the apple sign comes on the screen.it searches for the network.and it works.
    but i do not see any calls, texts anything.but for the others, they say my phone seems to be workin.
    I thought it was 'cause of the 3G is switched on but when I turn 3G off, it does the same thing.it seems to be offline all the time.

  • I tried to soft reset my ipod touch with the top button and the screen button.  it turned off and went to the blue screen with the apple.  now it won't do anything-it has stayed on that scren for 4 hours now.  does anyone know how i can fix this?

    i tried to soft reset my ipod touch with the top button and the screen button.  it turned off and then went to the blue screen with the apple like it should.  however, it now just stays on that screen.  it has a sort of clock looking thing at the bottom of the apple that does not move either.  it has stayed on this screen for over 4 hours.  i also can not hard reset it in itunes.  i am not really goood at this sort of thing.  does anyone have this problem or a possible solution?  thanks

    See Here for
    Frozen or unresponsive iPod touch
    The Basic Troubleshooting Steps are:
    Restart..  Reset..  Restore...
    Try this First... You will Not Lose Any Data...
    Turn the iPod Off... ( if it isn’t already )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear and then Disappear...
    Usually takes about 15 - 20 Seconds... (But can take Longer...)
    Release the Buttons...
    Turn the iPod On...
    If that does not help... See Here:
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414

  • When i go to buy an app on my ipod touch, i click the buy button then the install button and it just keeps repeating itself then dissappears, why is this?

    when i go to buy an app on my ipod touch, i click the buy button then the install button and it just keeps repeating itself then dissappears, why is this?     help me please, i cant download no apps.

    If  you have iOS 3.1.3 then it is an Apple problem.

  • My ipod touch is frozen on a screen with the ipod logo and the usb charger cable...i cannot get rid of it...i let the battery die...i held the sleep button and the power buttons..anyone have any ideas?

    my ipod touch is frozen... the screen has a picture of the itunes logo and a usb charger. I have held the sleep button and the power button to reset and i have let the battery die and started to recharge...niether worked. any ideas???

    Try charing it to 50% at least.
    If all else fails, try putting it in DFU mode. Connect it to iTunes, (iTunes may not detect the device, but that's ok) hold the power and home buttons down for 10 seconds, then release the power button but keep holding the home button until it goes into DFU mode. iTunes should detect it and ask for a restore.
    ~Lt. Leviathan

  • My iPod touch 5th generation had white screened an it won't let me rest it by holding down the home button an the power button for ten seconds I've pulled it in to iTunes an its not being detected what can i do as its starting to over heat?

    my iPod touch 5th generation had white screened an it won't let me rest it by holding down the home button an the power button for ten seconds I've pulled it in to iTunes an its not being detected what can i do as its starting to over heat?

    If you can't get it to shut down or restart when holding down the Home and Sleep/Wake buttons and you can't get it recognized in iTunes to restore it, the iPod may have suffered a hardware failure and will need to go to Apple for service. Someone else here may have additional suggestions, though.
    There is no "fifth generation" iPod touch, by the way, just for the sake of clarity; not yet, anyway.
    Regards.

  • Mine is not a question but I received the solution to the iphone 4s not discovering bluetooth, you hold the top button and the home button until the apple logo comes up and then let it reboot, put your bluetooth in pairing mode, and then turn on bluetooth

    My new iphone 4s would not discover bluetooth.  I called apple, and the guy was great!!!  He told me to hold the top button and the home button together and do not let go until the apple logo came up, this would do a hard reset.  Then when it reboots, you turn on your bluetooth in paring mode, and then turn on the bluetooth on your iphone 4s and it will find your bluetooth device.  Simple, yet it works!!!  Hope this helps those of you having the same problem I was having trying to connect your bluetooth. 

    My new iphone 4s would not discover bluetooth.  I called apple, and the guy was great!!!  He told me to hold the top button and the home button together and do not let go until the apple logo came up, this would do a hard reset.  Then when it reboots, you turn on your bluetooth in paring mode, and then turn on the bluetooth on your iphone 4s and it will find your bluetooth device.  Simple, yet it works!!!  Hope this helps those of you having the same problem I was having trying to connect your bluetooth. 

  • Adding a print button, a "download" PDF button and a navigation bar in a SWF created by InDesign

    I can't find a way to add "PDF features" on a SWF file exported from InDesign CS5.5 such as:
    - a print button
    - a download PDF button
    - a navigation bar (outside of the pages)
    edocker provides these features but it is pretty expensive and does not allow a lot of customization.
    Would anyone have an idea of how to do it ?
    Thank you.

    eDocker actually allows you to use all the interactive features you can create in InDesign. It kind of "wraps" your exported SWF into a user interface with all those 3 elements asked + more (zoom for instance)
    Check out these links:
    Sample:
    http://www.edocker.com/_demo/edocker-online-demo/index.html
    Workflow:
    http://www.edocker.fi/index.php/en/products/edocker2-desktop-publisher/workflow/

Maybe you are looking for

  • Please advise on startup failure

    When I try to start my macbook pro, a gray screen appears and I hear a weak whirr from the hard drive, then a pause, then another whirr, etc.  Holding SHIFT or COMMAND OPTION P R while pushing power do not help.  I do not get the apple logo.  Is this

  • Agent assignment for task

    Hi,      I have copied the standard task TS00008267( Generic Decicion Task) into another task. But when i use the new task, it says no agent assignment. when I looked into agent assignment mentioned for  TS00008267( Generic Decicion Task), it has got

  • Can't get Minecraft to run

    Hi, I'm new to Arch... I've been on CrunchBang for the past couple years and have decided to add Arch to my quiver. Anyway, here's my problem: I have a fresh Arch 64-bit install, with Sun's jdk installed. Minecraft runs fine on my Windows install, as

  • Will i lose my data if i reset the time capsule?

    my time capsule stopped working, i unplugged it and when i plug it again, it flashes amber. then the airport utility finds it, because the time csapsule is reporting a problem, when i try to continue, it fails. i want to reset it to see what happens

  • I phone error

    I was updating my iphone 4s to the new software. i got an unexpected error and it stopped. my phone screen only shows the usb plug to be connected to the itunes icon. i cannot find my phone in my itunes and the update didnt happen. cant get my phone