Changing alpha on button

Hi everyone! I'm new to flash cs3 and currently working in
it. What I am trying to do is create a button that when rolled over
the alpha=0 and when rolled off it goes back to 77%. I'm facing two
problems. The first is that in as3 I am not sure where to place the
alpha statement. Second, I'm getting this error
quote:
1119: Access of possibly undefined property OVER through a
reference with static type Class.

hmmm. i think more important than just giving you the answer
to your problem, it would be remiss of me not to help you to find
the answer yourself next time.
so the error message is describing a problem with the
property 'OVER', suggesting it is possibly undefined. so this is
where it would be a good idea to have a look at the MouseEvent
class in 'help' and double check you got the event type correct. So
under ActionScript 3 Language and Components Reference, All
Classes, MouseEvent, you find that the rollover event is actually
called ROLL_OVER.
other than that, you're on the right track. if you have any
more trouble with this, post another question, but with use of the
help files you should be fine.

Similar Messages

  • Change the rows button image

    Hi,
    I want to know if there is an easy way in DW to change the default button the browser displays for the "browse" button when I use an input field:
    e.g. using:
    <input type="file" name="fileatt">
    I've looked at this link but not only that it fails to work for me but also I want to know if there is a simpler method.
    http://www.quirksmode.org/dom/inputfile.html

    That's pretty strange stuff.  Is it representative of the actual code on the page?  I mean -
    1.  Is the stylesheet actually between the <html> and the <head> tag?
    2.  Do you actually have the paragraph, h1, div and input tags within the head region of the page?
    Most likely that's why it's not 'working'.
    Try this code and see if it works better (seems to work OK on my side, but I don't have the browse.png file) -
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="he">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>ContacUs DnD-Production</title>
        <style type="text/css">
            div.fileinputs {
        position: relative;
    div.fakefile {
        position: absolute;
        top: 0px;
        right: 0px;
        z-index: 1;
        background-color: #DEEEEE;   
    input.file {
        position: relative;
        tex-align: right;
        -moz-opacity:0 ;
        filter:alpha(opacity: 0);
        opacity: 0;
        z-index: 2;
        </style>
    </head>
    <body>
    <form>
    <p>
    <h1>This is my test</h1>
    </p>
    <div class="fileinputs">
    <input type="file" class="file" name="fileatt">
    </div>
    </form>
       <script type="text/javascript">
        var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "email", {validateOn:["blur"]});
        var W3CDOM = (document.createElement && document.getElementsByTagName);
        function initFileUploads() {
        if (!W3CDOM) return;
        var fakeFileUpload = document.createElement('div');
        fakeFileUpload.className = 'fakefile';
        fakeFileUpload.appendChild(document.createElement('input'));
        var image = document.createElement('img');
        image.src='browse.png';
        fakeFileUpload.appendChild(image);
        var x = document.getElementsByTagName('input');
        for (var i=0;i<x.length;i++) {
            if (x[i].type != 'file') continue;
            if (x[i].parentNode.className != 'fileinputs') continue;
            x[i].className = 'file hidden';
            var clone = fakeFileUpload.cloneNode(true);
            x[i].parentNode.appendChild(clone);
            x[i].relatedElement = clone.getElementsByTagName('input')[0];
            x[i].onchange = x[i].onmouseout = function () {
                this.relatedElement.value = this.value;
      </script>
    </body>
    </html>

  • Disabling 'Change' and 'Delete' button in Attachment List in ME52N

    Hi Friends,
    The reuqirement is this:
    A user attaches doucments  ( using the Generic Object Services to attach document ) while creating/changing Purchase Requisition (ME51N / ME52N).
    Now when any user goes to see the docuemnts attached to the PR, he selects the 'Attachement List' from the context menu, he should only be able to read it and should not be allowed to change or delete the document. For this we need to disable the 'change' and 'delete' buttons from the toolbar.
    Awaiting your response.......
    Regards,
    Fawaz

    Hi,
    Probably you have uncommented the call to super class when you reimplement the method on child class (z class)
    I just implement the same thing now and it worked for me. Take a look:
    1 - Modify the SGOSATTR table by SM30, just write a Z class (in my case CL_GOS_SRV_ATTACHMENT_CREATE) .
    2 - Create/inheridt a subclass (not a copy) in SE24 of the standard class.
    3 - Implement the method CHECK_STATUS in the z class. Note that the call to method on super class came commented. You only uncomment if you want to also execute a standard code in the super class.
    Here is my code:
    method CHECK_STATUS.
    NOTE - In my real implementation I have uncommented the code below because I want do standard code be executed before my own check.
    *CALL METHOD SUPER->CHECK_STATUS
    EXPORTING
       IS_LPORB  = IS_LPORB
       IS_OBJECT = IS_OBJECT
    IMPORTING
       EP_STATUS = EP_STATUS
       EP_ICON   = EP_ICON
      Check for BUS2012 = Bussinnes Object for Purchase Order
      IF IS_LPORB.TYPEID = BUS2012
      Check authorization and disable create attachment item if the user does not have authority...
    IF IS_LPORB-TYPEID = 'BUS2012'.
    AUTHORITY-CHECK OBJECT 'Z_MM001' ID 'ACTVT' FIELD '01'.
      IF sy-subrc <> 0.
        ep_status = mp_status_inactive.
      ENDIF.
    ENDIF.
    endmethod.
    Regards,
    Alexandre

  • Disabling 'Change' and 'Delete' buttons in Attachment List in ME52N

    Hi Friends,
    The reuqirement is this:
    A user attaches doucments ( using the Generic Object Services to attach document ) while creating/changing Purchase Requisition (ME51N / ME52N).
    Now when any user goes to see the docuemnts attached to the PR, he selects the 'Attachement List' from the context menu, he should only be able to read it and should not be allowed to change or delete the document. For this we need to disable the 'change' and 'delete' buttons from the toolbar.
    Awaiting your response.......
    Regards,
    Fawaz

    Hi,
    I have solved the issue Alhamdulillah by the foll. method:
    1. Copied CL_GOS_SRV_ATTACHMENT_LIST to ZCL_GOS_SRV_ATTACHMENT_LIST
    2. In ZCL_GOS_SRV_ATTACHMENT_LIST there is a method called: CHECK_STATUS. I overwrote with my check;
    on_mode_changed( 'D' ). --- For display
    on_mode_changed( 'E' ). --- For edit mode.
    3. In SGOS tcode, added VIEW_ATTA to point to ZCL_GOS_SRV_ATTACHMENT_LIST
    Regards,
    Fawaz

  • Acrobat 9.1  Mac How do you change from Radio buttons to Check boxes?

    I have a DMV Form I Downloaded and had to convert to PS then back to PDF (written originally on PC Acrobat was in XML format).
    So on new form, I am able to add fields. I used the the Forms manager to automatically create the fields. Fields that were made Radio Buttons should have been Check boxes. How do change the Radio buttons to check boxes. There are a lot of them and I don't wish to have to re-key them in.
    Suggestions?

    Well when I click on the box it shows a Check mark in the box. That exactly what I need because in the instructions it requires a Check mark in each of the check boxes. Normally the Med form is sent as a paper copy from DMV every two years.
    Also another Tip. A PDF that has XML Content. (PC Acrobat Version).
    If you want a usable PDF on Mac and get rid of the XML do the following:
    Open the XML Based PDF on Mac Acrobat 9.X .
    Now choose export and save as Postscript File (.ps).
    Now locate and drop on Distiller 9.X.
    When PDF created will be a Pristine exact replica of the XML file except Mac Acrobat can edit and create forms with it.

  • Can You Change the Highlighted Button in the Find Font Palette?

    I have several hundred spreads that I converted from Quark to InDesign CC and a few fonts are missing, so I need to replace them. I can use the "Find/Replace" window to take care of most of them using the "find format" function, but one doesn't show up as a choice, so I have to change it using the Find Font palette. I select the missing font name and then select the replacement. Then, if I hit the "enter" button on the keyboard, the palette closes because the highlighted button is the "Done" button. Is there a way to change the highlighted button to the "Change All" one?
    Thanks,
    Lloyd

    John,
    Thanks for the reply. I tried using the tab key and although it does change the highlighted button, you can't just press "enter" to select it. I also tried ALT+A (option+A) and it did nothing. I should have mentioned that I'm using a Mac.
    Lloyd

  • Multiple flash files change when a button click using javascript function

    hi.. am new in flsh...
    i want to multiple flash files change when a button click using a javascript

    <script>
    var count=0;
    function mafunct(newSrc){
        alert("hi");
    var path="a"+count+".swf"; 
    flash+='<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" WIDTH="100%" HEIGHT="100%">';         
        flash+='<PARAM NAME=movie VALUE="'+path+'">';         
        flash+='<PARAM NAME="PLAY" VALUE="false">'; 
        flash+='<PARAM NAME="LOOP" VALUE="false">';
        flash+='<PARAM NAME="QUALITY" VALUE="high">';
        flash+='<PARAM NAME="SCALE" VALUE="SHOWALL">';
        flash+='<EMBED NAME="testmovie" SRC="Menu.swf" WIDTH="100%" HEIGHT="100%"PLAY="false" LOOP="false" QUALITY="high" SCALE="SHOWALL"swLiveConnect="true"PLUGINSPAGE="http://www.macromedia.com/go/flashplayer/">';
        flash+='</EMBED>';
        flash+='</OBJECT>';    
    count++;
    alert(path+"aa");
    </script>
    <button onclick="mafunct()">next</button>

  • Change in back button behavior

    We are upgrading from ColdFusion 9 to ColdFusion 11.  We noticed a change in back button behavior.  On pages running CF 9 the back button works, but on pages running CF 11, when clicking the back button, we get a browser "confirm form resubmission" message.  Since it is the same browser, it is clearly a change in ColdFusion.  Does anyone know when the change was made?  Is there a setting that controls the behavior?
    Thank you,
    David

    We should ignore the difference in Coldfusion version for a moment. It might just be that the previous behaviour was incorrect and what you now observe, with CF11, is the correct behaviour.
    A form-resubmit warning is essential. In fact, it can even be vital in certain circumstances. It is telling you that someone, some process or some thread has attempted to resubmit a form.
    In your case, clicking the back button apparently refreshes the action page of the form. This is analogous, in business terms, to repeating an order that has already been placed. The related validation code, queries, etc. will run once again. Obviously an unwelcome situation.

  • How to change alpha of a "container"

    I want to change alpha like when we change pages, but only for a container named:contain
    I have 4 btn (text1, text2, text3, text4) in the "left_side" and each of those change "contain1" to "contain4".
    (contain1, contain2, ... are all in my library and my btn
    that's the code:
    import fl.transitions.*;
    import fl.transitions.easing.*;
    // claim MCs from library to use on stage when needed using addChild
    var c1:contain1 = new contain1;
    var c2:contain2 = new contain2;
    var c3:contain3 = new contain3;
    var c4:contain4 = new contain4;
    left_side.addChild(c1);
    var pageMoveTween:Tween = new Tween(left_side, "y", Elastic.easeOut, 300, 110, 2, true);
    left_side.text1.addEventListener(MouseEvent.CLICK, btn1Click);
    left_side.text2.addEventListener(MouseEvent.CLICK, btn2Click);
    left_side.text3.addEventListener(MouseEvent.CLICK, btn3Click);
    left_side.text4.addEventListener(MouseEvent.CLICK, btn4Click);
    function btn1Click (event:MouseEvent):void {
    var btn1Outro:Tween = new Tween(left_side, "alpha", Strong.easeOut, 1, 0, 1, true);
    btn1Outro.addEventListener(TweenEvent.MOTION_FINISH, runBtn1Transition);
    function runBtn1Transition (event:TweenEvent):void {
    left_side.removeChildAt(1);
    left_side.addChild(c1);
    var btn1Intro:Tween = new Tween(left_side, "alpha", Strong.easeOut, 0, 1, 1, true);
    function btn2Click (event:MouseEvent):void {
    var btn2Outro:Tween = new Tween(left_side, "alpha", Strong.easeOut, 1, 0, 1, true);
    btn2Outro.addEventListener(TweenEvent.MOTION_FINISH, runBtn2Transition);
    function runBtn2Transition (event:TweenEvent):void {
    left_side.removeChildAt(1);
    left_side.addChild(c2);
    var btn2Intro:Tween = new Tween(left_side, "alpha", Strong.easeOut, 0, 1, 1, true);
    function btn3Click (event:MouseEvent):void {
    var btn3Outro:Tween = new Tween(left_side, "alpha", Strong.easeOut, 1, 0, 1, true);
    btn3Outro.addEventListener(TweenEvent.MOTION_FINISH, runBtn3Transition);
    function runBtn3Transition (event:TweenEvent):void {
    left_side.removeChildAt(1);
    left_side.addChild(c3);
    var btn3Intro:Tween = new Tween(left_side, "alpha", Strong.easeOut, 0, 1, 1, true);
    function btn4Click (event:MouseEvent):void {
    var btn4Outro:Tween = new Tween(left_side, "alpha", Strong.easeOut, 1, 0, 1, true);
    btn4Outro.addEventListener(TweenEvent.MOTION_FINISH, runBtn4Transition);
    function runBtn4Transition (event:TweenEvent):void {
    left_side.removeChildAt(1);
    left_side.addChild(c4);
    var btn4Intro:Tween = new Tween(left_side, "alpha", Strong.easeOut, 0, 1, 1, true);
    thank's for your help!

    Make it easy on yourself if you're going to keep synchronized numbering and loop it.
    var maxButtons:Number = 4;
    var currentSection:Number = 1;
    for (var buttonNumber:Number = 1; buttonNumber <= maxButtons; buttonNumber++)
        left_side.getChildByName('text'+buttonNumber).addEventListener(MouseEvent.CLICK, _buttonHandler);
    function _buttonHandler(e:MouseEvent):void
       var buttonPressed:MovieClip = MovieClip(e.currentTarget);
       var indexPressed:Number = Number(buttonPushed.name.substr(4,1));
       if (indexPressed != currentSection)
          currentSection = indexPressed;
          var content:MovieClip = MovieClip(left_side.getChildByName('content'));
          var fadeTween:Tween = new Tween(content,"alpha",Regular.easeOut,1,0,1,true);
          fadeTween.addEventListener(TweenEvent.MOTION_FINISH, _loadContent);
    function _loadContent(e:TweenEvent):void
        // remove old content
        left_side.removeChild(left_side.getChildByName('content'));
        var content:MovieClip;
        content.name = 'content';
         if (currentSection == 1)
            content = new content1();
         else if (currentSection == 2)
            content = new content2();
         else if (currentSection == 3)
            content = new content3();
         else if (currentSection == 4)
            content = new content4();
         content.alpha = 0;
         left_side.addChild(content)
         new Tween(content,"alpha",Regular.easeOut,0,1,1,true);
    I hate switches in general, opt for ugly if blocks. If you really want to do it right then get all your content in easily synchronized indexed arrays as references so you don't need to do any string comparison work.. This is just quick and dirty to give you an idea that you can re-use functions as well as loops to make things less tedious.

  • How do I change what a button looks like?

    How do I change what a button looks like?
    I have an Arrow button that I want to change into a 'Text' Button.

    "AVG Safe Search" often makes the "Enter" key not work, it may be opening their search in a new tab since they are the ones with the search by that name. Make sure that you do not have that extension see http://kb.mozillazine.org/Problematic_extensions
    Actually there is more than just the one extension that AVG might install, reinstall AVG Free without the Link Scanner component as mentioned in the above link and always refuse additional baggage offered during an install -- AVG Free does not ask in the free version it just includes it and there are no options once installed in the Free version for components..
    Also make sure you don't have the "Ask Toolbar" or other toolbars you did not ask for. see the same link above for Toolbar problems.
    It is definitely an extension that causing the behavior you see.

  • How Can I change Color of Button Caption

    Hi all ,
    I want to change color of button caption in my add on . but I cannot .
    I change forecolour of button properties but it doesn't work .
    If you have any idea help me please .
    Thanks in advance,
    msw

    As far as I know buttons cannot change forcolor or backcolor  - SDK Limitation

  • Change the home button back to the left side!!!!! I've changed browsers and would like to change back and upgrade to FF 6.0 if you can get that fixed!

    "change the home button back to the left side!!!!! I've changed browsers and would like to change back and upgrade to FF 6.0 if you can get that fixed!"
    And why can't I send an email from the old browser? lame!

    You can open the open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout" and drag the home button to where you want it to appear.
    *http://kb.mozillazine.org/Toolbar_customization
    *https://support.mozilla.com/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • How to disable or Invisible the Change and Create button in the PF-STATUS

    Hi all,
    For the table CEPCT, when we display the table entries, there are Create,Change,Display etc button in the standard application tool bar.
    My requirement is to disable or Invisible 2 buttons Create and Change
    Can any one help me in this issue as early as possible
    Regards
    Srinivas

    Hi,
    Check the below statement for more help Press F1
    SET PF-STATUS <MENU> EXCLUDING <FCODES>.

  • I have an iPod touch 5th generation 32 GB .. My home button is stuck i resd here that if i keep my ipod in rice for 6hrs it will work but it doesnt work. What should i do? And how much does it cost to change your home button?

    Home button isnt working.. What should i do?
    how does it costs to change the home button?

    Apple will exchange your iPod for a refurbished one for $99 for a 16 GB 5G and $149 for the other 5Gs. They do not fix yours.
    Apple - iPod Repair price                                    
    A third-party place like the following maybe less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens         
    Fix it yourself if you are up to it
    iPod Touch Repair – iFixit                  

  • In most web sites many web sites, the menue buttons do not appear i have to scroll over the screen untill the cursor changes indicating a button is actually there, and guess which one it is. I am using windows 7 , 64 bit

    In most web sites many web sites, the menu buttons do not appear i have to scroll over the screen until the cursor changes indicating a button is actually there, and guess which one it is. I am using windows 7 , 64 bit

    See:
    * http://kb.mozillazine.org/Website_colors_are_wrong
    * http://kb.mozillazine.org/Websites_look_wrong

Maybe you are looking for