How do I rotate a Button for example around its center in Flex 4.1 ?

I know that there is autoCenterTransform or some propery like that in the transform effects but I don't want to use an effect, I just want the button rotated 180 degrees around it's center (I have left and right arrow and I don't want to make separate skins for them).
Anyone?

Maybe use a layout that isn't BasicLayout?
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark">
    <s:controlBarContent>
        <s:HSlider id="slider" minimum="0" maximum="360" />
    </s:controlBarContent>
    <s:layout>
        <s:HorizontalLayout />
    </s:layout>
    <s:Group>
        <s:Button id="btn" label="test" rotation="{slider.value}" transformX="{btn.width / 2}" transformY="{btn.height / 2}" />
    </s:Group>
    <s:VGroup>
        <s:Button id="btn2" label="test" rotation="{slider.value}" transformX="{btn2.width / 2}" transformY="{btn2.height / 2}" />
    </s:VGroup>
</s:Application>

Similar Messages

  • How To Create On Submit Button For Master_detail Page ?

    I have adf page that is master And detail view.
    i want to have one submit button for master and detail block

    Duplicate of  How To Create On Submit Button For Master_detail Page ?
    Please don'r post your question multiple times.
    Timo

  • Is there a way to make state transitions/animations of a fl.control states - button for example ?

    Is there a way to make state transitions/animations of a fl.control states - button for example ?
    All I can do now is change the skin design and that's it, I can't animate between states like I can with Flash Builder skins. So is there a way to do that, any technique or I have to create a button component from scratch?
    Thanks!

    simplebuttons have upState etc properties you can use to assign movieclips to the 3 states.  you can use the currentFrame property of movieclps to (appear to) smoothly transition from one state to another.

  • How to make custem sized book for example 12inch x 8 inc, 18 inch x12 inch

    how to make custem sized book for example 12inch x 8 inch, 18 inch x12 inch

    I'm afraid there is no way to do this currently available.

  • How can I get Pantone colours (for example PMS 285) back in CS6 Illustrator?

    Pantone colours (for example PMS 285) are not available in CS6 ( Illustrator and Indesign). How can I get the right colours back?

    Are you certain they are not available?
    Mike

  • How to create a help button for downloading a help file in OA Framework

    Hi all
    I want to create a help button for downloading a help document.Plz suggest me how to do it.
    Thanks
    Bhupendra

    Create a button of type "button",set the destination url property to the place u have kept the file.But ur file should be anywhere in Common_top.If this file is stored as blob u can use messagedownload bean.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to create a flash button, for mobile phones?

    i want to know the way how i can create a flash button for mobile in flash CS4.

    Create a button of type "button",set the destination url property to the place u have kept the file.But ur file should be anywhere in Common_top.If this file is stored as blob u can use messagedownload bean.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to debug Alchemy with VC++ (for example vc++6.0)

    Hi all,
    i want to debug the alchemy code with VC++. For example, I use sample /stringecho.
    I  create a new project and add stringecho.c  . But build error---------fatal error C1083: Cannot open include file: 'AS3.h': No such file or directory
    If I copy AS3.h from alchemy directory  to my project directory ,build error---------error LNK2001: unresolved external symbol _AS3_LibInit
    error LNK2001: unresolved external symbol _AS3_Release.........
    can any one have idea how to debug,
    waiting for inputs
    thanks in advance

    Sorry but you can't compile Alchemy stuff like AS3.h in visual studio hoping to debug your application
    You may develop your C/C++ code in visual studio as a "portable application" to alchemy or whatever platform you like, so you may develop , debug it, and then recompile the whole application in alchemy ... you will need a lot of #ifdef/#endif and so on to make it.
    If you have isolated pieces of C/C++ code build up a test application and test it.. maybe it's easier.
    if you really need to debug the alchemy version of your code you could follow this post, it's a great starting point.
    http://forums.adobe.com/thread/416004
    i hope it could help
    Dario

  • How do I disable "Exceptions" button for "Block pop-up windows" in Content tab?. I am able to Disable other Exception buttons in this tab using about:config preference.

    Need a way to disable "Exception" button for "Block Pop-up windows" in Tools-> Options -> Content tab. I want to be able to do this for Locking Down Firefox preferences.
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    That button doesn't have a pref associated with it, so you can't disable that button with a pref on the about:config page or a lockPref call.
    That only leaves the choice to remove that button with code in userChrome.css
    <pre><nowiki>#popupPolicyButton {display:none!important;}</nowiki></pre>
    See http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files

  • How do I add a button for a custom task on the List Accounts page in 5.5

    I'm trying to add a button to the bottom of the List Accounts page that launches a custom task. I thought this would be easy - just modify UserActionsConfig. I've already added the task to context menus. The problem is there are only options to add buttons for the Find User results page and the context menus. Is there a missing attribute key that needs to be included? Is there a different config file that I need to modify? Any help would be appreciated.

    Sorry not possible in 5.x. You will have to use 6.0 and the new HTML based tree browser.
    WilfredS

  • HT5544 Search for "How to fix the library button for iBook?"

    I'm having problem to open the library button for iBook to read a book after I purchased few books.
    I'm afraid if I deleted iBook app and reinstall, my order books will be gone.

    Apple does not repair devices.
    Out of Warranty replacement for the 4 is $149US.

  • How to fulltext index more words - for example P A NC

    Hi everybody,
    I need to fulltext index a special phrase, for example P A NC, B A KLP, PO A BZ, etc. White space is standard delimiter words.
    I need oposite to stopwords
    Could you help me
    Thanks
    Martin

    Not quite sure what you're looking for.  You can turn off stopwords by using "stoplist ctxsys.empty_stoplist" in the parameters clause.  But are you looking to index those phrases as single tokens?  That can't be done without pre-processing the text in some fashion, perhaps replacing the spaces with a special character and defining that as a PRINTJOINS character, so that "P A NC" is indexed as "P+A+NC" or similar.
    SQL> create table foo (bar varchar2(2000));
    Table created.
    SQL> insert into foo values ('the quick brown P A NC jumps over the lazy B A KLP');
    1 row created.
    SQL> update foo set bar = regexp_replace( bar, 'P A NC', 'P+A+NC');
    1 row updated.
    SQL> update foo set bar = regexp_replace( bar, 'B A KLP', 'B+A+KLP');
    1 row updated.
    SQL> select bar from foo;
    BAR
    the quick brown P+A+NC jumps over the lazy B+A+KLP
    SQL> exec ctx_ddl.create_preference('mylex', 'BASIC_LEXER')
    PL/SQL procedure successfully completed.
    SQL> exec ctx_ddl.add_attribute('mylex', 'PRINTJOINS', '+')
    BEGIN ctx_ddl.add_attribute('mylex', 'PRINTJOINS', '+'); END;
    ERROR at line 1:
    ORA-06550: line 1, column 15:
    PLS-00302: component 'ADD_ATTRIBUTE' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    SQL> exec ctx_ddl.set_attribute('mylex', 'PRINTJOINS', '+')
    PL/SQL procedure successfully completed.
    SQL> create index fooindex on foo(bar) indextype is ctxsys.context
      2  parameters ('lexer mylex stoplist ctxsys.empty_stoplist');
    Index created.
    SQL> select * from foo where contains (bar, 'B+A+KLP') > 0;
    BAR
    the quick brown P+A+NC jumps over the lazy B+A+KLP

  • When I'm in yahoo mail the main buttons for navigating around the page don't work right. When I place my cursor on them nothing happens.

    When I place my cursor on buttons to navigate around the yahoo mail site, most don't highlight like they use to and don't respond at all.
    I've reinstalled Firefox to see if that solved the problem and it didn't. Can you help?

    There have been problems with Yahoo mail and Flash. It looks like you need to update your Flash plugin. See [[Managing the Flash plugin#w_updating-flash|Updating Flash]].

  • How do I rotate a button?

    For the life of me, I can't figure out how to rotate a simple button. I can rotate a drop zone, but not a button.

    Hi Aubrey
    Welcome to the forum
    Unfortunately you can't rotate DVDSPs inbuild buttons as they are prelinked to a rectangular button highlight due to the limitations of highlight boundaries in the DVD spec. You'll notice if you convert your rotated drop zone to a button it re-orientates itself.
    You can create angled buttons in PS or comped into motion video, just be sure to leave enought room around them at accommodate the rectangular button highlight shape.
    Cheers
    B

  • How to make a fullscreen button for Flash Catalyst?

    Hey everyone.  I really hope someone can help me with this.  How can I make a fullscreen button in Flash Professional that would make my Flash Catalyst project go fullscreen?

    I'm sorry I really don't know Flash Catalyst as much as I'd like to. Designing interfaces is left up to me, no designers at my agency use Catalyst. Though this is the Flash forum so that's as much as I can tell you. I didn't know Catalyst didn't support basic scripts (I thought I read that it did).
    Ultimately, for a very cheap price you can do something like go to http://www.lynda.com/ and buy a membership. Dirt cheap compared to what you get. They offer many courses on all this stuff and I'm sure your answer would lie in one of the (nicely broken up by subject) video training videos.
    Just searching for Catalyst brings up a bunch of courses:
    http://www.lynda.com/search?q=catalyst&x=0&y=0
    edit:
    For instance I watched the essential CS5.5 training and I saw in 2 minutes flat that when you click on a button you should have an "Interactions" panel that lets you do things. If they didn't put fullscreen as an interaction that's another thing but I'm just pointing out it's very easy to learn how to do all sorts of things in video training. If you do not want to purchase a membership there just find a video you think would have the info in it and I'll watch it and let you know if it told me how to do it, and how to do it.

Maybe you are looking for

  • In 10.6.4, Word and PPt will not open in Pages, Keynote

    I posted similar messages under Keynote and Pages, but I wonder if this is in fact a Snow Leopard 10.6.4 problem. I recently I clean installed MacOS 10.6 and reinstalled iWorks'09 on my laptop. I am running the latest version of Snow Leopard (Combo10

  • Sub and Amp in 05 Pontiac G6 GT

    I have a 05 Pontiac G6 GT and I would like to install Subs in my trunk of the car. I have no experience with this. I was wondering if someone could tell me what I am looking for or any suggestions. Also I want to keep my stock radio and still hook up

  • Invoice of line item

    HI, During the billing if Separate line Items r there,then  How to make it in single Invoice? Please give me the solution how to configure in the system. thanks, Miku.

  • Trying to populate a table with data from WebRowset

    Hi, I want to be able to populate my tables with data from WebRowsets that have been saved to files. Everything goes good until I get to acceptChanges(). At which point I get a NullPointerException. Here's the code... WebRowSet wrs = new WebRowSetImp

  • TS1292 there is no pin on my itunes giftcard and the giftcard number is invalid

    I am trying to redeem an iTunes Gift Card from 2009.  It has a 16 digit number beginning with X and a serial number beginning with GCA.  There is no pin number on the card.  How do I redeem this card or even check to see if it was activated?