Animate in custom layout.

Hi,
I would like some help regarding the following code please:
package
import flash.events.Event;
import flash.events.MouseEvent;
import mx.graphics.SolidColor;
import spark.components.BorderContainer;
import spark.components.Button;
import spark.components.Group;
import spark.effects.Animate;
import spark.effects.animation.MotionPath;
import spark.effects.animation.SimpleMotionPath;
public class TestGroup extends Group
private var anim:Animate;
private var bc1:BorderContainer;
private var bc2:BorderContainer;
private var btn:Button;
public function TestGroup()
super();
override protected function createChildren():void
super.createChildren();
bc1 = new BorderContainer();
bc1.backgroundFill = new SolidColor(0);
this.addElement(bc1);
btn = new Button();
btn.label = "test";
btn.addEventListener(MouseEvent.CLICK, test_clickHandler, false, 0, true);
bc1.addElement(btn);
bc2 = new BorderContainer();
bc2.backgroundFill = new SolidColor(0x7A7A7A);
this.addElement(bc2);
override protected function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void
super.updateDisplayList(unscaledWidth, unscaledHeight);
this.width = unscaledWidth;
this.height = unscaledHeight;
// Size everything.
bc1.setActualSize(this.width, 50);
bc2.setActualSize(this.width, this.height);
// Move everything.
btn.x = 100;
bc1.move(0, 0);
bc2.move(0, bc1.height);
private function test_clickHandler(event:Event = null):void
anim = new Animate(bc2);
anim.disableLayout = true;
var xSMP:SimpleMotionPath = new SimpleMotionPath("y", bc2.y, 100);
var widthSMP:SimpleMotionPath = new SimpleMotionPath("width", bc2.width, 225);
anim.motionPaths = new <MotionPath>[xSMP, widthSMP];
anim.play();
The animation "anim" does not play, from my understanding this is due to the fact I am setting the size and position of "bc2" in updateDisplayList (if the setActualSize and move of bc2 are commented the animation plays).
What I do not understand is why is the updateDisplayList called even though disableLayout has been set to true?
What is the best way to handle this? (set the size and position in createChildren...?)

Group isn't responsible for sizing and positioning its elements, that is what the layout is responsible for.  It sounds like you want to write a custom layout.
These links might be useful:
http://evtimmy.com/2010/04/two-examples-of-layout-animations/
http://flexponential.com/2010/03/06/learn-how-to-create-a-simple-virtual-layout-in-flex-4/

