Modify Elastic parameters

I'm useing "Elastic" as a easer for a Move animation.  The elastic bounces a bit too much for my taste.  Is there a failry easy way to modify the amount of "bouncing" it does?  (I'm going to post this as another question as well, regarding the public variables)
mxml CODE to define animation/effect:
 <fx:Declarations>
 <s:Move id="moveRight" target="
{blackBox}"duration="
1200"xTo="
{changeX}"yTo="
{changeY}"easer="
{stretchIt}" />
 <s:Elastic id="stretchIt" />
  </fx:Declarations>
AS CODE:
// incrementor variable to keep track of where the infoBox is currently[Bindable] public var currMS:uint = 1;[
Bindable] public var changeX:Number = 0;[
Bindable] public var changeY:Number = 0; 
// Keeps track of the current MileStone // main function including case statementspublic  
function chooseMS(event:MouseEvent):void{
switch(currMS){
case 1: // to Milestone 2 
//blackBox.move(50,130);currMS++;
changeX = 50;
changeY = 130;
wgText.text = ebs_newMS2;
ow2.visible =
true;wh2.visible =
true; 
moveRight.end();moveRight.play();
break;
...  the rest of the switched cases are here...

I extended Elastic and override the ease() function.
To achieve the effect you see in the sample code, I changed the amplitude to 1 and the period to .6.
If this post answers your question or helps, please mark it as such. Thanks!
http://www.stardustsystems.com
Adobe Flex Development and Support Services
------------- myComponents/MyElastic.mxml -------------
<?xml version="1.0" encoding="utf-8"?>
<s:Elastic xmlns:fx="http://ns.adobe.com/mxml/2009"
  xmlns:s="library://ns.adobe.com/flex/spark"
  xmlns:mx="library://ns.adobe.com/flex/mx">
  <fx:Script>
    <![CDATA[
      import mx.effects.easing.Elastic;
      private var totalChange:Number = 1;
      private var duration:Number = 1;
      private var amplitude:Number = 1;
      private var period:Number = .6;
      override public function ease(fraction:Number):Number
        return mx.effects.easing.Elastic.easeOut(fraction, 0,
          totalChange, duration, amplitude, period);
    ]]>
  </fx:Script>
</s:Elastic>
------------- test.mxml (main app) -----------------
<?xml version="1.0"?>
<s:Application
  xmlns:fx="http://ns.adobe.com/mxml/2009"
  xmlns:mx="library://ns.adobe.com/flex/mx"
  xmlns:s="library://ns.adobe.com/flex/spark"
  xmlns:comp="myComponents.*"> 
  <fx:Declarations>
    <s:Bounce id="bounceEasing"/>
    <comp:MyElastic id="elasticEasing"/>
    <s:Move id="moveRight" target="{myImage}"
      xBy="500" duration="2000" easer="{elasticEasing}"/>
    <s:Move id="moveLeft" target="{myImage}" xBy="-500"
      duration="2000" easer="{bounceEasing}"/>
  </fx:Declarations> 
  <s:Panel id="examplePanel"
    title="Bounce and Elastic Effect Example"
    width="800" height="75%">
    <s:HGroup id="detailsBox" width="50%" top="5" left="5">
      <s:Label width="99%" color="blue"
               text="Click the buttons to watch the effect."/>
      <s:Button label="Move Right" bottom="10" left="5"
                click="moveRight.end();moveRight.play();"/>     
      <s:Button label="Move Left" bottom="10" left="100"
                click="moveLeft.end();moveLeft.play();"/>
    </s:HGroup>   
    <mx:Image id="myImage" top="40" width="200"
              source="@Embed(source='assets/logo.jpg')"/>   
  </s:Panel>
</s:Application>

Similar Messages

  • Need help in modifying mapping parameters of out the box mapping

    Hi There,
    I am a new bee to dac.
    Need help in modifying mapping parameters of out the box mapping, which is invoked by DAC task.
    We got a requirement to edit mapping parameter. When I go and see parameter under mappings tab in a mapping, I could not see any values in it.
    But when I set any value, and validate it. It is successful.
    Is it right way to do it?
    What my concern is, When I initially go and see parameter values under maapings tab in a mapping, they are blank.
    Where is it storing these values?
    Thanks,
    Rag

    If you modify mapping then u have to create new task in dac and dac itself craete parameter file at run time. if you want to add more parameters then do it in dac system parameters tab.
    Thanks
    Jay.

  • How to modify Adapter parameters in PI 7.1 EHP1 ? using NWA

    Hi,
    Please advise me how to modify adapter service parameters in PI 7.1 EHP1 using nwa ?
    in the previous version 3.0 and 7.0, i can use visual admin ---> cluser -
    > services and i can find all the adapter service and modify the parameters.
    Thank You and Best Regards
    Fernand Lesmana

    Hello Fernand
    You can use the following alias to link directly to the PI adapter services
    http:<hostname>:<port>/nwa/sys-config
    See the link below for further details on this.
    Java Service Properties for the Adapter Framework 
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/9f/cbd1413f389c39e10000000a155106/content.htm
    Regards
    Mark

  • Modify Sort Parameters Programmatically

    Hello
        I have a Crystal Report 2008 created with the Group Sort in the report saved to "No Sort". I have a VB.Net windows form application that reads an input file that contains several report parameters including sort options for this report. I need to open the Crystal Report and modify the original sort using the sorting options from the input file. Some of the sort options involve TopN sorting.
       I can view the SortField object properties in the ReportDocument.DataDefinition.SortFields collection for each sort group. But all the properties are read-only. I also noted there is no "Add" option in the SortField collection.
       I need to find a way to programmatically change a group's sortField (or modify another object if SortField is not the right approach) from a "No Sort"  to a "TopN sort".
       Any help or suggestions are appreciated.

    It is not possible to add sort fields, but you can modify thse. See the kbase [1201611 - Can you add report sort field using Visual Studio .NET 2005 with Crystal Reports XI R2|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] for more details.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Tween class animations - modifying elasticity

    I am fairly new to Flash, and couldn't find the help I needed through a search.
    I am using the Tween class to move objects when buttons are clicked. I am using elastic easing as the animation ends, and it looks ok. But am I able to modify the elasticity at all? I like the effect, but it is a little strong and I would like to reduce the bounce at the end.
    Can I do this, or by using this method of animation am I losing the fine control that I would have by using the timeline and I just have to suck it up?

    Well the easing you provide for the tween is just a reference to a function. So you can search the web and find your own functions. Robert Penner is famous for a large number of really great easing methods. Or you can just muck a bit with the built in functions. I put two small clips on the stage, clip0 and clip1. Then this code:
    import fl.transitions.*;
    import fl.transitions.easing.*;
    var myTween0:Tween=new Tween(clip0,"x",Elastic.easeOut,100,500,2,true);
    myTween0.start();
    var myTween1:Tween=new Tween(clip1,"x",myEase,100,500,2,true);
    myTween1.start();
    function myEase(t:Number, b:Number, c:Number, d:Number):Number {
    return Elastic.easeOut(t, b, c, d, .5, .9);
    The the top one is the default and the lower one is my "modified" version. If you check out the help files for the Elastic classes easeOut method it requires the first four arguments (time, start value, end value of the prop, and duration) as do all tween functions. But the last two a and p are specific to elastic easing. The first is the amplitude of the sine wave and p is the period of the sine wave. I don't know what the units are on either of those, but I'm guessing pixels (or twips) and either seconds or milliseconds. So you could just fiddle with those numbers.
    I'm not sure if there is anyway to send those numbers directly through the Tween constructor -- regardless of whether I used the built in functions or made my own.

  • Crash - CR 2008 crashes constantly when trying to modify query parameters

    Hello,
    When i create a query with 2 parameters of type Date or Date/Time.
    If I try to modify the query sometime after, Crystal Report crashes all the time.
    If i create only 1 parameter of type Date or Date Time, I can modify the query without any problems.
    Any idea why?
    Is there a workaround?
    Thanks

    Install SP2 and test again. If it's still an issue re-post your question.

  • Practical to modify app parameters for deployed app (using Builder, perhaps)?

    I see that it's very convenient to deploy a WAR file to WebLogic using WebLogic
    Builder. It's also easy to edit the init parameters of a WAR file and redeploy
    it.
    I'm wondering, however, how practical it will be to dynamically edit application
    parameters and redeploy in a production environment.
    For instance, if I'm in my development environment, I will definitely have a WAR
    (exploded or not) in my build environment that I can edit and deploy.
    In production, however, we don't necessarily have the original WAR that was referenced
    in the deployment, we have what was installed into WebLogic. Is it practical to
    run WebLogic Builder on an already installed WAR file, edit it, and then redeploy
    it? Would we instead have to store the WAR file to be deployed into a "staging"
    environment before it is actually deployed? Any changes made to the WAR by the
    administrator would be made to the staged WAR file and then redeployed. I guess
    the "staging" filesystem would have to be reachable by the host where the administrator
    runs WebLogic Builder.

    "David M. Karr" <[email protected]> wrote in message
    news:[email protected]...
    >
    "Sanjeev Chopra" <[email protected]> wrote:
    "David M. Karr" <[email protected]> wrote in message
    news:[email protected]...
    I see that it's very convenient to deploy a WAR file to WebLogic usingWebLogic
    Builder. It's also easy to edit the init parameters of a WAR file andredeploy
    it.do you mean servlet init-param ?Both that and context init parameters.
    I'm wondering, however, how practical it will be to dynamically editapplication
    parameters and redeploy in a production environment.
    For instance, if I'm in my development environment, I will definitelyhave
    a WAR
    (exploded or not) in my build environment that I can edit and deploy.
    In production, however, we don't necessarily have the original WARthat
    was referenced
    in the deployment, we have what was installed into WebLogic. Is itpractical to
    run WebLogic Builder on an already installed WAR file, edit it, andthen
    redeploy
    it?
    Would we instead have to store the WAR file to be deployed into a
    "staging"
    environment before it is actually deployed?If the .war is deployed with staging mode as "stage", you should have
    no
    problem modifying the master copy and then doing a redeploy. The redeploy
    operation will take care of copying the modified .war to the staging
    areas
    of all targets.Ok, but what I'm wondering is if this "master copy" that you refer to isin a
    location that we set up outside of WebLogic, or whether that is where thedeployed
    WAR gets stored. I'm trying to determine whether WARs that get deployedwill first
    have to be stored outside of WebLogic in a directory that we control,which will
    be on a filesystem that will be accessible by the administrator runningWebLogic
    Builder (using Samba, perhaps).The 'master copy' is the path specified to the deployment tool (deployer,
    admin console) when you deployed the app to WLS. So yes, if thats not
    available to the user running builder, they have to keep a copy, modify it
    and make it available to the admin.

  • Modify HttpServletRequest parameters

    Hi all
              How can I modify a parameter value of the HttpServletRequest object
              inside a servlet and then forward it to another servlet ?
              Warren
              

    Parameters are not modifiable. You can put information in a request
              attribute though, if the second servlet knows to look there first.
              // first servlet
              request.setAttribute("name", value);
              // second servlet
              value = request.getAttribute("name");
              if (value ...
              Cameron Purdy, LiveWater
              "Warren Li" <[email protected]> wrote in message
              news:[email protected]..
              > Hi all
              >
              > How can I modify a parameter value of the HttpServletRequest object
              > inside a servlet and then forward it to another servlet ?
              >
              >
              >
              > Warren
              >
              

  • Cannot create or modify global parameters

    Hello,
    when I try to add global parameters, I can do so and they appear in the list in the global parameters dialog. When I close the dialog and open it again, the newly created parameter has vanished. Same for changes on existing parameters, the changes are not applied.
    What's the reason for that?
    Kind regards,
    Matthias

    Hi,
    these are the NW configurations:
    System XMT      
    Message Server
    Host:      xmtdb01a
    Port:      3900
    Enqueue Server
    Host:      xmtdb01a
    Port:      3200
    Database
    Name:      XMT
    Host:      xmtdb01a
    Type:      Oracle (Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production With the Partitioning and Data Mining options)
    Software Components      all components...
    Name      Version      Applied
    sap.com/SAP-JEECOR      7.00 SP15 (1000.7.00.15.0.20080216073628)      20080408151839
    sap.com/SAP-JEE      7.00 SP15 (1000.7.00.15.0.20080216073456)      20080408151802
    Instance JC01      All processes running
    Host:      xmtdb01a
    OS:      Linux (amd64) 2.6.5-7.244-smp
    dispatcher      Running
    VM      system properties...
    PID:      27981
    Name:      IBM J9SE VM
    Vendor:      IBM Corporation
    Version:      2.2
    VM Parameters
    Cluster
    Node ID:      17346800
    Kernel Version:      7.00 PatchLevel 110760.44
    HTTP Port:      50100
    HTTPS Port:      50101
    P4 Port:                      50104
    Telnet Port:      50108
    server0      Running
    VM      system properties...
    PID:      27982
    Name:      IBM J9SE VM
    Vendor:      IBM Corporation
    Version:      2.2
    VM Parameters
    Cluster
    Node ID:      17346850
    Kernel Version:      7.00 PatchLevel 110760.44
    SDM      Running
    VM       
    PID:      27983
    SDM Port:      50118
    Cheers,
    Matthias

  • In Mail, I can't find how to modify smtp parameters for all my account, I have yosemite...

    Hello,
    I have yosemite
    if I add an imap account, I don't found how to access smtp parameter after closing and open mail app
    it is same for gmail account, once added, can't find where to modify smtp
    thanks

    Open Mail preferences. Select Accounts tab, then Accounts Information tab in the window. You can edit the SMTP server list there for all accounts.

  • RSPC How to modify additional parameters for OS command

    Hi,
    I am facing a problem updating the 'additional parameters' for OS command in RSPC (process chains). I am trying to use a pre-created OS command in the system. But the additional parameters area is greyed out. Do you know from which transaction I can update this field please ?
    Thanks for your help,
    Best regards,
    Neeraj

    Thanks, Sircar.
    Is 'sappfpar' transaction name ? Can you pls give the full name?
    Best regards,
    Neeraj

  • How to modify a part of task parameters via worklist (not all paramenters)?

    I am making a demo of showing the functions of human workflow / worklist using Oracle SOA Suite. The following process is not a real project. But I have some questions about how to modify parameters in worklist and jdeveloper. Please help me.
    I create a BPEL with human workflow. It has 2 human tasks.
    The first human task is a single approver type and the parameters contents can be modified via worklist. The user is oc4jadmin.
    If oc4jadmin rejects it, the process will go to the second human task.
    The second human task is a sequential lists of approvers type and the parameters contents can be modified via worklist. 3 users (the order is : jcooper -> jlondon-> tolstoy) can access it. The process is able to abrupt completion if anyone rejects it.
    After the process is invoked in BPEL control,
    1, oc4jadmin login worklist and modified the data, than reject it.
    2, jcooper can login worklist and changed the data, save it, and approve.
    3, jlondon login, view data, change data, and save it. However, if jlondon modified the
    My questions are as follow:
    1, If oc4jadmin rejects the task in worklist, how can I set the parameter cannot be modified and saved.
    2, schema:
    <schema attributeFormDefault="unqualified"
         elementFormDefault="qualified"
         targetNamespace="http://xmlns.oracle.com/BPEL_single_sequential"
         xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:vv="http://xmlns.oracle.com/BPEL_single_sequential">
         <element name="BPEL_single_sequentialProcessRequest">
              <complexType>
                   <sequence>
                        <element name="input" type="vv:complexType1" maxOccurs="unbounded"/>
                   </sequence>
              </complexType>
         </element>
         <element name="BPEL_single_sequentialProcessResponse">
              <complexType>
                   <sequence>
                        <element name="result" type="string"/>
                   </sequence>
              </complexType>
         </element>
    <complexType name="complexType1">
    <sequence>
    <element name="pid" type="string"/>
    <element name="ptitle" type="string" maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    </schema>
    In the worklist, the user can add another pid and leave the ptitle empty. In the schema, the ptitle (minOccurs=1) should appear at least once. How can I set that, if the user add another pid and must add at least one ptitle before saving it?
    3, One element likes gender=male/female. In the worklist form, the default graphic component is an input field. How can I set the component to a dropdown list and it highlight value.
    4, The default form is jsp file and it is beautiful. Could I make a jspx page and replace the jsp page? How to replace the jsp to jspx?
    5, If I use sequencial approver type for the human task, how can I set various page layout? For example, user 1 can view and modified all parameters. User 2 can view some part of the parameters and changes it. User 3 can view all paramters but can just modified some of them?
    Thanks a lot!
    Edited by: [email protected] on 2009-3-10 上午12:39
    Edited by: [email protected] on 2009-3-10 上午12:44
    Edited by: YE

    Hi,
    all what you asked about can be done through java script.

  • How to modify Oracle Initialization Parameters in Oracle RAC db

    I would like to modify the AUDIT_SYS_OPERATIONS and SQL92_SECURITY parameters to TRUE. I have a two node Oracle RAC db.
    Should I stop the clustering services, modify the parameters on both nodes and restart them? Or modify the parameter on one node (node1), restart node1, restart node 1 (no modification)?
    ALTER SYSTEM SET AUDIT_SYS_OPERATIONS = TRUE scope=SPFILE;
    Thanks.

    The command
    ALTER SYSTEM SET AUDIT_SYS_OPERATIONS = TRUE scope=SPFILE SID='*' ;is the syntax. However, in RAC using an SPFILE the "SID='*'" specification is the default. IF you want to change a parameter for the local instance (eg PROD1) that you are connected to , specify SID='PROD1' ;
    The documentation states that if you specify a remote instance (eg PROD2) Oracle changes the in-memory value on the remote instance.

  • OIM 11g R1 - Modifying a Resource Erases Custom Process Task ???

    I've created a Generic Resource in OIM that uses the Database Applications Table connector 9.1.0.5.0.
    Then I add my own process tasks through Design Console under "Process Management -> Process Definitions". On each custom process task I've attached my own custom adapters, which I created through "Development Tools -> Adapter Factory" in Design Console. These custom adapters use methods from my Java code. My Java jar file is located in "Oracle_IDM1/server/JavaTasks".
    Now here is the issue:
    Whenever I modify this resource in OIM under "Configuration -> Manage Generic Connector" (E.g Changing reconciliation type from Full to Incremental), all my custom process tasks get deleted.
    What is the reason for this? Is there a solution for this problem?

    This is indeed a major flaw for GTC. Below I found this issue in a Oracle doc.
    Doc Link: http://docs.oracle.com/cd/E14571_01/doc.1111/e14309/aptrouble.htm
    Below is a description of this issue from the Oracle documentation
    Summary:
    Customization work done on objects of a generic technology connector would be overwritten if you perform a Manage Generic Technology Connector operation.
    Description:
    You can use the Design Console to customize connector objects that are automatically created during generic technology connector creation. However, after you customize connector objects, if you perform a Manage Generic Technology Connector operation, then all the customization done on the connector objects would be overwritten. Therefore, Oracle recommends that you to apply one of the following guidelines:
    Do not use the Design Console to modify generic technology connector objects.
    The exception to this guideline is the IT resource. You can modify the parameters of the IT resource by using the Design Console. However, if you have enabled the cache for the GenericConnector and GenericConnectorProviders categories, then you must purge the cache either before or after you modify IT resource parameters. See "Purging the Cache" in the Oracle Fusion Middleware System Administrator's Guide for Oracle Identity Manager for information about running the PurgeCache utility.
    If you use the Design Console to modify generic technology connector objects, then do not use the Manage Generic Technology Connector feature to modify the generic technology connector.
    Connector objects that are automatically created are not deleted even if the generic technology connector creation process fails.

  • Issue with passing parameters through Java-JSP in a report with cross tab

    Can anyone tell me, if there's a bug in Java SDK in passing the parameters to a report (rpt file) that has a cross tab in it ?
    I hava report that works perfectly fine
       with ODBC through IDE and also through browser (JSP page)
    (ii)    with JDBC in CR 2011 IDE
    the rpt file has a cross tab and accpts two parameters.
    When I run the JDBC report through JSP the parameters are never considered. The same report works fine when I remove the cross tab and make it a simple report.
    I have posted this to CR SDK forum and have not received any reply. This have become a blocker and because of this our delivery has been postponed. We are left with two choices,
       Re-Write the rpt files not to have cross-tabs - This would take significant effort
    OR
    (ii)  Abandon the crystal solution and try out any other java based solutions available.
    I have given the code here in this forum posting..
    CR 2011 - JDBC Report Issue in passing parameters
    TIA
    DRG
    TIA
    DRG

    Mr.James,
    Thank you for the reply.
    As I stated earlier, we have been using the latest service pack (12) when I generated the log file that is uploaded earlier.
    To confirm this further, I downloaded the complete eclipse bundle from sdn site and reran the rpt files. No change in the behaviour and the bug is reproducible.
    You are right about the parameters, we are using  {?@Direction} is: n(1.0)
    {?@BDate} is: dt(d(1973-01-01),t(00:00:00.453000000)) as parameters in JSP and we get 146 records when we directly execute the stored procedure. The date and the direction parameter values stored in design time are different. '1965-01-01' and Direction 1.
    When we run the JSP page, The parameter that is passed through the JSP page, is displayed correctly on the right top of the report view. But the data that is displayed in cross tab is not corresponding to the date and direction parameter. It corresponds to 1965-01-01 and direction 1 which are saved at design time.
    You can test this by modifying the parameter values in the JSP page that I sent earlier. You will see the displayed data will remain same irrespective of the parameter.
    Further to note, Before each trial run, I modify the parameters in JSP page, build them and redeploy so that caching does not affect the end result.
    This behaviour, we observe on all the reports that have cross-tabs. These reports work perfectly fine when rendered through ODBC-ActiveX viewer and the bug is observable only when ran through Java runtime library. We get this bug on view, export and print functionalities as well.
    Additionally we tested the same in
        With CR version 2008 instead of CR 2011.
    (ii)   Different browsers ranging from IE 7 through 9 and FF 7.
    The complete environment and various softwares that we used for this testing are,
    OS      : XP Latest updates as on Oct 2011.
    App Server: GlassFish Version 3 with Java version 1.6 and build 21
    Database server ; SQL Server 2005. SP 3 - Dev Ed.
    JTds JDBC type 4 driver version - 1.2.5  from source forge.
    Eclipse : Helios along with crystal libraries directly downloaded from SDN site.
    I am uploading the log file that is generated when rendering the rpt for view in IE 8
    Regards
    DRG

Maybe you are looking for

  • Error on adding A/P Invoice

    Hi Experts, I have encountered some problem on adding A/P Invoice (copy from Goods Receipt-PO). The error is u201CInventory Account is not defined, u2018ITEM001u2019 [Message 173-77]. This item 'ITEM001' is Set by GL Account by ITEMGROUP (at ITEM Mas

  • Problem with iTunes and iPhone Music organization. PLEASE READ AND HELP!

    Hello All! I have this problem concerning iTunes and my iPhone. When I add music, and I update the Artist title to organize it in my iPhone, It shows EDITED on my mac in iTunes, but not my iPhone. I took a screen shot of what It shows. The TOP is iTu

  • To send data from a Recordset (DI) to a matrix(grid) of UI.

    Hello to all, I am creating a demo, a SQL execute with a Recordset, any problem until the moment, when I want to pass the data to one you GRID (matrix) I don't eat to make it.  it grid it it is an object of UI and the recordset of DI  as I can supple

  • Unable to share photo iPhone 5c to macbook air

    I am using an iPhone 5c on iOS 8.3 and a mackbook air. I am trying to clear some space on my phone and trying to take some photos off and add them to my macbook.  Ive tried to use photos, iPhoto, iTunes, photo sharing, dropbox and email but all I get

  • Problem with CUSTOMER_REL

    Hi, We are executing the initial download in CRM 4.0 system. When we proceed to download the relationships, BDOCs shows an strange error (althought the relationships are correctly created). The error is <b>Service that caused the error: BP_REL_CRM_TO