How to animate panel's borderAlpha between states?

Hi there,
I have two states where a panel starts small in one state, then grows larger in the next state.
I want to have the borderAlpha property of the panel change between states as well. The first state I want the borderAlpha to be ".04", the other state it needs to be "1".
I've looked around and I can't find a way to define the borderAlpha between the two states.
When I use this code in the state's properties I keep getting an error: ("panelURL" is the id of the panel)
<mx:SetProperty target="{panelURL}" name="borderAlpha" value="1.0"/>

Hi, have you taken a look at transitions between states?
for example:
   <mx:transitions>
      <mx:Transition id="toOver" fromState="*" toState="over">
         <ds:AnimateColor target="{this}" property="backgroundColor"
            isStyle="true" toValue="0xff9600" duration="300" />
      </mx:Transition>
      <mx:Transition id="toUp" fromState="*" toState="up">
         <ds:AnimateColor target="{this}" property="backgroundColor"
            isStyle="true" toValue="0x1e83b8" duration="300" />
      </mx:Transition>
      <mx:Transition id="toDown" fromState="*" toState="down">
         <ds:AnimateColor target="{this}" property="backgroundColor"
            isStyle="true" toValue="0xff9600" duration="300" />
      </mx:Transition>
   </mx:transitions>
(taken from a blog)
hope it helps