Similar Messages

  • Issue with creation of custom layouts using SAP Help Documentation

    Hi Experts,
    My requirement is to create a home custom page layout (using web dynpro) in Composite Environment. The default options available in CE are not useful for me. I set out to make a custom layout using the following this SAP Help Documentation: [          Creating a Web Dynpro Page Layout (SAP Library - Using the Portal as a Frontend)|https://cw.sdn.sap.com/cw/docs/DOC-102846]
    I have followed the instructions and followed all the steps, yet I fail to see the application in CE. The custom page layout is not displayed neither in options and is not available any where.
    Please let me know if anybody followed these steps and have got any success.
    Thanks in advance
    Srikant

    Hi
    Can somebody let me know if they have implemented a customised solution of creation of page layouts using Web Dynpro - as per the steps suggested by SAP.
    Thanks in advance
    Srikant

  • How to create a custom layout set to display the KM folders...

    Could someone please tell me how to create a custom layout set to display the KM folders?
    Thanks,
    Sudha.

    Hi Sudha,
    Please check the following blogs whick will guide you step by step.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4123
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3071
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/c91b5610b65b4aa8204d09384d156b/frameset.htm
    If helps reward points
    cheers
    dev

  • R12: PO Print report not accepting custom layout

    Hi All,
    PO Print report is not picking up the custom layout in R12.
    We have developed a custom layour ( .rtf).It works fine when run as a concurrent program.
    But if we follow the standard navigations ( Inquire/View document ) generates the standard report only.
    If any body has worked on similar type of issue anytime please let me know.
    Thanks in advance.
    Regards,
    Baldeep
    9880054721
    [email protected]

    We are using r12-12.1.1.
    Still this bug is not rectified(6806428). Oracle has taken up new Enhancement request 9264442.
    Funny that it will rectified in next version .
    This db flaw in india localization which doest allow to pick sum of each taxes.
    Edited by: |SN| on Jan 21, 2010 10:46 PM

  • How to force a Custom Layout in the links sent by e-mail ?

    Hi everyone,
    For customizing the final user´s view for Discussion Groups,
    I created a custom Layout Set "myDiscussionGroupsContributor"
    that references a custom Collection List Renderer
    "myDiscussionGroupWithoutTopicsContributorCollectionListRenderer"
    that references a custom Command "my_join_discussion_thread_contributor"
    that has a custom Layout Set assigned "mySingleDiscExplorerContributor".
    When accessing the discussions via the final users it works fine
    (I´ve already corrected the "Back" link problem acording thread
    problem with discussion group contributor iview)
    The problem is that when I send a discussion via e-mail
    to another user using the "send to" command,
    the received link opens the discussion using the default
    "DiscussionGroupsContributor", in fact, the e-mail´s HTML code
    contains the property "rndLayoutSet=SingleDiscExplorerContributor"
    as noted in the following href element:
    href="http://myportal:50000/irj/servlet/prt/portal/prtroot/
    com.sap.km.cm.navigation/discussiongroups/
    80b935d9-90a8-2810-17a6-c88c15fd350b/
    324e1175-98a8-2810-16a2-ee1c1f9c54bc.dsc?
    StartUri=/discussiongroups/80b935d9-90a8-2810-17a6-c88c15fd350b/
    324e1175-98a8-2810-16a2-ee1c1f9c54bc.dsc&
    rndLayoutSet=SingleDiscExplorerContributor&scHeight=300&
    scWidth=220&scPostListWidth=500" target=_blank
    The same happens with the link in the subscriptions list.
    Does anybody know how to set the layout in these links ?

    Hi all,
    I solved the problem, so here I post the steps for the solution I found.
    1) Modify the Object Type Definitions:
    In the CM Repository there is a folder root > etc > oth.
    There you have to change the LayoutSet settings in the following files
    (I don´t know if it is necessary to modify all of them):
         - discussion_post.oth
         - discussion_topic.oth
         - discussion.oth
         - discussiongroups_items.oth
         - discussionPostType.oth
         - discussionType.oth
         - dscGroupsCollType.oth
         - dscGroupsItemsType.oth
    2) Then you have to reload de OTH settings:
    In the Content Management configuration (System Administration >
    System Configuration > Content Management)
    go to User Interface > Debugging Settings and edit the configuration.
    Add your user id to "UI Superusers" then enable
    "Enable Rendering Information" and save.
    Then go to a KM and clic on "Rendering Information"
    (If the link doesn´t appear, refresh your window).
    A new window opens, clic in "OTH-Overview"
    and then in the new window click on "Reload".
    Finally close all popup windows and go to the
    Debugging Settings again to disable the checkbox
    "Enable Rendering Information"
    For further information you can read:
    http://help.sap.com/saphelp_nw04/helpdata/en/02/e4e25538f7274eb08b317751f2f04b/frameset.htm
    and
    http://help.sap.com/saphelp_nw04/helpdata/en/f4/2c6b2089cc784bb384a7ea058de50d/frameset.htm
    I hope someone find this thread useful.
    Daniel Sacco

  • How do I create a placeholder image in a custom layout?

    I have a custom layout defined for a photo book, and I want to have a box on the layout where I can easily drag/drop a photo from Finder onto each page.
    On my layout, I created a shape and dropped an image into it. This results in the following tooltip on both the layout editor and on the pages using the layout:
    "This image is a placeholder. Drag a new media file here to replace it."
    And with that shape selected, if I go to Format, Advanced, the option "Define as Media Placeholder" *is* checked.
    But when I go to a page using this new layout and attempt to drag a JPEG file on top of the placeholder, a new photo is created on the page rather than replacing the placeholder. This means I have to go set the wrapping, size, placement, etc. of the photo with each page.
    What am I doing wrong?

    Good question. Just figured it out myself. I'm going to quote from http://www.davidebarranca.com/2012/04/ibooks-author-fullscreen-images/:
    In order to successfully transform a picture/movie within a master page into a placeholder you must select it, then 1) Format – Advanced – Define as Media Placeholder. 2) From the Inspector panel, select the Layout inspector and below Layout Object select the Editable on pages using this layout checkbox. If you forget this checkbox, the placeholder won’t work.

  • Grid with File Preview (custom layout) in Acrobat X Pro Portfolios

    In Acrobat 9 Pro, there was a Portfolio layout called Grid with File Preview. We use it as our primary layout for PDF portfolios because it allows users to rapidly view PDFs within a portfolio. This was our primary reason for using Portfolios. Unfortunately, this important feature was removed in Acrobat X Pro resulting in clunky and very slow PDF viewing within a portfolio.
    Is there a custom layout which emulates Grid with File Preview?
    Thanks in advance.

    PDF Portfolios arrived out of the blue with Acrobat 9 and have been somewhat of an experiment - Acrobat contains some to get you started, but by also releasing the SDK it was hoped that the Flex programming community would have provided an ecosystem to support Acrobat users who wanted more choice - so just as you can buy or download hundreds of  templates for websites, you could find them for Portfolios too.
    Unfortunately it hasn't happened, and the technological landscape  has changed dramatically in the past three years - the rise of HTML5, dominance of tablets/iOS, security concerns and  Adobe's repositioning of Flash in the marketplace have all affected the commercial viability of Flex as a career, and consequently the availability of free third-party Portfolio layouts. It would have been nice to see a vibrant community of people sharing their designs, but the reality is that the majority of custom PDF Portfolios are created for enterprises as part of their brand identity, and there is an obvious cost involved in hiring one of the small number of expert programmers (of which Joel Geraci is the #1) to do the work.
    Adobe has never claimed that the layouts which ship with Acrobat were the best/only way to do things - just as with the default presets in Lightroom, they're examples of what can be done. With Acrobat X it became easier for non-programmers to style the layouts (via Themes) but there's no escaping the basic fact that making a layout itself is a Flex programming job, and not one you'd attempt as your first chunk of code.
    When Acrobat 9 launched, I saw pretty equal levels of complaints that the bundled layouts were too boring and too flashy. The target was shifted in Acrobat X to a less corporate style, but again people loved and hated them in equal measure. Given how much work is involved in writing and testing each layout, you can't expect Adobe to release a version for everyone.
    There were legitimate  reasons why the bundled layouts from A9 weren't included in AX. Speaking personally I don't expect my assessment to change: Portfolios may stick around, they may not - it depends on a mountain of bigger questions about Web standards, device popularity, politics and economics which Adobe have no control over.

  • Custom Layout for FBL1N (Open Vendor Items)

    Hi All,
    I would like to create a custom layout for the List Output.  Currently there is only options as to display the Standard Local currency, I would like to include the value for the Document Currency (Transaction Currency) as well.  Does anyone have come across this before?  Thanks.
    Thanks.

    Hi,
    Creating a layout for any report is very easy.
    Go to TCODE FBL1N, in the output screen, below the menu options, you will find few buttons. you will find the button select layout, click on any one layout, and then click on the button select fields and copy the hidden fields from the select fields option,  add the fields you wish to add and then save the layout with a new name. Or you can also go through menu options - Settings ==> Special Fields - Include your special fields from the available tables. (This is cross client configuraiton)
    hope this helps
    regards,
    radhika

  • Customized layout and data of the standard PO print Document

    I have developed a customized purchase order with Oracle Reports RDF file (to generate the XML) and BI Publisher template. I registered my Publisher template with the Document Type "Standard Purchase Order". When I open the Purchase Order using PO Summary Form drop-down menu: Inquire -> View Document, it shows my customized layout but without any data.
    I wonder how do I set up so that my RDF file will be executed alongside to generate the data needed for the layout.
    Thanks,
    Mike

    Hey can you please reply if this is applicable for 11i also..

  • Search result category with a custom layout set?

    Greetings,
    I've created a nice little search IVIEW with a custom search options set that will display the document category (taxonomy) in the search result (if the resulting document is categorized, of course.)  Works great.  However there is one little problem.  The categories in the search results are hyperlinked and when you select one, you get a new window with the taxonomy rendered in the default layout set (the ConsumerExplorer I think.)  Not good.  I need this displayed in a custom layout set.
    Any ideas how to make this hyperlink use a custom layout set without changing the default?
    Regards,
    Paul Federighi

    Hi Paul,
    As per my knowledge of the basic s of layout sets and iviews.
    You want to change the layout set of the iview(window) which opens when u click the hyperlink.
    You should do this:
    1)Make a new layout set by customizing the default one.
    2)If the iview opening is a standard iview then go to its properties and change the Layout set value to ur new layout.
    Please revert in case of issues.
    I hope it helps.
    Regards,
    Sumit

  • Report with custom layout - formatting conditions

    Hi,
    There's a report with custom layout. What I need is to format some cells depending on the data they contain(like different background color). There's a tab named "Formatting Conditions" which should be meant for doing this and it works perfectly when report has tabular layout. But nothing happens in case of custom layout. Should this be done then in the "Report Layout Editor" and with Javascript? Portal version is 3.0.9.8.0.
    Thanks in advance,
    Madis

    Hi,
    Some condtions like background color do not work in custom mode reports. This is because in case of custom reports the table html is specified by the user and the report renderer has no control over it.
    Hope this helps.
    Sunil.

  • How to migrate Stellent 7.5.1 custom layout component to OCS 10gR3

    Hi,
    I am in the process of upgrading stellent 7.5.1 to OCS 10gR3. There is a custom layout component in 7.5.1 wanted to find out how can I migrate the layout component. As probably there are changes in 10gR3 so want to find out how to migrate the custom layout component and any changes required before migrating to 10gR3.
    Thanks.

    Hi
    am putting out the steps needed for upgrading an existing CS instance from version 7.5.1 to 10gR3. Its basically a 2 step process where we use Configuration Migration Utility to migrate the CS structure and Archiver to migrate the existing contents. The steps are as follows :
    1. Install a new CS 10gR3 instance on the server and configure it as per the install guide.
    2. Verify that the basic functionalities for the newly installed instance is working fine by doing some simple tests like checkin ,checkout , update etc. Then upgrade the CS to the latest patchset level which can be downloaded from http://updates.oracle.com/download/6907073.html.
    3. Install the latest version of Configuration Migration Utility component (which is found in the same uprgade patch set ) on both the 10gR3 CS (target) instance and the 7.5.1 CS (source).Enable them on both the CS instances and restart the same.
    4. Run the Configuration Migration Utility on the source CS and download the CMU Bundle created on it.
    5. Upload the CMU Bundle created in previous step to the Target CS and import the configurations from that.Verify that the CMU process is completed successfully on the Target CS instance.
    6. Create a new archiver instance on the Source CS and export all the contents in that.
    7. Open the Archiver Applet for the target CS instance and then Point the collections to the collections.hda of the source CS instance so that we can import the contents. Start the Import process on target server.
    8. Once the CMU and Archiver Process are completed then your 10gR3 CS would be an exact replica of the Source 7.5.1 Instance.
    You may also go through System Migration Guide to get more understanding on the Migration / Upgrade processes.
    Hope this helps
    Thanks
    Srinath

  • Problem to set the custom layout as the default layout in std. transaction

    Hi all,
    I want to change the standard layout that is displayed in a standard transaction (EL31) as default. I want few more fields of the structure also to be displayed in the default layout of the standard transaction. I have made a custom layout that i want to be displayed but cant make that layout as the default layout for all users. Please suggest me some way to make the custom layout as the default layout for a standard transaction.

  • How to give link between 2 customized layout in f110 transactions.

    Hello Abapers,
    I am developing customized layout for f110 transaction.I have developed layour for cheques as zcheques and for payment advice,i have developed layout as zpayadvice.When i am running f110 transaction..it is giving output of cheques only,it is not giving payment advice report.when I am using standard prenumbered cheques form and it is diplaying my customized layout of payment advice(zpayadvice)..this is my porblem..Is there any interlink between customized layouts in f110 transaction.how can i solve this problem.
    This is very urgent for me.
    waiting for ur favourable replies.
    Regards
    Maruthi.

    The SelectOneChoice section is:
    <af:selectOneChoice value="#{bindings.ProcessId1.inputValue}"
    label="#{bindings.ProcessId1.label}"
    autoSubmit="true" id="ProcList"
    showRequired="true">
    <f:selectItems value="#{bindings.ProcessId1.items}"/>
    </af:selectOneChoice>
    and the binding list:
    <list StaticList="false" ListOperMode="0" IterBinding="NameViewIterator"
    ListIter="ProcessListIterator" id="ProcessId1" NullValueFlag="1"
    NullValueId="ProcessId1_null">
    <AttrNames>
    <Item Value="ProcessId"/>
    </AttrNames>
    <ListAttrNames>
    <Item Value="ProcessId"/>
    </ListAttrNames>
    <ListDisplayAttrNames>
    <Item Value="ProcessName"/>
    </ListDisplayAttrNames>
    </list>
    Do I need to change the format of SelectOneChoice to add "for each"?
    Message was edited by:
    [email protected]

  • Uccx 7 custom layout - outbound campaigns

    hi, i created a custom layout, now how do i make for the outbound campaings use my custom layaout? by default the outbound campaigns are using de OODefault. i  can not modify the default because i need this for another outbound campaign also.
    thanks

    Glenn,
        Are all of the contacts and the UCCX server in the US or overseas?  I'm not completely sure what you are asking about presenting the call.  The dialer in UCCX is not a predictive dialer but instead a presentation based dialer where the agent is presented with the call and then has to disposition it.  There isn't a way to change this in UCCX, only in the UCCE product line.  Can you elaborate a bit on what you are doing?  Also, can you either upload the MIVR logs from the period when you were trying to dial or read through them and see what errors are being presented?  These logs are usually pretty easy to read through and you should be able to figure out the exact failure cause.
    Regards,
    Robert W. Rogier

