How addTween from right to left?

Here's some of my source code

    newTaskPane=new Sprite();
            newTaskPane.graphics.beginFill(0xFFFFFF,1);
            newTaskPane.graphics.drawRect(0,0,402,498);
            newTaskPane.graphics.endFill();
            addChild(newTaskPane);
            newTaskPane.x=512;
            newTaskPane.y=52;
            newTaskPane.width=0;
            newTaskPane.height=430;
            OpenNewTaskPane();

private function OpenNewTaskPane():void{
    Tweener.addTween(newTaskPane, {x:512,y:53, width:400, time:.9});
        }

How to I tweak it so that it changes the animation from right to left?

   newTaskPane=new Sprite();
            newTaskPane.graphics.beginFill(0xFFFFFF,1);
            newTaskPane.graphics.drawRect(0,0,402,498);
            newTaskPane.graphics.endFill();
            addChild(newTaskPane);
            newTaskPane.x=512;
            newTaskPane.y=52;
            newTaskPane.width=400;
            newTaskPane.height=430;
            OpenNewTaskPane();

private function OpenNewTaskPane():void{
    Tweener.addTween(newTaskPane, { width:0, time:.9});
        }

If you do not have interpolation on X and Y, they do not need to be in the tween call. Otherwise, simply reverse the width values that you use when you declare the sprite and interpolation. This should make the sprite starting 'open' and then 'close' to the left.

If you are wanting to 'open' to the left, then you must also change the entire X. X to start all the way on the right size and tween.

   newTaskPane=new Sprite();
            newTaskPane.graphics.beginFill(0xFFFFFF,1);
            newTaskPane.graphics.drawRect(0,0,402,498);
            newTaskPane.graphics.endFill();
            addChild(newTaskPane);
            newTaskPane.x=512+400;
            newTaskPane.y=52;
            newTaskPane.width=0;
            newTaskPane.height=430;
            OpenNewTaskPane();

private function OpenNewTaskPane():void{
    Tweener.addTween(newTaskPane, {x:512, width:400, time:.9});
        }

An interpolation always starts with the current values. The values of your specify in the call addTween are always the destination values.

Tags: BlackBerry Developers