Similar Messages

  • How can i make a transition between clips on cutaway?

    how can i make a transition between clips on cutaway?

    ninafromlisboa wrote:
    But if I want ONLY fade out (or in) I can't do it...
    OK, I understand what you mean now! I assumed you were asking about the normal Fade In or Fade Out using the transition from the Transitions panel. But I guess you mean the Fade function specific to a Cutaway. When you double-click on a Cutaway the Inspector opens. Here you can set the Cutaway Fade duration. But as you say, it only provides for both fade in and fade out as one operation - you can't set the fades individually (it's both or nothing).
    BUT, try the method outlined by Karsten Schluter above. It will give you the same effect and will enable you to fade either side of the Cutaway (or add other transitions).
    John

  • How to add vertical stroke to between top menu items?

    I have a horizontal Spry menu bar. How to add a vertical stroke between menu top items?
    BUT NOT outermost left and outermost right. Only to BETWEEN top menu items.
    In html file I tried this:
      <div id="main_menu">
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="#">Products</a></li>
          <li class=stroke></li>
          <li><a href="#">Services</a></li>
          <li class=stroke></li>
          <li><a href="#">News</a></li>
          <li class=stroke></li>
          <li><a href="#">Contact</a></li>
         </ul>
       </div>
    And in CSS-file I made a style:
    #MenuBar1 .stroke
    display: block;
    width: 1px;
    height: 16px;
    background-image: url(../images/gui/vertical_stroke.png);
    background-repeat: no-repeat;
    In Safari this Spry menu bar work fine. But stop working in Firefox and IE.
    Also DW4 warning me in properties panel that:
    "This menu bar is missing some important tags. Go to Code view and and make sure that each menu item contains an <a> tag."
    What is correct method to do this?

    In that case you will need to use images.
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Untitled</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css">
    <style>
    ul.MenuBarHorizontal a.line {    background: #EEE url(SpryMenuBarLine.gif) no-repeat 95% 50%; }
    ul.MenuBarHorizontal a.MenuBarItemSubmenu.line{    background: #EEE url(SpryMenuBarDownLine.gif) no-repeat 95% 50%; }
    </style>
    </head>
    <body>
    <ul id="MenuBar1" class="MenuBarHorizontal">
      <li><a class="MenuBarItemSubmenu line" href="#">Item 1</a>
        <ul>
          <li><a href="#">Item 1.1</a></li>
          <li><a href="#">Item 1.2</a></li>
          <li><a href="#">Item 1.3</a></li>
        </ul>
      </li>
      <li><a href="#" class="line">Item 2</a></li>
      <li><a class="MenuBarItemSubmenu line" href="#">Item 3</a>
        <ul>
          <li><a class="MenuBarItemSubmenu" href="#">Item 3.1</a>
            <ul>
              <li><a href="#">Item 3.1.1</a></li>
              <li><a href="#">Item 3.1.2</a></li>
            </ul>
          </li>
          <li><a href="#">Item 3.2</a></li>
          <li><a href="#">Item 3.3</a></li>
        </ul>
      </li>
      <li><a href="#">Item 4</a></li>
    </ul>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>
    The images look similar to the following
    and
    I hope this helps.
    Ben

  • How to animate JFRAME

    hi all ,
    any body know how to animate the JFRAMEwindow on closing and minimizing or whatever or place the application in the systray and to invoke the same in java

    there are several ways to produce this stuff:
    #1 - Generate an animateed gif and then apply this large image over the frame
    #2 - set a CardLayout to the container and then create a set of components, each of them containing a diferent image... Then, uses a timer task to change between the cards...
    #3 - Use a simple frame, an image array or vector and a timer task (or a simple Thread). Then override the paint method showing te current index of the image array ... Use the thread to change the current index..
    and so on..

  • How to animate roughen Edges effect

    I am making an opening credit scene for a friend's movie, and he wants the names to "bleed" in. We think the roughen edges effect looks exactly how we want it to, but can't figure out how to animate it. Is there any way to do so, or give us similar results?

    Animate the effect by using keyframes in the Effects Panel
    to change property values over time.
    Roughen Edges effect
    Premiere Pro CS5-CS6 Reference
    (.pdf 12 MB download)
    http://helpx.adobe.com/pdf/premiere_pro_reference.pdf

  • Shortcut to switch between states?

    Hey there gurus,
    Simple one for you.
    Fireworks CS4. Mac OS 10.5.2.
    Is there a shortcut to switch between states?
    Thanks in advance.
    Tom

    Hey Tom,
    Glad to see you found your way to the keyboard shortcuts area. Here are a couple notes that might keep your Fireworks experience happy:
    •Try to keep your Fireworks files small... Don't have too many pages when you are going to be using a lot of states; I know it is tempting to have the entire project in one file... separating the different sections by pages and the different states of the sections by the states, but it will be worth your while to keep these files smaller and have multiple files in place of multiple pages. This will do wonders for helping the app remain consistent.
    •If you do choose to use multiple smaller files in place of large ones, use 'Command + `' (1 key left of 1/! key). This will let you flip through open pages. If you want to go in reverse, add shift (Command+Shift+`).
    •Try using the terminal command 'purge' if/when things get slow, this coupled with the aforementioned smaller files has helped me avoid crashes.
    •Make some custom tool panel layouts and save them in Window > Workspace Layouts > Save Current. If you want to update a workspace layout, just type the name of the layout you wish to save over.
    Best wishes and good luck with the clients!

  • How do I change the spacing between lines in Pages 5.5.2?  Single spacing prints more like double spacing.

    How do I change the spacing between lines in Pages 5.5.2?  Single spacing prints more like double spacing.

    In the Format panel under the Text Style tab, there is a ▸ Spacing category. Click it to open, and you will have a selector that defaults to Lines, and to the right, the ability to set your spacing in decimal values. In addition to Lines, you also have At Least, Exactly, and Between capability. You can even set exact line height  in points. Check that your Before Paragraph, and After Paragraph settings are correct for your needs.

  • How can I use home sharing between our iphones (create playlists from both accounts at once)

    How can I use home sharing between our iphones, so that we can create playlists with songs from both of our libraries?  We share a Macbook Pro (separate accounts) and each have the new iphone, but when I have my iphone and try to create a new playlist, I can only grab songs from one account.  Is there a way to create a playlist using both accounts since we are sharing?
    Does it have to be created within iTunes first on our Mac?

    The short answer: because Home Sharing isn't designed for sharing apps, and apps aren't designed to be shared.
    The longer answer:  Think of it like this...
    You download some music in iTunes.  With Home Sharing, another user can listen to it by streaming it over the network.  But the data itself is on your computer.  If you turn off the computer or take it off the network, the other user can't access it.
    But if you send another user the app, they aren't just streaming the data- they installed it on their iOS device.  Because they weren't the one that purchased it, such a transfer could easily be considered "piracy" or "stealing," and nobody likes that (least of all, Apple). 
    When iTunes sees this app, it obviously recognized it, as if saying, "Hey, how did you get this app on your device, if I have no record of you purchasing/downloading it from the iTunes store?"
    post edited to correct spelling errors

  • HT3819 how do I share movies/music between my computers. I have opened shared on both computers and both are on, but i am not able to drag anything from one to the other. Does anyone know where the settings button is on the bottom of the itunes screen?

    how do I share movies/music between my computers. I have opened shared on both computers and both are on, but i am not able to drag anything from one to the other. Does anyone know where the settings button is on the bottom of the itunes screen?

    Oops, I forgot a step between 7 and 8 ... before syncing the iPhone I need to explicitly send the document back to iTunes on the iPhone, or the changes won't come over at all ...
    and then one more thing ... Numbers on iOS does NOT recognize a number of key features of the OSX app, such as conditional formatting ... so after editing my document on iOS and syncing it back to OSX on my Mac, all of those settings are lost (no more conditional formatting, have to do it all over again)
    What am I doing wrong ?

  • How can i open a PDF bank statement in numbers so that the rows and columns contain properly aligned data from statement?

    how can i open a PDF bank statement in "numbers" so that the rows and columns contain properly aligned data from statement?

    Numbers can store pdfs pages or clippings but does not directly open pdf files.  To get the bank statement into Numbers as a table I would open the bank statment in Preview (or Skim) or some pdf viewer.
    Then hold the option key while selecting a column of data.
    Then copy
    Then switch to numbers and paste the column into a table
    Then repeat for the other columns in the pdf document
    It would be easier (in my opinion) to download the QFX or CSV version from your bank

  • How do i stop contact synching between two iPhones?

    how do i stop contact synching between two iPhones?

    Stop syncing them to the same source. If you're sharing an iCloud account with someone, don't do that.

  • How can i share purchased apps between 2 diff users on the same mac?

    How can I share purchased apps between 2 diff users on the same mac?

    A purchased app is associated with an Apple ID. A user with a different Apple ID cannot use the app unless they also use the same Apple ID.
    I cannot use my wife's apps nor she mine because each were purchased with different Apple IDs.

  • How do I sync my email between my iPhone and iPad?

    How do I sync my email between my iPhone and iPad?

    A razmee209 said, set up your email in settings on both devices. 
    iPhone email will always be up to date.  
    The iPad will update when it has internet connection.   If it is a wifi only iPad, it will only update when connected to wifi, but will do so automatically.

  • How to share the same session between JNLP Application and browser session

    How to share the same session between JNLP Application and browser session using BasicService.showDocument(url) method? It appears whenever i launch any URL from within a JNLP application using BasicService.showDocument(url) , it creates new instance of browser and session even after i used cooke handlers to restore JSESSIONID and Ltpa token etc.
    public static int showDocument(String urlToOpen)
    BasicService obj = (BasicService) ServiceManager.lookup("javax.jnlp.BasicService");
    obj.showDocument(urlToOpen);
    }

    Try using Reflection

  • How Do I Share My Database Between More Than One User Account on the Same Mac?

    How Do I Share My Database Between More Than One User Account on the Same Mac?

    How to use multiple iPhone, iPad, or iPod devices with one computer. The only way is for you to have a separate user account to log into on that computer.

Maybe you are looking for