Issue with duplicated button Flash CS4...help!

I am relatively new to Flash...I am trying to figure this out.
I have button1_btn on a frame in the beginning of this animation, and on that frame I script it:
button1_btn.addEventListener(MouseEvent.CLICK, showimage1);
function showimage1(event:MouseEvent):void {
gotoAndPlay("image1");
It works great, but I also have other buttons that eventually take a different frame where that button isn't on.  So I add it to the stage in that frame and assume it will gotoAndPlay("image1") again when clicked, but when I test the movie, and click it on the later frame, nothing happens.
I tried maybe adding the original script to that frame as well, but then I test and it says I have duplicated script and doesn't work.
Why does the original script work for that button, no matter where and when it shows up?  It's the same button essentially, no?
Please help!

Any instance of an item you add has to be in the presence of whatever code is working with it.  So if you add a new instance in a new keyframe, it does not have that original code being assigned to it because that code was assigned just the once back where that code and the original instance is.
One way around this is to use the visible property to hide the button when you don't want it showing, but retain its presence unbroken by keyframes on the timeline.  Another way is to give the button a new nstance name and code where it lies elsewhere on the timeline.

Similar Messages

  • Clipboard issue with Word and Flash CS4 in Snow Leopard

    I use Flash CS4/word 2008 on a regular basis and copy text from word into flash. Since I upgraded to SL, I no longer can paste text into Flash. This is a major productivity killer for me. Are there any global clipboard settings?

    That indicates corruption or a conflict within the old account, usually with preference (plist) files. Make a list of the preference files inside the /new user/Library/Preferences/ folder, log back into the old account, move the ones on your list to a folder on the desktop, log out and back in, and see if the behavior is fixed. If so, create another folder on the Desktop, copy the new ones to that folder, and slowly replace a few new ones in /old user/Library/Preferences/ with the same ones first moved, until you find which ones were causing the problem. Delete those and replace with their copies. The process is slow, but required.
    Alternatively, you could log into the new one, delete the old one, *electing to save its data (creates a disk image in /Users/Deleted Users/)*, recreate the account, using the same username/password combo, log into it, mount the saved data image, and slowly transfer plist files from it to the recreated one, frequently logging out and back in until you find the bad files.
    Good luck.

  • HT204291 Since upgrading to iOS7, i have experienced issues with Airplay button missing

    Since upgrading to iOS7, i have experienced issues with Airplay button missing from the control menu as well as in Spotify.  It is as if airplay is not runing.  A temp fix: Reboot of the ipad mini (Home button+standby) Is there anything permanent?
    I have verified that my iPad mini and apple TV is up to date.
    Airplay enabled, the network is connected with internet.
    It is as if, airplay is a service that just stopped working and has to be restarted again via a reboot.

    Welcome to the Apple Community.
    Intermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items.
    You can download and install iStumbler (NetStumbler for windows users) to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
    Refer to your router manual for instructions on changing your wifi channel or adjusting your multicast rate.
    There are other types of problems that can affect networks, but this is by far the most common, hence worth mentioning first. Networks that have inherent issues can be seen to work differently with different versions of the same software. You might also try moving the Apple TV away from other electrical equipment.
    The following article(s) may help you.
    Troubleshooting AirPlay
    Troubleshooting Wi-Fi networks and connections
    Recommended Wi-Fi settings
    Troubleshooting Security Software

  • My iPhone 4S on iOS7 is stuck on Apple Logo, and it goes off, then back to Apple Logo again for hours. Pressing home button together with sleep button does not help. Plugging the phone to Mac and restart does not help either. What do I do?

    My iPhone 4S on iOS7 is stuck on Apple Logo, and it goes off, then back to Apple Logo again for hours. Pressing home button together with sleep button does not help. Plugging the phone to Mac and restart does not help either. What do I do?
    Have not backed up for months, so prefer not to lose the data.
    Thank you for your help in advance.

    Restore iPhone with iTunes on computer. Open iTunes on computer. Connect iPhone to computer with USB cable. Hold both Home and Power buttons until iTunes recognizes iPhone in Recovery Mode, usually about 20 seconds time of holding both buttons. Click the Update or Restore button that iTunes offers.

  • I am having an issue with a USB flash drive.

    Hello, I am having an issue with a USB flash drive. I have a 2012 iMac OS X 10.9. Drive keeps on disconnecting after about 30 seconds. I tried to reformat through Disk Utility but doesn't allow me to verify or repair as it disconnects. This same drive works fine on Windows machines. I tried all USB ports but all give the same issue. Message is: "Disk Not Ejected Properly. Eject "No Name" before disconnecting or turning off." When I attempt to copy data from the disk it comes up with the message: "The Finder can't complete the operation because some data in "" can't be read or written (Error code -36)". I believe the solution for this error is to format the drive but as mentioned this function doesn't work. I need to copy data from a Windows machine to my iMac. Any suggestions with this is appreciated. Thanks!

    I went back to a Windows machine, formatted it to NTFS (so lost the data but had a backup), recopied the data. Went back to the Mac but same issue happened after I tried copying the data "Disk Not Ejected Properly - Eject " " before disconnecting or turning off." One of the USB ports didn't detect the 32GB flash drive at all. And disconnected on another one.

  • Anyone have an issue withe airplay button not being available?

    Anyone have an issue withe airplay button not being available?

    Since the last pair of updates, my game camera won't pan around in any adventure level, leaving many sub levels off screen.  This is happening in all community adventure levels as well as my own on my moon.  Also can't seem to decorate my adventure levels without experiencing major glitches, especially with changing the materials.  The updates fixed a lot of stuff, but it seems like they trashed some things too.

  • HELP!! Issue with mailto button in PDF

    Hi
    I have a button in a PDF form that attaches default email (LOTUS NOTES) when clicked. I have my settings in IE set to Lotus Notes as my default client and also in Lotus Notes I have the same settings.
    The form however does not work sometimes when the button is clicked, nothing happens. It works fine for me but doesn't on another computer with the same settings.
    Is this an issue with the PDF or Lotus Notes? If so any suggestions?
    Thanks

    Hi
    Both machines are running windows XP SP 3
    I have done some google-ing the issue but I didn't get any useful information.
    I tried it on the second computer again and it says no 'email exits'
    Any help on why this is happening will be very useful.
    thanks in advance!!

  • 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;

  • Issues with downloading Adobe Flash Player. Help!

    I just updated OS X Mountain Lion and I'm having issues with Adobe Flash Player.  I have tried downloading it several times but it hasn't taken and won't let me view any videos.  How can I get it to work?

    Welcome to Apple Communities
    Uninstall > http://fpdownload.macromedia.com/get/flashplayer/current/support/uninstall_flash _player_osx.dmg Install again > http://get.adobe.com/flashplayer/otherversions

  • Flash CS4 Help File Offline What Happened to Tag Defintions Showing UP?????

    Ok I know I can set the help system to browse offline however
    this doesn't work correctly for any less then ActionScript 3. When
    you highlighted a word in the past such as "null" it use to pull up
    the word and the info in all the books. Now all I see is a web
    browser that doesn't do this for me. I mean who sits there at
    adobe's end and thinks up of ways to slow someone down like this??
    How can you remove the core help quick linking from the program.
    Number 1 not everyone is on AS3 and some of us still have to update
    AS2 code.
    Bigspace ships has an air application that installed AS3 flex
    reference but again useless unless you are on AS3. Has anyone found
    another way to get this old school functionality to work on
    CS4???

    Jay Armstrong here. I’m one of the writers who works on
    the Flash docs.
    Regarding this comment and the many others in other threads
    that have added important details about the issues with the help
    workflow, and in particular the ActionScript help workflow: We hear
    your pain and we are working to implement solutions to these
    issues.
    I understand that this new help workflow is more painful than
    in CS3 when you had the Help right in its own panel in the product.
    Here’s some background:
    The implementation of Help within the Flash Help panel prior
    to CS4 required that *all* the Help files be installed on the local
    drive with the product, resulting in some issues that we tried to
    address in CS4. Including Help on the installation disc caused
    issues including:
    - Required that Help be completed much earlier for
    localization and end-game testing.
    - Resulted in static Help files that had been completed early
    in the development cycle, sometimes not accounting for last minute
    UI or other changes.
    - A long install process.
    - Crowded the installation disc.
    These aren't meant to be full explanations of why we made the
    changes, but just some background as to some of the things we were
    thinking about. Clearly the decisions we came to weren't the right
    ones for many users. We are intent on making things better.
    Moving Help online makes it possible to update Help on an
    ongoing basis, allows users to comment on and embellish the Help,
    and allows us to add links from the help out to new articles,
    tutorials, videos, and code samples on adobe.com and throughout the
    Flash web community. One of you rightly pointed out that the Adobe
    Updater could have been used for some of this, but I believe that
    the updater would have required much more rigorous certification by
    us of any update packages and the update/install process for each.
    We actually are updating the online help files very frequently, so
    this process would have been a major barrier to these updates.
    We’ve had a struggle about how to deliver the Flash
    Help for a long time, as we have a lot of users who have been quite
    vocal about not liking the Help panel consuming space within the
    Flash window as well as users who really want it there so they
    don’t have to leave the IDE.
    Having said all that, I still totally understand what
    you’re saying about losing your code, glance, code, glance,
    code workflow. As you probably know, we’ve been getting a lot
    of feedback about this, along with other issues that online Help
    has caused. We are actively looking at ways of solving these, but
    the Help-in-a-browser issue a difficult problem, as this aspect of
    the Help implementation is baked fairly deep into the CS4 product.
    Since CS4 shipped, we have implemented solutions to some of the
    issues with Help raised by users, such as allowing you to select
    the default destination of F1 (though Flash CS4 always went to the
    actual Help system rather than the Flash Help and Support page,
    which is what these users wanted in other products). I just
    don’t know if there will be a solution in the CS4 time frame
    for viewing Help within Flash itself. As noted in this thread,
    there are a few independent developers working on non-browser help
    viewers, such as Jamie Kosoy, Technical Director at Big Spaceship,
    whose AIR application for the CS4 Language Reference docs is
    available at
    http://labs.bigspaceship.com/2008/12/09/air-app-as3-language-reference/.
    We knew that people use the AS3 Language Reference a lot, so
    we did install a local, abridged version of that with the product.
    You only see it when not connected to the internet or if you
    disable online connections as described earlier in this thread, and
    it still opens in a web browser and still has the same navigation
    interface as the online version. You can also download a local copy
    of the AS Reference, which does get updated periodically and can be
    viewed locally regardless of the state of your internet connection,
    but it also is all html and opens in a web browser. As previously
    noted, the download is available here:
    http://help.adobe.com/support/documentation/en/flash/10/ActionScript3LangRef.zip.
    I know this thread started off with AS2 concerns, and we hear
    those too.
    In some of the other threads out there about the Help, people
    have raised issues about the contents navigation in the CS4 version
    of the ASLR as well. We are listening to all these issues and
    actively working on solutions that will address these questions.
    We’d really like to give you better control over whether you
    see online or local content, whether you see it inside the IDE or
    in a separate application, etc.
    I know that you are all really frustrated at some of these
    help changes, and so I want to say how much we appreciate your
    feedback. I’m sorry that my reply doesn’t give you the
    magic bullet that you are understandably hoping for.
    -Jay

  • Issues with rollover buttons in Indesign CS6

    Hi,  I was wondering if anyone can shed some light on a issue i'm currently having. 
    I've produced a interactive map in Indesign, with rollover buttons which triggers an animation - all the buttons and animations seem to be set up correctly and once I export as a SWF they seem to work fine initially, but after a couple of rollovers some of the buttons just stop working.  If I refresh the page or reopen the swf file it then starts working again for a period, but again after a few successful rollovers some stop working again.  I'm wondering if this is a bug of some sort?  Ive also tested the .swf on a different machine and I experience the same issue.
    Any help with this would be be much appreciated.

    We might be able to help you but you'll have to drop the attitude. We're not Adobe here, but users like you.
    You'll need to tell us exactly what you're doing and what's not working for you. By "rollovers," you could mean the change of appearance of a button. You could also be meaning what are sometimes called Show/Hide buttons where clicking a button causes another button to appear. Which is it?
    And what kind of output are you attempting? Interactive PDF? SWF (Flash)? DPS?

  • Flash CS4 help!

    Hello, im a new beginner to Flash CS4. I was just trying to make candles with its flame. I got the first one working. It consists of three layers with an actionscript layer. Then i tried to duplicate the three layers of images, so they can work the same actionscript layer but it doesn't work. Only the first one
    is working. WHat should i do so the duplicated layers of the candle work? Or is there a better way to make copies of images?
    Here is my actionscript layer code:
    function drawEffect()
        var _loc2 = offsets.length;
        for (var _loc1 = 0; _loc1 < _loc2; ++_loc1)
            offsets[_loc1].y = offsets[_loc1].y + offsetSpeeds[_loc1];
        } // end of for
        noiseImage.perlinNoise(250, 800, 2, seed, true, true, null, true, offsets);
        var _loc3 = flameMask.transform.matrix;
        _loc3.tx = noise_mc._x;
        _loc3.ty = noise_mc._y;
        noiseImage.draw(flameMask,_loc3,flameMask.transform.colorTransform,"multiply");
        noiseImage.applyFilter(noiseImage, noiseImage.rectangle, new flash.geom.Point(0, 0), colFilter);
        var _loc4 = noiseImage.getColorBoundsRect(4.294967E+009, 4.294967E+009);
        var _loc5 = _loc4.height * _loc4.width;
        flickerGlow((127 - _loc5 / 10) / 1024);
    } // End of the function
    function flickerGlow(amount)
         var _loc1 = new flash.filters.ColorMatrixFilter([1 + amount, 0, 0, 0,  0, 0, 1 + amount, 0, 0, 0, 0, 0, 1 + amount, 0, 0, 0, 0, 0, 1, 0]);
        candleMain.filters = [_loc1];
    } // End of the function
    Stage.scaleMode = "noScale";
    var pxPerSecond = 5.000000E-001;
    var seed = Math.floor(Math.random() * 1000000000);
    var offsetSpeeds = [20, 32];
    var offsets = [new flash.geom.Point(0, 0), new flash.geom.Point(0, 0)];
    var flameMask = flameContainer.flameMask;
    var noiseImage = new flash.display.BitmapData(flameMask._width, flameMask._height, false);
    noise_mc = flameContainer.createEmptyMovieClip("noise_mc", 1);
    noise_mc._x = flameMask._x;
    noise_mc._y = flameMask._y;
    flameContainer.blendMode = "screen";
    flameMask._visible = false;
    noise_mc.attachBitmap(noiseImage, 1);
    var  colFilter = new flash.filters.ColorMatrixFilter([6, 0, 0, 0, -255,  5.500000E+000, 0, 0, 0, -255, 5, 0, 0, 0, -255, 0, 0, 0, 0, 255]);
    drawEffect();
    onEnterFrame = function ()
        drawEffect();

    the actionscript will be part of the movieclip.
    shift-click and drag across all layer/frames that constitute your candle, right click and click copy frames.  click insert/new symbol and select movieclip.  right click the only frame/layer visible in the movieclip and click paste.  all your candle assets should be converted to that movieclip.

  • Firefox Issue With Back button

    I am having an issue with SpryHorizontal Menus in Firefox when using the back button.  Even did a tutorial with Lynda.com and found their solution file had the same issue.  Would anyone who has had success with 3 levels of submenus care to share a snippet of their code as I cannot find the error and outside help hasn't quite resolved the issue.
    My code is following this basic outline
    <li><div align="center"><a class="MenuBarItemSubmenu" href="#">Academics</a></div>
          <ul id="Academics">
            <li><a class="MenuBarItemSubmenu" href="#">Departments</a>
                <ul id="Departments">
                  <li><a href="../tsc_bustech.htm">Business Technologies</a></li>
        <li><a href="../tsc_communications.htm"><font="11.75px">Communications</font></a></li>
          <li><a href=""../tsc_ethics”/>Ethics</a></li>
                  <li><a href="../tsc_finearts_hum.htm">Fine Arts and Humanities</a></li>
                  <li><a href="../tsc_math.html">Mathematics</a></li>
                  <li><a href="#">Natural Sciences</a> 
            <ul id="naturalsciences">
        <li><a href="../tsc_bioscience.html">Biological Sciences</a></li>
          <li><a href="../tsc_physicalscience.html">Physical Sciences</a></li>
        </ul>
              </li>
                <li><a href="../tsc_socialscience.htm">Social and Behavioral Sciences</a></li>
                </ul>
            </li>
    Thank you.

    Hi Beth,
    Just an FYI.  Also received another nice piece of information to store in the SpryAssets help file from an online Adobe Certified Course Director:
    Thanks for your email! It isn’t often I get a great question like that. I had to do some digging, but I came up with a solution. You might have already worked your way through it, but if not the problem is Firefox’s (and Opera’s) caching that’s causing the issue in question. To fix it, you have to reset the submenu dynamic class names when the user clicks the link (re-caching the page is a bad idea).
    This is a pretty simple javascript fix. The problem was so interesting that I posted the fix to my blog. You can check out the solution here: http://www.simpleprimate.com/?p=30 if you haven’t already figured it out.
    Maria

  • Flash CS4 help not working

    Hi, I'm using Flash CS4. After updating my flashplayer, it no longer works with IE8. Therefor I recently
    tried Opera.
    When working with AS3 I did what I always do to access context-sensitive help. I placed the cursor in a
    blue word and hit the F1 key. This normally takes me where I want, but this time it didn't. First I was
    asked if I wanted to make Opera my default browser. I clicked no. Then Opera opened up and I could
    see the help home page.
    Now, this got me frustrated as I still have IE8 as my default browser. Why did Flash suddenly want to
    open the help files in Opera? I guess that would have been fine, though, had the correct page opened. I
    wanted to see info about my blue AS-word, not the help home page.
    I then uninstalled Opera as it clearly was unable to show me context-sensitive help. I then tried again.
    Now nothing happened. I tried selecting Flash Help from the help menu (which would normally take me
    to the help home page), but nothing happened.
    I also have Firefox installed. Something similar have happened to people when they installed Firefox.
    Anyway, Chrome has managed not to do this, I've had it installed for some time now.
    I have located my local copy of the help files and I'm able to access the AS3 index.html file and start
    trying to navigate to the correct class reference. But I hate it. It's inefficient. I have tried to see if there
    are anything helpfyl in the preferences, but I found nothing at all.
    Why does not Flash ignore which other browsers I have installed and just open help in my default
    browser?
    What can I do to once again access context-sensitive help?

    I still haven't found any solutions to this. Is there anything I can do?

  • How do I add flash cs4 game with AS3 to flash cs4 website??

    I have created a game in flash with ActionScript 3 and now want to add it to a website I have created with pages seperated into keyframes. Ideally, I am trying to have the game start when a link on the home page is selected. I would also like the users to be able to download the game themselves??? Any ideas for a flash novice??

    Thank you so much!!! I just added it with a UI Loader Component! Worked really well... although it looks like doing that picked up an issue with some of my code? It's now looping over and over again and the counter within my game (for giving players their score - highlighted in red), is not working?If you are a AS3 guru any help would be greatly appreciated, otherwise thank you so much for your earlier tips
    package
        import flash.display.MovieClip;
        import flash.events.*;
        import flash.utils.Timer;
        import flash.text.*;
        public dynamic class Gift extends MovieClip
            private var dx:Number = Math.random() * 10; // make gift scurry
            private var dy:Number = Math.random() * 10;
            public function Gift ()
                this.gotoAndStop(Math.ceil(Math.random() * 4));
                this.addEventListener(Event.ENTER_FRAME, scurry);   
                stage.addEventListener(MouseEvent.MOUSE_DOWN, kill);
            public function scurry (e:Event)
                if (this.x < 0 || this.x > 550)
                    this.dx *= -1;
                if (this.y < 0 || this.y > 576)
                    this.dy *= -1;
                this.x += this.dx; // make gift scurry
                this.y += this.dy;
            public function die()
                this.removeEventListener(Event.ENTER_FRAME, scurry);
                parent.removeChild(this);
            private function kill (e:MouseEvent):void
                if(e.target is Gift)
                    e.target.die();
                    score += 10;
                    scoreText.text = score.toString();

Maybe you are looking for

  • Problem with iPhoto displaying pics

    I have transferred my photos from Macbook to new iMac and on some of my albums I am now getting this issue: I am able to view the thumbnail but not getting the larger picture. Any ideas?

  • How to display my ResultSet in a JSP??

    First off, I'm new to Java programming. Here's my problem. I have a set of users in my database. I'd like to retrieve all the user ID's (these are integers) from my User-table and display them in a JSP. Now, I realize that my coding below isn't very

  • I need pics from my computer to my ipad mini

    How do I get my pics from my iphone to my ipad

  • How to register Dreamweaver CS6 if purchased via Creative Cloud?

    Brand new install after signing up for Creative Cloud.   Informed via "pop-up" to register it after initial launch. OK.   How do I do that? I've found no options in Dreamweaver itself to do that.  Using the Help menu in Dreamweaver there's no option

  • Nokia 6300 help needed urgently please

    My friends 6300 phone has been trodden on by a large horse and has since stopped working - well it would really. But unfortunately she had not got the connectivity package for her laptop and had saved all the info on her phone rather than her sim. I