Similar Questions

  • How to type Hebrew from right to left on a U.S. keyboard

    How to type Hebrew from right to left on a U.S. keyboard

    You have to enable and select the source of Hebrew entry provided by Apple.  See

    OS X Yosemite: use sources of input to type in other languages

    You must use 5 Pages (Pages 4 support of RTL scripts too bug).

  • How to write in Hebrew, from right to left, and not in the mirror?

    I have the master collection CS6 installed on windows 8

    all is well just that Hebrew writing is mirrored. How to write from right to left?

    Hi yonir,

    Please see the type Arabic and Hebrew in Photoshop

    Let us know if that helps.

    Kind regards

    Assani

  • How can I write Hebrew from right to left in Illustrator?

    How can I write Hebrew from right to left in Illustrator?

    Hi Oriya,

    Please see the thread:

    https://forums.Adobe.com/thread/1570797

    Let us know if that helps.

    Concerning

    Megha Rawat

  • How to move the code from right to left display panel

    How to move the code from right to left display panel

    You don't mention what version you have.  Go to view > uncheck the box design on the left.

    Nancy O.

  • How can I change a document linked from right to left bound without going through the software of the Middle East?

    I received a bilingual file from a client (Hebrew and English). I need to remove the Hebrew pages and let the English. My problem is that the pages are always configured to read from right to left (linked right) and every difficulty that seems to be supported only if I use the Middle Eastern version of InDesign, which I am not according to me. How can I change the direction of the link in my English version of InDesign CS6?

    I found a good Javascript post Word by substances that enables / disables the status of binding preference in both directions of law related to left-bound:

    App.documents [0].documentPreferences.pageBinding = app.documents [0].documentPreferences.pageBinding == PageBindingOptions.LEFT_TO_RIGHT? PageBindingOptions.RIGHT_TO_LEFT: PageBindingOptions.LEFT_TO_RIGHT;

  • How to configure Jdeveloper for the page from right to left - Arab

    Dear all,
    I'm using Oracle Jdeveloper 11 g, how can I display the page from right to left (Arabic language)
    and also the built in message for validation and errors, how to display it in the Arabic language.

    The best and best wishes,

    you use Trinity - config.Xml... and mention

    http://download.Oracle.com/docs/CD/E15051_01/Web.1111/b31973/ap_config.htm
    chk for righttoleft

  • How can I change an InDesign file that contains text from right to left (Arabic, Hebrew...) with InDesign CC?

    With previous versions of CS, there was a special ME (Middle East) version of InDesign that had all the necessary functions from right to left. Is there a version CC ME, or is there another solution?

    Download indesign ME CC on adobe cc computer

  • Please, I need help in this area, how to make a tree control appear from right to left?

    I'm working on the Arab project in which we use a tree control, and I want it to display its branches from right to left.

    I tried to turn, but it does not work because the disclosure triangle always appear on the left.

    I ask if there is something to the mirror tree control and ask yourself if this mirroing works or not?

    In MXML:

    <>

    itemRenderer ="RightToLeftTreeItemRenderer" / > ".

    In Actionscript:

    myTree.itemRenderer = new ClassFactory ( RightToLeftTreeItemRenderer );

  • When I write in Hebrew, from right to left the periods/quotes/points to mark the end of the sentences jump at the beginning of the sentence. Help

    I can't format a message correctly when I write in Hebrew, from right to left
    even if I press the left margin and the message starts from the left side, all points mark and end of sentences (periods, etc.) jump to the front of the sentence and quotation marks or the marks of separation, (such as hyphens), divided the lines and words leap to the front of the sentence.
    How can I change the formatting for this problem so that the recipient receives a correctly formatted e-mail?

    you use in the bidi module?

    https://addons.Mozilla.org/en-us/Thunderbird/addon/bidi-mail-UI/

  • Formatting of pages that read from right to left

    Hello

    I very often get the Japan indd files and their formatting of page to read from right to left. Whenever they give me the files, that it is already set up and it is very convenient when preparing to print or export to PDF. However, for the life of me, I was not able to understand how they were set up initially if I ever need to create a document from scratch.
    Untitled.png

    As soon as a new page is added that it adds well to the left of the last image and so on, and if I need to export to PDF PDF file has formatting and properly arrange them which one comes first.

    How could I go to set it up from scratch?

    Thank you

    This script works right to left, from left to right and vice versa.

    Copy the script and paste it to the new file in the text editor such as Notepad or TextEdit. Insert a line break, because it is a single line script.

    With TextEdit, choose Format > text and save it as a text file.

    Manually change the wish to the .jsx .txt.

    Move the file in the Scripts folder, and then double-click it.

    http://www.danrodney.com/scripts/directions-installingscripts.html

  • Arabic text from right to left - Help!

    How can I make sense of the Arabic text from right to left? After searching the net to find answers, I m just more frustrated.

    Because everyone shows a sullution that doesn´t exists in my indesign... The buttons indicating the direction of paragraph are missing in my indesign CC, and I can't seem to download the version of the Middle East of Indesign.

    Anyone, please help me. Having a deadline tomorrow.

    Kind regards

    Reddhare

    To install another version, in your Arabic case, you have to CC app and change the language of the App. Then you need to install them again. Don't uninstall previous language installs. You need to install extra! The necessary plugins are added in the program folder.

  • Text from right to left (Arabic, Hebrew, Persian) seems not to be available in Indesign CS6

    Text from right to left (functions supporting Farsi, Hebrew and Arabic) is not currently available in Indesign CS6. However, these features are described in the InDesign manual in several places.

    Why describe it the manual and the software didn't do it?
    CS6 was advertised as having the support of Middle Eastern languages.

    I some how get the wrong version of the CS6? There is an installation option that I forgot?

    The problem exists in both my Mac and my version of Windows.

    (Mac OS10.6, Win7)

    Thank you!

    You have probably installed the English version. If you are a CC subscriber, you can change your language settings and download the ME version.

  • entered in the row area or webb research is all backwards, i.e. from right to left

    1. by clicking on tools causes all tabs in the row to come and go across the screen.
    2 entry online research or the web to be backward, address line that is from right to left.
    apparently caused by some malware or Trojan virus. Can't seem to remove it.
    He came on my other computer because I do not see back.
    John

    You may have hit the SHIFT key by accident while cutting text via Ctrl + X.
    You can reverse the direction of the bidi from right to left text left to right with 'Shift + Ctrl + X.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • Column number running from right to left?

    Is it possible to change the columns of FIGURES to run from right to left?
    Instead > A B C > > > must be: < < < < E D C B A
    I use Hebrew, that is why...

    There was a similar discussion: I can do an array of numbers from right to the left?

    I don't know if anything has changed since then.

Maybe you are looking for

  • HP Pavilion: Paper jams

    HP ENVY 5530. Approx. 6 months. Worked beautifully so far. No apparent reason, suddenly blocking every time. Each sheet as jams is folded at the two main corners to meet the center top, like broad arrowhead. Each sheet has low impact on the back of f

  • HP ENVY TS m6 Sleekbook: HP ENVY TS m6 Sleekbook will prepare the auto repair when booting with Seagate Backup Plus 2 to

    I had problems for some time with my HP ENVY when you restart.   I have a backup Seagate more Desktop 2 TB connected via a USB hub.    When it is connected and restarting the computer, it goes to the screen to "prepare the AutoFix.   So I have to unp

  • easy question for all

    Hello WHEN I BUY A PC/LAPTOP DO I RIGHT FOR THE WINDOWS CD (THAT IS TO SAY WINDOWS XP CD O WINDOWS VISTA CD) WITH THE PRODUCT KEY. AM ASKING CAUSE WHERE AM FROM, THEY DON'T GIVE YOU NOTHING AND WHEN YOUR COMPUTER IS NOT GOING OR SE BREAKS DOWN AND HI

  • I am running two versions of Windows?

    In my control panel, it says my CPU is 900 MHZ, but when I hit F2 when starting it says 495 MHZ. A friend said that I can run two copies of Windows and its my processor halfway split. Is this possible? If so, how can it be addressed? I have a HP Pavi

  • Adobie flash player not working not - help!

    When you play it is slow and freezes for a few seconds, this is a slower operation. Games does not work correctly.