Sticky Button AS2
Help File

You can edit 'Sticky Button' in many ways

  • Change the background color by opening up the 'btnBG' movie clip in the library and selecting a new color or gradient
  • Change the font of the button by opening up the 'ButtonContainer' movie clip
    • Select the text on the stage
    • Open the Properties panel and select a new font
    • Make sure to embed the fonts by selecting 'Embed...', choosing the characters you wish to use, and select 'OK'
  • Change the label on the button - this can be done in 2 ways
    • Directly changing the text on the stage - when you do this, you will have to manually adjust the button background and outline
    • Set the button label by calling 'editButton' function located in the actions layer within the 'StickyButton' movie clip
      • You can call the function from within the 'StickyButton' movie clip by using -- editButton(new name)
      • You can call the function externally, but make sure to reference the instance on the button -- myButton.editButton(new name)

Use your own button as a 'Sticky Button'

  • In the 'Custom Sticky Button' folder in the library open the 'myButton' movie clip
  • Place your button here, center it to the stage, and it's done!

This file uses Caurana Tweener

Documentation for Tweener can be found at http://code.google.com/p/tweener/

Licensing for Tweener can be found at http://www.opensource.org/licenses/mit-license.php

 

Licensing notice for Caurina Tweener

The MIT License

Copyright (c)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

FlashDen.net