Maybe you are looking for

  • OSX Lion won't boot after Bootcamp installation interrupted

    Hello, I started a Bootcamp installation on my OSX Lion Mac Pro. Once I realized that I could only use Windows 7, I had to hold off on the installation until I located my Windows 7 disk. I had set the Bootcamp partition size to 100 GB on a 500 GB Dri

  • Validation for Select-Option - Issue

    Hi Experts!! I have a select-option s_field on which I have written a validation under AT SELECTION-SCREEN. Now, the problem is that, if validation fails in second line of s_field, then to change it when we click on Extension, it's not allowing to en

  • UNCOMPRESSED 10 BIT QT WON'T PLAY

    Hi, I'm playing out some shots at Uncompressed 10 Bit 4:2:2 (with QT Conversion in Final Cut Pro) for someone to do some effects on, but the finished shots won't pay back as a Quicktime - it keeps sticking. If I scroll through frame by frame the indi

  • Why can't I get onto icloud drive

    I Keep getting asked to enter my birthday. When I go to change my birthday to the correct one I get a message asking me to update my security questions.  When I try to update my security questions I get a flag saying wrong date. After that I have no

  • H.263 avi encoding - possible?

    I have a need to create a h.263 encoded AVI video file... (For a video IVR platform). I purchased Quicktime Pro, hoping it would be able to create these files for me, but it's not as obvious as I hoped. I see I can create an h.263 encoded .mov file,