Individual alpha elements on a movieclip

I have a movie clip that holds a button (latter a dynamic textfield -- (button is quicker for testing )).  I have the movie clip alpha set at .65 as I want the background image to bleed through slightly.  I put the button on the movieclip as I want it to be visible as the movieclip tweens on stage.  My question is, can I target the buttons alpha when the button is a part of my movie clip or does the movie clip and the button have to be seperate?
code:
package{
    import flash.display.*;
    import flash.events.*;
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.TweenEvent;
    public class coffeeAS extends MovieClip{
    public var myTweenMenuButton:Tween;
    public var myTweenPlatformA:Tween;
    public var menuButtonHolder_instance:menu_mc = new menu_mc();
    public var menuPlatform_instance:holderA_mc = new holderA_mc();
//    public var closeButtonMenu_instance:close_btn = new close_btn(); // btn alpha 1
        public function coffeeAS(){
            menuButtonHolder_instance.x = 812;
            menuButtonHolder_instance.y = 35;
            addChild(menuButtonHolder_instance);
            menuButtonHolder_instance.addEventListener(MouseEvent.CLICK, menuOnStage);
            menuPlatform_instance.x = 200;
            menuPlatform_instance.y = -320;
            menuPlatform_instance.alpha = .65;
//            closeButtonMenu_instance.alpha = 1; // btn alpha 1
            addChild(menuPlatform_instance);
            menuPlatform_instance.addEventListener(MouseEvent.CLICK, menuOffStage);
            function menuOnStage(event:MouseEvent):void{
                myTweenMenuButton = new Tween(menuButtonHolder_instance, "x", Strong.easeOut, 812, 900, 2, true);
                myTweenPlatformA = new Tween(menuPlatform_instance, "y", Strong.easeOut, -320, 100, 3, true);
            function menuOffStage(event:MouseEvent):void{
                myTweenMenuButton = new Tween(menuButtonHolder_instance, "x", Strong.easeOut, 900, 812, 2, true);
                myTweenPlatformA = new Tween(menuPlatform_instance, "y", Strong.easeOut, 100, -320, 3, true);

Thanks for the reply.
I was sort of wondering about that.  "...but the movieclip's alpha will define the maximum alpha of the button."
OK.  I can work with that.  Now I won't be chasing my tail for the next couple of hours trying to do something that doesn't work the way I was thinking.
I appreciate the help 

Similar Messages

  • AS3: Alpha Tween from one MovieClip to Another

    Hi folks,
    Using AS3, how do I create an alpha tween from one movie clip to another?
    My thinking is that I can't use the timeline, because the fade is variable and event driven; e.g., the user clicks on one of many pics, and the stage alpha tweens from the current to the clicked. But maybe I'm wrong.
    Any suggestions?
    tyvm!

    Look into the AS3 Tween class. If you need to coordinate the tweening based on one tweening out before the other tweens in, then you will also want to look into having event listeners in play to detect when the tween finishes.
    Here's a link to a sample file I created to help demo things:
    http://www.nedwebs.com/Flash/AS3_Tween_Images.fla

  • Alpha not working on MovieClip

    I created a symbol (Movie Clip) for my library, and I can manipulate all of its properties except for one—alpha.
    Here is a sample of the code:
    var range:Range = new Range();  // Range is the symbol in my library, and has been exported for ActionScript
    range.alpha = .1; // Doesn't seem to work as the symbol is still at 100% opacity.
    _buffer.draw(range, range.transform.matrix); // This is where I draw the symbol to the buffer
    Everything draws fine, but it is as if the alpha property is not working. Any suggestions?
    Thanks.
    P.S. - If anyone knows, should I use a Graphic for my symbol instead of a Movie Clip if I only have one frame?

    Ok, so I added this code at the top:
    var ct:ColorTransform = new ColorTransform();
    var range:Range = new Range();
    ct.alpha = .1;
    range.transform.colorTransform = ct;
    _buffer.draw(range, range.transform.matrix);
    Unfortunately, it tells me that alpha is an unidentified property. In my book it only looks like I can change the colors
    with ColorTransform. I think I need to keep transform.matrix, because I do initially change the x and y of range. The
    object is stationary, and will have a set alpha, so is there a way I can change both x, y, and alpha, and then be able
    to use only _buffer.draw(range)?
    Sorry about all the questions, but I am new to AS3.

  • Changing individual array element properties

    In the attached VI, I have a 1D array of slider controls ("Phase Coefficients") where each array element represents the coefficient in a polynomial of arbitrary order. The problem I'm having is that the slider range I set for the lowest order coefficient (array element 0) quickly becomes impractical for higher order coefficients (elements >5). Small changes in the higher order coefficients dramtically change the overall polynomial.  I want each element/slider to have its own range, but I know this isn't strictly possible as each element in an array shares the same properties. I've implemented a work around (Use boolean to activate) in which the range of all sliders is adjusted depending on which element is being viewed, but my implementation prevents editing of the range while running the VI. Is there any way to adapt my method (or use another method all together) to allow for different, editable ranges for each element slider?
    Thanks!
    Solved!
    Go to Solution.
    Attachments:
    Arb Poly Gen.vi ‏39 KB

    Hi RavensFan, 
    Thanks for the suggestion! I tried your idea, but I still seem to be having the same problem with each slider sharing properties despite now being in a cluster inside the array. I may be misunderstanding you. Would you mind showing me an example please?
    *Edit: Nevermind, got it to work. Thanks again!
    Attachments:
    Array Cluster Slider.vi ‏7 KB

  • NI-DAQmx Analog out to Cluster how to convert to individual array elements

    I am trying to decompose the cluster that comes from a single channel multiple point anolog input capture. What you get is a cluster that has the starting time, the time interval between samples and the actual analog input data points. What I want to do is after capture I want to have access to the data so I can make calculations on it. When I am done I want to write the data to a spreadsheet file. I can't seem to get the cluster to array function to wire up. I have tried every possible combination of functions and I can't get them to wire up eventhough the input type is a cluster. I have posted a screen shot of my code below.
    I can get this to work with raw data using the express vi that writes to spreadsheet but I would like to know how to do this manually as well.
    Perry
    Attachments:
    unbundle.jpg ‏85 KB

    You don't understand how dataflow works with LabVIEW and an understanding of this is essential. Dataflow means that a function does not execute until all of the data wired to it is present. In your second file, you create the date/time for the header in the second frame of the sequence structure, when the frame completes, it passes out of the structure to the concantanate string function. This is then wired to the Write Characters to File Function which will now execute because all the data inputs are present. This is set to create a new file so it is executing after the Write to Spreadsheet File which is inside the sequence structure. You do not need the sequence structure at all. You do need to provide some dataflow between the Write Characters and the Write to Spreadsheet File. Here's a bit cleaner example of your code.
    Attachments:
    Example with Dataflow.vi ‏190 KB

  • Darkened box around individual Illustrator elements

    Hello all,
    I created a card with a dark gray background which has different flowers on it (all with transparent backgrounds).  All of the flowers are the same PNG file except some of them are different colors (I traced the flowers and used Live Paint to color the petals differently).  For some reason, there is only one type of flower that has a darkened square around the flower when it's printed.  And for some reason it only happens on certain printers and not others.
    I was going to just recreate that flower using the other PNG images of that same flower that don't have that issue but just wondering what causes that?  When I exported the JPGs, I selected RGB instead of CYMK - does that affect the images at all?  (I did this because some of the websites to upload pictures don't accept non-RGB images).
    Also, the files being printed are JPGS or PDFs that have been exported from Illustrator.
    Thanks.

    Thanks - don't have access to Illustrator at the moment but will try that later.  I've attached a scanned image of the problem - as you see the flowers were all created using the same PNG file and traced/live painted with different colors - but the small ones in green all
    have a tinted border around them.

  • Backing up individual iPhone elements

    Following on from this thread: https://discussions.apple.com/message/21708767?ac_cid=op123456#21708767
    I've decided I'm going to have to "start over" on my iPhone.  I've managed to backup most apps using the inbuilt app functionality (to Dropbox etc) but I've realised I REALLY REALLY don't want to lose my camera roll, messages etc.
    Is there a recommended piece of software (don't mind paying a bit) to backup and then restore things like this?
    This is SUCH a pain. 
    Really disappointed that my iTunes backups are effectively worthless.  Five years of iPhone usage, and I really, really don't think it's reasonable to expect people to have to start over.    

    Well, I read your other post. You have been provided solutions. I'm sorry if you do not like them, but this is how it is. Remember what would happen if your comptuer crashed. Not everything is backed up there either, and most people don't even back them up.
    It seems that app data is the only thing that you do not have control over, and that is handled by the app developer, since the only way to keep any of it is with the backup. If there was a separate place to save that as well, one might be able to restore it. However, at this time there is no way to reapply the data except from a restore to backup.
    I provided a way to save SMS, it is just there is no other way to restore the phone except from the backup.
    At this time there is no way to do what you are asking. If you want to suggest anything to Apple, you are free to use the Feedback page at www.apple.com/feedback and click on the appropriate link.

  • Streamlining the code for the button group with individual links and rollover imgs

    I am looking for a solution to streamline the code for the array of 20+  buttons located inside the scroll pane.
    I know I can make an array if all the buttons would have a unified code executable change, i.e. they would become larger and brighter.
    My problem is that each button represents an product image in the lights off stage, then of rollover it is a lights on stage so I have to import two images in the on and off stage and play around with the opacity.
    Additional problem is that each button has to ling to a different label.
    My question is: is it possible to unify the code if buttons have that much individuality or I have to make each one of them as in the example below.
    // makes a hand cursor appear over a mc acting as a button for all the buttons inside the scrollpnaeBckgrnd_mc.scrollpaneBckgrnd_btns_mc.
    MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.buttonMode = true;
    MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.useHandCursor = true;
    ///////////////INDIVIDUAL BUTTONS
              MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.FloraLyte _btn.FloraLyte_ON.alpha = 0;
                        var  FloraLyte_btn_Tween:TweenLite = TweenLite.to(MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.F loraLyte_btn.FloraLyte_ON, .5, {alpha:1, paused:true});
                        MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.Flor aLyte_btn.addEventListener(MouseEvent.ROLL_OVER, overHandler_FloraLyte_btn);
                        MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.Flor aLyte_btn.addEventListener(MouseEvent.ROLL_OUT, outHandler_FloraLyte_btn);
            MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.FloraLyte_btn. addEventListener(MouseEvent.CLICK, onClick_floralytePopUp);
                      function onClick_floralytePopUp(event:MouseEvent) :void {
                                            gotoAndPlay("floralytepp");
    function overHandler_FloraLyte_btn(e:MouseEvent):void{
             FloraLyte_btn_Tween.play();
             trace("you rolled over me");
    function outHandler_FloraLyte_btn(e:MouseEvent):void{
             FloraLyte_btn_Tween.reverse();
             trace("you rolled off me");
    MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.FloraLytell_btn .FloraLytell_ON.alpha = 0;
                        var  myTween:TweenLite = TweenLite.to(MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.F loraLytell_btn.FloraLytell_ON, .5, {alpha:1, paused:true});
                        MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.Flor aLytell_btn.addEventListener(MouseEvent.ROLL_OVER, overHandler);
                        MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.Flor aLytell_btn.addEventListener(MouseEvent.ROLL_OUT, outHandler);
            MovieClip(mc_pane2.content).scrollpaneBckgrnd_mc.scrollpaneBckgrnd_btns_mc.FloraLytell_bt n.addEventListener(MouseEvent.CLICK, onClick_floralytellPopUp);
                      function onClick_floralytellPopUp(event:MouseEvent) :void {
                                            gotoAndPlay("floralyte2pp");
              function overHandler(e:MouseEvent):void{
             myTween.play();
             trace("you rolled over me");
              function outHandler(e:MouseEvent):void{
             myTween.reverse();
             trace("you rolled off me");

    as ned suggested, plan your flow and code into it. here is one example:
    var buttonArray = [someButton, someOtherButton, aDifferentButton];
    for(var i = 0; i < buttonArray.length; i++){
         //get reference to county movieclip
         var mc = buttonArray[i];
         //then add listeners
         mc.addEventListener(MouseEvent.ROLL_OVER, overMe);
    function overMe(e:MouseEvent){
         var mc = e.target;
         switch(mc){
              case: someButton:
                       someOtherButton:   doThis();
                                                     break;
              case: aDifferentButton:     doThat();
                                                     break;
              default:                            //do nothing;
                                                     break;
    function doThis(){
         trace("do this")
    function doThat(){
         trace("do that")

  • From which table check 'cost element' and its corresponding GL account?

    Hi,
    May i know from which could i check the cost element field and its corresponding GL account field??
    Questions:
    "the getting cost element should check the corresponding GL account, but I canu2019t find the
    corresponding table which include these two fields. So, if you know the table in which cost element can check the corresponding GL account, please tell me ."
    Is below way correct:
    From table CSKA, i could get the chart of accounts related with the cost elements.
    Then from table SKA1, i could get the GL account according to chart of accounts field.
    Then i got an relation between Cost element with GL account??
    Thanks!!

    Hi
    Could not locate the table, but could find that, if you come to transaction KA02, click on Environment - Display General Ledger account - In Chart of Account/ In Company Code option, then you can display the GL account for individual cost elements.
    regards
    Parag Bhargava

  • How to enforce an order in which the Individual tabs are rendered in a tab navigator?

    I have a TabNavigator with multiple tabs as below.
    On the creationComplete  event, the individual child elements are added as below.
    xx.addElement(child1);
    yy.addElement(child2);
    zz.addElement(child3);
    where
    Bindable] 
    public var child1:Child1= new Child1();[
    Bindable] 
    public var child2:Child2= new Child2();[
    Bindable] 
    public var child3:Child3= new Child3();
    Issue:
    Is there a way to enforce the order in which these individual tabs are rendered? The order is not predictable and there is a dependency in the application  that one of the tabs is already completed rendered before the other. Please let me know.
    <mx:TabNavigator id="writTabs" x="9.7" y="290.35" width="696" height="466" fontWeight="normal"tabWidth="
    90" >
    <s:NavigatorContent id="debtorNc" label="Debtor" width="100%" height="100%" >
    <view:WritDebtor id="writDebtor" width="695" height="432"/>
    </s:NavigatorContent>
    <s:NavigatorContent id="xx" width="100%" height="100%">
    </s:NavigatorContent>
    <s:NavigatorContent id="yy" width="100%" height="100%">
    </s:NavigatorContent>
    <s:NavigatorContent id="zz" width="100%" height="100%">
    </s:NavigatorContent>
    </mx:TabNavigator>
    </s:Panel>

    Try validateNow

  • Settlement of order -WBS Element

    Dear Experts,
    Can any one tell me what is meant by WBS element and in what scenario,PM orders settlement rule created with category as WBS.If possible tell me with any practical example.
    regards
    KRISHNAN

    Dear,
    Dear,
    Budget: Amount of resources allocated under a particular head in a financial year.
    Budget Control: Having/ creating a control on the resources allocated in a financial year.
    Original Budget: The initial budget that you have allocated to a WBS element.
    Supplement of Budget: One time/ discrete increment in the original budget.
    Return of Budget: Taking out the unutilized portion of the budget.
    Transfer of Budget: Transferring the budget among two or more expense heads.
    Project Definition: A framework for a business undertaking with a fixed goal to achieve with given resources.
    The project definition contains dates and organizational information that are binding for the entire project.
    WBS Element: Individual structural element in a work breakdown structure (WBS) representing the hierarchical organization of an R/3 project. Describes either a concrete task or a partial one that can be further subdivided.
    Proposed Business Process
    Assume there are seven expense heads in maintenance department. There may be addition of expense head in near future.
    Based on the maintenance heads, maintenance department will create a project in project system. This project will be used for ‘statistical purpose’ only & will not have any financial implication.
    Upon creation of a project, WBS elements will be created as per the expense heads. So for each expense head, there will be one top level WBS element. Again these WBS elements will be divided in twelve WBS elements. These twelve WBS elements represent twelve calendar months.
    Budget will be allocated to each WBS element & the WBS element will be released from the project.
    Maintenance department will create maintenance orders as per their work requirements. These orders will be settled to cost centre, which is maintained in the settlement rule. Also WBS element will have to be mentioned in each order so that the budget control can take place. So as to capture cost from each maintenance order, the WBS element field will be made ‘mandatory field’ in maintenance order.
    So when a maintenance order is released, system will do a budget check against the WBS element mentioned. If the budget check status is OK, order is released or else it will stopped from release. If the order is stopped from release, maintenance department will have to supplement the budget. Upon supplementing, the order is released again & the maintenance cost such as, labour, material costs can be booked on the order. Again the order cost is settled to cost centre & at the same time, budget is consumed from the respective WBS element.
    Every year, maintenance department will copy the previous year’s project so as to save time & efforts to create project & WBS elements. And the maintenance department will assign the budget allocated to each WBS element in a financial year.
    It is also possible to return the unutilised budget or, transfer of budget from one WBS element to another.
    Create a project CJ20N
    Create WBS element CJ20N
    Assign Budget to WBS elementsKO22
    Display assigned Budget KO23
    Supplement Budget KO24
    Display Supplement budget KO25
    Return Budget KO26
    Display Return budget KO27
    Transfer of budget CJ34
    Hope u wull get ur answer
    Regards
    Rakesh

  • Planning on WBS elements without cost elements

    Hi all,
    we are trying to implement the planning solution where users will be able to plan on individual WBS elements monthly but without providing a breakdown on cost elements. Standard SAP planning profiles allow to post plan values on WBS elements in annual view without cost elements. But when you want a monthly view the system you need to click on primary cost elements planning first.
    Is there any way to plan monthly but at cost object (WBS) level only?
    Many thanks,
    Roman

    Hi Eli,
    thanks for your response. We will be using budget functionality for budget purposes but at the same time we will need to use planning on different versions. I believe there are no versions for budget.
    One of the idea to minimize cost element planning is to introduce like a planning cost element to use with all planning postings and then include this into the same cost element group with the rest of cost elements for plan/actuals comparison reports.
    If you have something in your mind I would appreciate your input.
    Thank you,
    Roman

  • Error while creating WBS element.. regarding source structure

    I am creating a project and then a WBS element. Its a investment project. While creating WBS element XXX, it gives me error that "WBS element XXX: SOurce assignments for source structure A1 missing in Investment Profile ZZZZZ."
    What shall I check? what could be the reason?
    Thanks,
    A

    hi,
    In this IMG activity, you define the source structures used when settling and costing joint products.
    A source structure contains several source assignments, each of which contains the individual cost elements or cost element intervals to be settled using the same distribution rules
    Just consult with your CO Consultant...
    Venkatesh

  • How to change the properties of individulal elements in an array?

    Hi all,
    I have an array (size is 25) of string and I want to disable and grayout half of them. But how do I do it? How do I change the properties of individual elements in an array? I have tried to use some of the examples given in the discussion forums, but it didint work for the task mentioned above. Anybody would be able to help me with a suitable example that can be specifically used for disable or enable the individual array  elements?
    Dev

    Telemaque wrote:
    The user will see the first half of the string elements filled-in and the lower half grayed-out (to be filled in later).  Make a test VI, play around.
    ... except that all elements "greyed out" with this method contain the default string for the array element (blank by default, but changeable). There is no way to have meaningful, unique text in the greyed out elements.
    I would suggest to use a listbox as control/indicator. Here elements can easily be disabled programmatically.
    LabVIEW Champion . Do more with less code and in less time .

  • Exception in assigning XML elements value in Workshop

    Hi ,
    I tried creating a variable of type XML object(OrderREsponse). I have one MB Publisher control which sends in a variable of type OrderResponse. Before sending it , I try setting the individual XML elements value in it. So, for all the individual elemtns , I set accordinglly in both the formats.
    responseXML.addNewOrderResponse().setOrderNumber("N12121212");
    responseXML.getOrderResponse().setOrderNumber("N12121212");
    where responseXML is a variable of type OrderResponse document.
    This place while executing I'm getting an exception.
    Here is the exception I'm getting.
    <Jan 4, 2005 10:51:11 AM MST> <Warning> <WLW> <000000> <Id=top-level; Method=com.bea.wli.bpm.runtime.ProcessState.processNodeOrchestration()
    ; Failure=com.bea.wli.bpm.runtime.UnhandledProcessException: Unhandled process exception [ServiceException]>
    <Jan 4, 2005 10:51:12 AM MST> <Warning> <WLW> <000000> <A message was unable to be delivered from a WLW Message Queue. Attempting to deliver
    the onAsyncFailure event>
    Let me know if the approach is the right one... or how can i set the individual XML elements value from a XML variable.
    Thanks
    Ramesh

    Hi ,
    I tried creating a variable of type XML object(OrderREsponse). I have one MB Publisher control which sends in a variable of type OrderResponse. Before sending it , I try setting the individual XML elements value in it. So, for all the individual elemtns , I set accordinglly in both the formats.
    responseXML.addNewOrderResponse().setOrderNumber("N12121212");
    responseXML.getOrderResponse().setOrderNumber("N12121212");
    where responseXML is a variable of type OrderResponse document.
    This place while executing I'm getting an exception.
    Here is the exception I'm getting.
    <Jan 4, 2005 10:51:11 AM MST> <Warning> <WLW> <000000> <Id=top-level; Method=com.bea.wli.bpm.runtime.ProcessState.processNodeOrchestration()
    ; Failure=com.bea.wli.bpm.runtime.UnhandledProcessException: Unhandled process exception [ServiceException]>
    <Jan 4, 2005 10:51:12 AM MST> <Warning> <WLW> <000000> <A message was unable to be delivered from a WLW Message Queue. Attempting to deliver
    the onAsyncFailure event>
    Let me know if the approach is the right one... or how can i set the individual XML elements value from a XML variable.
    Thanks
    Ramesh

Maybe you are looking for

  • T code to check the job run status

    Hi Gurus, I am filling the setup tables for inventory, but i didn't run in background. I clicked on execute button, but suddenly i got disconnected from net and my server also. Now i have to check the job run status whether it is running or not. Requ

  • I have a error when i connect to sql exprees 2012 with my application

     hi   I have a application , its connected to sql server 2012  express user name  :  sa  and i have a password  in my computer and our company's computer its ok now  i setup sql server 2012 express in a customer's server  i setup my  windows applicat

  • File Type Support in the Future?

    Hi all, I'm really tempted to buy either the 16GB or 32GB iPod Touch. I currently have a creative Zen Touch 20GB, so the touch will be my first iPod. Basically, the one thing I'm not too impressed with atm is the low level of file type support. Is it

  • Entwicklung in LR5 nach Upgrade geht nicht

    Hallo Leute, folgender Case: 1) Upgrade LR3 auf LR5 2) LR5 gestartet, lizensiert 3) Ordner, Bilder, Voreinstellungen in LR5 wie in LR3; sieht gut aus 4) Auswahl Ordner 5) Klick auf "Entwickeln" 6) Dann wird der mittlere Kasten grau mit der Meldung: E

  • RRI interface

    Hi all, How can I find all query sender and the corrispondences query receiver in BW? Thank you Gianmarco