BUG: Changing "alpha" with AS breaks other property changes on timeline

I've discovered a bug in AS3 where a Movie Clip that spans 2 different frames, but its properties are different in each frame (i.e. it has been repositioned on the 2nd frame but the instance name is the same), and the MC's alpha is changed using ActionScript prior to moving the timeline from one frame to the other, the timeline moves, but the MC does NOT actually move.
I'm experiencing this error in a professional project that I'm working on so I cannot post the actual FLA, but here is a little mock up that I made:
stop()
currentFrameTxt.text = currentLabel
var alphaChange:Number = .1
var alphaMax:Number = 1
var alphaMin:Number = 0
alphaUpBtn.addEventListener(MouseEvent.CLICK, alphaUp)
function alphaUp(evt:MouseEvent) {
    box.alpha += alphaChange
    if (box.alpha > alphaMax) {
        box.alpha = alphaMax
alphaDownBtn.addEventListener(MouseEvent.CLICK, alphaDown)
function alphaDown(evt:MouseEvent) {
    box.alpha -= alphaChange
    if (box.alpha < alphaMin) {
        box.alpha = alphaMin
leftBtn.addEventListener(MouseEvent.CLICK, gotoLeft)
function gotoLeft(evt:MouseEvent) {
    if (currentLabel != "left") {
        gotoAndStop("left")
    currentFrameTxt.text = currentLabel
rightBtn.addEventListener(MouseEvent.CLICK, gotoRight)
function gotoRight(evt:MouseEvent) {
    if (currentLabel != "right") {
        gotoAndStop("right")
    currentFrameTxt.text = currentLabel
On Frame 1 (labeled "left") is an MC with the instance name "box" and the box's position is on the left side of the stage. On Frame 11 (labeled "right") is the same instance "box", but its position has been moved to the right side of the stage.
I have a pair of buttons ('leftBtn" and "rightBtn") that toggle the timeline between the "left" frame and the "right" frame.
I also have a pair of buttons ("alphaUpBtn" and "alphaDownBtn") that change the box's "alpha" property.
If you click "leftBtn" or "rightBtn" before you click the "alphaUp" or "alphaDown" buttons, the box moves left or right as one would expect. BUT if you click either "alphaUpBtn" or "alphaDownBtn", the box does NOT move if you then click "leftBtn" or "rightBtn" even though the timeline is indeed moving (which I am confirming using the "currentFrameTxt" dynamic text box).
I have tried this example by changing other properties on the 2 frames and they too stop working once you change the "alpha" using AS. I have also tried change other propeties using AS, but alpha is the only property to breaks the other properties changed by moving the timeline.
Why would changing the "alpha" property suddenly break all other property changes on the timeline?
Now I know that one work-around for this bug is to simply change the box's position dynamically by setting the x and y positions, but this is NOT an option for this project because it is very important that the client be able to manually position the artwork on each frame by hand.
This is a serious bug and I'm wondering if anyone else has encountered it before and if they know of a viable workaround.

I did some more testing by changing other properties of the box with AS and it appears that for most properties, like alpha, x, y, rotation, width, height, etc, if they are changed with AS, then the properties of the MC can no longer be changed by the timeline settings. Changing the "visible" property has no effect, however.
It seems that this "bug" is not really bug so much as it is a fundamental misunderstanding on my part about the fact that you CANNOT change the properties of a symbol using BOTH ActionScript and timeline properties. I can only change the properties of using either the timeline OR ActionScript because as soon as I change the properties using AS, the MC becomes an AS-controlled object and can no longer be controlled via the timeline. I guess that makes sense, but it is frustrating nonetheless.
Colin, your suggestion to nest the MC inside another MC is indeed a successful workaround, at least for this little box example (see fixed FLA attached with the "left" and "right" timeline property changes nested inside the box itself) and I will see if it is a viable solution for my actual application. I'm guessing it will not be a problem for my client to simply navigate inside a parent MC in order to adjust the positions of the now-nested MC in question.
Thanks for the help.

Similar Messages

  • Create a full-screen image gallery with MSO - breaks other buttons?

    Hi - I'm trying to create a full screen image gallery to be accessible from any layout via a button.  The ultimate goal is to use my layout as a presentation tool and allow the presenter to have an 'image gallery' button on each page,so they would be able to jump to a full screen image at any time.  Most of my layouts have other buttons, scrollable content, etc.  I thought I had a great idea: create a multi-state object with the first state being blank, and each subsequent state would have an image and also a full screen black box at 50% transparency.  The problem is, now my other buttons are no longer working.  I confirmed that the existing buttons will work if they are arranged to be in front of the image gallery MSO, but that's not a good solution.  Am I missing something or is there another workaround?  Thanks!
    John

    You have to put buttons inside each state of the MSO.
    It's not really a workable design in the long run, you should probably rethink it It's also not good from an app performance standpoint as it requires loading full-screen images for each state into memory.
    Neil

  • LAN DNS resolution has changed - along with lots of other behaviours

    Hi
    Last Friday I experienced a lot of strange network/firewall behaviour on my Macs, both running 10.6.7. I don't know what the problem is but am trying to isolate it - or them.
    Considering just the MacBook Pro, I have been running the same setup for over a year at different locations and never experienced this before. The MBP is named Isola, it runs Windows XP Pro on VMWare Fusion and MAMP as a development/test environment for websites.
    Since I have had this setup, with MAMP running and using the normal Apache and MySQL ports I could connect to websites using Mac browsers on: http://localhost/, if I was testing on Windows browsers I would use http://isola/
    This worked at home using an Airport connection over a Netgear modem/router:
    TCP/IP
    Using DHCP with manual address
    IPv4: 192.168.0.5
    Subnet Mask: 255.255.255.0
    Router: 192.168.0.1
    Configure IPv6: Automatically
    DNS Servers: 192.168.0.1
    Search Domains: -
    It also worked at the office - 2 Macs networked using a Netgear Gigabit switch, also connected to the building's ethernet system for external internet connection:
    TCP/IP
    Using DHCP
    IPv4: 10.0.21.10
    Subnet Mask: 255.255.255.0
    Router: 10.0.21.254
    Configure IPv6: Automatically
    DNS Servers: 10.0.21.254
    Search Domains: popcorn
    I have two Locations set up in networking preferences, Home and Office. DHCP and DNS at home are provided by my ISP I believe. Apparently the IT infrastructure in the building where my office is located handles the DHCP and DNS.
    Since last Friday when I try to connect to http://isola/ using a Windows browser the request either times out (Internet Explorer) or is re-routed to http://www.isola.com (Firefox and some other browsers). In order to the site on my MAMP server I have to use http://isola.local/
    I can replicate the same behaviour when trying to connect to the MAMP server using my Mac Pro.
    I have flushed both Macs' DNS caches, repaired permissions and tried other stuff which I can't quite remember now. Nothing has made any difference.
    I'd really like to know if this new behaviour is likely to be caused by my configuration or the office DNS setup and ideally get it back to what it was before.
    Yesterday I started experiencing strange behaviour with the MBP firewall. It may be part of the problem or not - I'll include for information. It has always been on and set up normally - none of the Advanced settings checked. There were a whole load of software listed in the Advanced tab such as Skype, Safari, Opera configured to accept incoming connections. Yesterday for the first time ever I had a whole load of firewall dialogue boxes open on start up asking to allow or block network connections to basic OS X services: AppleFileServer, cups-lpd, cupsd, httpd, krb5kdc, mysqld, nmbd, smbd, vmnet-natd. I think some of these are due to File Sharing and Printer Sharing being enabled in the Sharing Preferences - but they've been enabled for over a year.
    Thanks in advance for any advice.

    Safari gives the error message
    Safari can't open the page "[URL]" because your computer isn't connected to the Internet.
    on any attempt to access a page by URL. If I put in an IP address it loads fine (aside from not being able to resolve any links to images, etc. which are linked using a domain name).
    nslookup google.com on the command line gives the error:
    /SourceCache/bind9/bind9-31/bind9/lib/isc/unix/socket.c:4525: bind: No route to host
    nslookup: isc_socket_bind: unexpected error
    DNS resolution does not work on Firefox either.
    All checkboxes in the System Preferences>Network>Advanced>Proxies tab are unchecked. The box at the bottom ("Bypass proxy settings...") contains:
    *.local, 169.254/16
    Thanks for trying to help me out! I'm happy to provide any other information that might be useful to you.

  • Continuous change management with SolMan?

    Hello,
    I wonder wether it is possible do run a continuous change management with Solution Manager for all changes I want to implement in a System?
    What I need is a solution to manage all the common change requests and not only for single projects.
    Can you help me?
    Thanks in advance
    Bye

    yes it is possible across the project using Quality Gate management in EHP1 version
    http://help.sap.com/saphelp_smehp1/helpdata/en/a9/0473a0d3f74adcaa6c6b4be7635867/frameset.htm
    Quality Gate Management gives you an overview of the status of the software distribution of your projects. It gives an integrated and consistent overview of the implementation of changes to your SAP software solution, for all operational units of the various organizations in a company. This increases the transparency of the software change process.
    Quality Gate Management combines different software developments in one logical structure. These developments are in turn collected in projects. You can organize and monitor the distribution of software by projects and their changes.
    http://help.sap.com/saphelp_smehp1/helpdata/en/a9/0473a0d3f74adcaa6c6b4be7635867/frameset.htm
    The prerequisites for setting-up quality gate management are:
    Assign quality gate management roles
    Configure the system landscape in the Transport Management System (TMS)
    Create a project in the Project Administration and enter required data in Quality Gate Management.
    also check this note
    Note 1256490 - General note for Quality Gate Management (QGM)
    Hope it solves ur doubt
    Regards
    Prakhar

  • Waveform Plot Name in Legend Reverts to default even if I change it with a Property node

    I have a waveform chart where I am trying to name the plots different titles, so that they appear in the plot legend with a meaningful name, rather than 'Plot 1', 'Plot 2', etc.
    However, no matter what I do, if I try to change plot 0's name to anything, the plot name changes for a split second, and then reverts to the name that it originally had.  I can succesfully control the names of the other plots, but not plot zero.  I have enclosed the VI with the graph control, which I cut and pasted from another VI. 
    It seems that the properties of this control (though it is not  a custom control) are set, and that these settings take precedence over the Propery Node Instructions.  Is this a bug, or am I missing something.
    Try it for yourself.
    Wes
    Wes Ramm, Cyth UK
    CLD, CPLI
    Attachments:
    Untitled 1.vi ‏14 KB

    Ignore attributes help says;
    If FALSE (default), the plot names in the plot legend automatically adapt to the plot names in the dynamic or waveform data attributes. If TRUE, the plot names do not adapt to the dynamic or waveform data attributes. Change this property to TRUE if you want to change the plot names. This property applies only to graphs and charts with dynamic or waveform data.
    Trying to help,
    Ben
    Message Edited by Ben on 11-28-2006 07:46 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    untitled.JPG ‏86 KB

  • Is this Oracle Reports bug – "break order property" in "group above" report

    Is this Oracle Reports bug – “break order property” in "group above" report
    Could anybody confirm that in "group above" report, we could only order the brake column's values with ""none" or "ascending" or "descending" provided by "break order property"?
    In the following example, “Dept” is brake column. Oracle Reports allows us to order values in “Dept” with “descending” provided by “break order property”:
    Dept 30
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 20
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 10
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    or “ascending” provided by “break order property”:
    Dept 10
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 20
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 30
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    I need to do:
    Dept 20
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 10
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 30
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Could I do this? Could anybody confirm that we could never ever do this, or If yes, how?
    Millions of thanks for advice.
    M.Z.
    Edited by: jielan on Sep 18, 2010 8:23 AM

    Why should that be a bug? You have a custom requirement and have to find a way to fulfill it. But, what is your actual sorting order? Do you have only this three departments? If so, you could add an addtional column in your query like
    DECODE(DEPT,  20, 1, 10, 2, 30, 3, 4) SORTINGput that column in the same group as dept and sort after that new column.

  • Changing report order using the break order property

    I am trying to allow the user to pick the order of the report's data. This has lead me to ask the following questions:
    How can the break order property of a Database Column be set at runtime, specifically in the Before Report program unit??? (changing the order BY clause in the SQL query will not be sufficient because report builder enforces that at least one column�s break order in each Group, other than the lowest one, must be set at design time)
    How can the order of the Database Columns in a Group be re-arranged at runtime, specifically in the Before Report program unit???
    Thanks for any help that you can provide.

    Hi Kevin,
    I don't think that the "Break Order" property can be set programmatically, so it may not be possible to expose it to the users. I think it can only be an enhancement request to the product.
    Navneet.

  • BUG: error rebuilding SQLJ files along other java files with generic

    I have done a rebuild on a package containing some SQLJ files, and (consistently) got the following error:
    C:\TeleMessage\trunk\src\telemessage\db\impl\dbAdmin.sqlj
        Error(44,18): Java Parsing. Encountered: <
        Expected: <IDENTIFIER> ...; "[" ...; The error at the cursor in the given file is not possible, since there was no '<' there, and besides - if I non-aggresively changed the file, e.g. narrowed imports, changed whitespace or added comments - the error remained in the same location.
    I went and done a search using regex in the package, for a line starting with 17 chars followed by a '<'.
    I found it in one of the normal JAVA files (not-SQLJ), at line 44 (surprise!) - in a Java 5 generics declaration, e.g. Map<String,Integer>. the 18th character was indeed the '<'.
    I'm guessing that the SQLJ translator (accidentally?) parses non-SQLJ files.
    If this cannot be fixed, it is really bad - it is one thing that JDeveloper cannot support Java 5 language features because of its dependancy in the SQLJ translator (which is not known to be upgraded until version 11g if at all), but the inability to compile SQLJ files in a project containing other non-SQLJ java files with Java 5 features is hard.
    I could only workaround this by rebuilding SQLJ files one at a time!
    I also have another type of error, when rebuilding the same project in a higher-level pacakge (root or "Application Sources"):
    C:\TeleMessage\trunk\src\dbtools\CallbackNumberFiller.sqlj
        Error(24,8): Missing semicolon.
        Error(24,8): Unbalanced curly braces.Again, the specified file could not be the one to blame - the location of the error is in the middle of the public modified keyword in a method declaration; nothing is neither missing nor unbalanced.
    This appears to be different, as it pops in the log near the end of the build process, when the JSPs are being built, specfically during the time the message log fills with "writing <...>" lines (after "translating <...>" and "compiling <...>".
    I can consistently reproduce both cases - please advise how I can help you find out what causes this.
    Regards,
    Yaniv Kunda

    First of all, this bug not JDeveloper's problem, but the SQLJ team's.
    You can read more posts about this:
    Re: BUG: Cannot translate SQLJ files with Java5 generics code
    Re: How to use SQLJ with Java 1.4 and 1.5?
    Re: SQLJ discontinued??
    And if we're at it, this is strange - I can't seem to find the oracle doc you quoted...
    SQLJ 11g? The latest release is a part of JPublisher 10.2 available from
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
    I also didn't find anything on google on 11g, nor about the part number you specified.
    Didn't find any Java 1.5 supporting SQLJ translators from other vendors as well.
    Do you have any link to this statement?
    But if we examine this bug again, the problem involves JDeveloper passing Java 5 featured JAVA files to the SQLJ translator.
    Isn't there a way to instruct the translator to use CLASS files compiled by a normal Java 5 compiler, instead of trying to compile the files itself?
    Regards,
    Yaniv Kunda

  • Changing movie clip alpha with a button

    Hello all
    I need a freindly nudge in the right direction.
    I need to change the alpha properties of a movie clip with a
    button press, but if the alpha cannot go below 20.
    I have the first part ok but just cannot figure out how to
    limit the alpha change so that it does not go below 20.
    Thanks

    Ok everything works but now there is a new problem.
    if I push the increase button past the alpha == 100 the alpha
    does not change but to decrease it will not change until it gets
    back down to the 100% point.
    Example:
    it takes 4 button presses on decrease to get to 20% alpha and
    4button presses on increase to get back to 100%
    If I press increase 3 more times past 100% then I need to
    press decrease 3 times to get back down to 100% and the 4th
    decrease button will cause an alpha change.

  • Bug in To do's - Due date won't change unless you go to "Other..."

    Bug in To do's - Due date won't change unless you go to "Other..." when you create or edit a to-do in Reminders>To Do's view
    Mail Version 3.0 (912.1/912)

    Another bug: The "No Date" option doesn't work properly. I have a smart mailbox set up to show all items dated plus/minus a year from now (i.e. all dated items) and four undated items showed up in the list. Selecting "no date" didn't work, so what I had to do was use the "other" option to set a date a couple of years back then go to iCal to set the items to "no date". That cleared them from the smart mailbox in Mail.

  • Property change listener error with jtabbedpane

    Greetings
    I have a property change listener on my jtabbedpane (2 panes (index 0 of course and index 1). my problem is when i want to run my app it gives me a java null pointer exception. I believe it is b/c it is starting the app and it see the property change of the first tab at index 0 which is the first tab it sees and tries to run the method that makes the buttons visibility to true. but the buttons are already true. Basically how can I get the property change to run only after the app is visible? I made the buttons visibility false on startup to see if it can run the app but I still got the same error. I hope I am clear enough, if I am not please and I will attempt to reiterate the situation better. thanks for anyones help.
    tabs = new JTabbedPane();
              tabs.addChangeListener(this);
              tabs.setPreferredSize(new java.awt.Dimension(800, 400));
              tabs.addTab("Q", tab1.getMa());
              tabs.addTab("R", tab2);
      public void stateChanged(ChangeEvent changeEvent) {
                JTabbedPane sourceTabbedPane = (JTabbedPane) changeEvent.getSource();
               int index = sourceTabbedPane.getSelectedIndex();
               //System.out.println("Tab changed to: " + sourceTabbedPane.getTitleAt(index)+"  Index: "+index);
               if (index==1){
                         changeButtonsF();
                             ///makes buttons false on side panel
               else if (index==0){
                    changeButtonsT();
                     //makes buttons true on side panel
           }

    Basically how can I get the property change to run only after the app is visible?Add the PropertyChangeListener to the tabbed pane after the JFrame is visible.
    If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)",
    see http://homepage1.nifty.com/algafield/sscce.html,
    that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.

  • Drawing with an effect other than Alpha Transparency and XOR

    Hello,
    I'm looking for a way to draw images (Or anything else for that matter) with simple effects other than the Alpha and XOR effects, such as Multiply, Subtract and Bitwise AND. I've realized it has something to do with the setComposite function, but I haven't figured out how to get further from there, and the documentation didn't seem very clear. This is my first time using Java fro anything graphical; most of my projects are done in PHP and C++.
    Could anyone help me with this, perhaps with an example?
    Thank you very much!

    I'm using Graphics2D. I have one big BufferedImage and other smaller once which I use as sprites. I'm rendering the sprites to the big buffer using drawImage. I need an efficient way to render some of the sprites with an ink effect such as subtract. I know it's possible to do it with a XOR effect by placing setXORMode(c1) before the drawImage function.

  • Does anyone know how to make songs in your playlist play directly after each other with no break between then, ie no silent period?

    Does anyone know how to make songs in your playlist play directly after each other with no break between then, ie no silent period?

    you cannot.

  • HT5622 Good day!! I was having two Iphones with same icloud id, later i deleted 1 id from one device, and made 2nd id for this device but same time my old id is stored on other device and i can not change it with another id, can any1 guide me on this issu

    Good day!! I was having two Iphones with same icloud id, later i deleted 1 id from one device, and made 2nd id for this device but same time my old id is stored on other device and i can not change it with another id, can any1 guide me on this issue.

    Log in to icloud.com on a web browser and remove the device from "Find My iPhone"

  • Problems with my Firefox so I changed browser to Google Chrome and lost all Firefox bookmarks, tags and other sites how do i retrieve those?

    I kept getting performance issues with Firefox 3.6 from the add-ons to crashes. I then chose to try Google Chrome as the main browser and somehow it uninstalled the Mozilla Firefox and all the toolbars, bookmarks and all were uninstalled without importing.
    On one hand it's good since the browser is cleaner and functioning better now especially after many attempts with YouTube and other video streaming sites.
    Is there a way to retrieve all those lost items or are they considered gone?
    Thanks for your assistance.

    Please read this article about restoring bookmarks:
    http://kb.mozillazine.org/Lost_bookmarks
    As far as your passwords are concerned, I don't think there's anything you can do. But for the future, you can use the following add-ons to avoid any future loss:
    https://addons.mozilla.org/en-US/firefox/addon/2848/
    or
    http://www.xmarks.com/
    Both are good.
    And a simple way to import your bookmarks (since you already saved it on your desktop as html) is:
    Bookmarks / Organized Bookmarks / Import and Export
    Good luck.

Maybe you are looking for