Commas in Number Values

Hi,
We have a requirement to show all the number fields (messagestyledtext/messagetextInput with Type-Number) in a comma separated format i.e. comma after every three digits (for currency values). what are the ways to achieve it ?
Thanks for your help.
Amit

Hello,
Please refer the below link
Formatting Currency Value
Thanks & Regards,
Raj Papdeja

Similar Messages

  • Bug in 1.5.1 Deleting number value in data grid

    Hello,
    it is not possible to set a number in a column to NULL by simply deleting the value
    DROP TABLE tab_test;
    CREATE TABLE tab_test(
    dat DATE
    ,num NUMBER
    ,var VARCHAR2(2)
    INSERT INTO tab_test (dat,num,var)
    VALUES (TO_DATE('01.01.2009','dd.mm.yyyy'),4,'ff');
    COMMIT;Open the table in SQL Developer and select data tab.
    Deleting the date value and commiting is ok
    UPDATE "RVS_FE"."TAB_TEST" SET DAT = TO_DATE('', 'DD.MM.YYYY') WHERE ROWID = 'AAA6Q0AAGAABHUlAAA' AND ORA_ROWSCN = '10443975276'
    Commit Successful
    Deleting the number value and commiting raises an error
    UPDATE "RVS_FE"."TAB_TEST" SET NUM =  WHERE ROWID = 'AAA6Q0AAGAABHUlAAA' AND ORA_ROWSCN = '10443975285'
    One error saving changes to table "RVS_FE"."TAB_TEST":
    Row 1: ORA-00932: inconsistent datatypes: expected NUMBER got DATE
    Rollback Successful
    Deleting the char value and commiting is ok
    UPDATE "RVS_FE"."TAB_TEST" SET VAR =  WHERE ROWID = 'AAA6Q0AAGAABHUlAAA' AND ORA_ROWSCN = '10443975285'
    Commit Successful
    Regards
    Marcus
    Edited by: Marwim on 26.11.2008 08:59

    Jim, I could reproduce and see the error, no change columns order.
    You can use the Marwim script's and, on the data grid, select the column DATE, delete value and commit.
    On the data grid, select the column var, delete value and commit.
    On the data grid, select the column num, delete value and commit -> get error.

  • Assigning a number value to a line from file without array

    How do you assign a number value to a line from a file? I want to use the assigned number so that the i can use random number to randomly select a line
    Example. i have the lines A,B,C,D,E
    A
    B
    C
    D
    E
    i know that a is line 1 b is line 2 so on so on
    (1) A
    (2)B
    (3)C
    (4)D
    (5)E
    so from here i would use the random number generator so that i could randomly select one of these. I already know how to code for the number generator but how would i make it so that i can access each individual line as a number?

    ya that's what im using but reguarding the code i dont think it does what im looking for. yes it does provide a random line but wen i run it multiple times it gives me the same line repeatedly. also i need to be able to refer to that line in the future so in the code the String line gets replaced each time
    BufferedReader bF = new BufferedReader(new FileReader("someFilePath"));
              String line;
              int someRandomNumber = 9;
              int counter = 0;
              while ((line = bF.readLine()) != null){
                   if (counter == someRandomNumber){
                        break;
                   counter++;          
              System.out.println(line); //line at #someRandomNumber in the file

  • Assign a number value to an mc

    hi everyone,
    so a while back I asked if it was possible to assign a number value to an mc. So I'm done my early work on it and am ready to try and integrate this function. I'll explain what I'm trying to do and I hope someone can point me in the right direction.
    I'm making a small change game. So game is split into five scenes, each scene the person will receive a receipt. The person will have change in their hand (all canadian denominations). They have to look at the receipt and the change in their hand (both mcs), and figure out if its correct. If not they drag change from another pile and place it in the hand. So here's what I'm looking at trying to accomplish. I'd like to have a check change button (simple mc). I'm guessing that each coin needs a numeric value associated with it (no clue on if or how you could do this). If the numbers add up to the predetermined bill value (so I'm guessing I'd give that a numeric value as well), i hit the check button and it'll see if the change in the hand adds up to match what the bill should. So here's where my code sits currently, still tweaking as we speak. I'm still new so be gentle on my code I know its long. If anyone knows any house keeping tips that'd be great!
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.TweenEvent;
    import com.greensock.*;
    import com.greensock.easing.*;
    import flash.media.Sound;
    import flash.display.StageScaleMode;
    import flash.events.Event;
    import flash.display.StageDisplayState;
    // listeners
    sc1.beginbutton1.addEventListener(MouseEvent.CLICK, beginbutton1buttonclick);
    bill1.addEventListener(MouseEvent.CLICK, bill1click);
    sc1.checkout1.addEventListener(MouseEvent.CLICK, checkout1click);
    bill2.addEventListener(MouseEvent.CLICK, bill2click);
    bill3.addEventListener(MouseEvent.CLICK, bill3click);
    bill4.addEventListener(MouseEvent.CLICK, bill4click);
    bill5.addEventListener(MouseEvent.CLICK, bill5click);
    sc1.repeatbutton1.addEventListener(MouseEvent.CLICK, repeatbutton1buttonclick);
    helpmenu.xbutton.addEventListener(MouseEvent.CLICK, xbuttonclick);
    bill1.billx.addEventListener(MouseEvent.CLICK, bill1billxclick);
    answermenu.xanswerbutton.addEventListener(MouseEvent.CLICK, xanswerbuttonclick);
    backbutton.addEventListener(MouseEvent.CLICK, backclick);
    helpbutton.addEventListener(MouseEvent.CLICK, helpclick);
    answerbutton.addEventListener(MouseEvent.CLICK, answerclick);
    penny1.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny5.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny6.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny7.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    dime.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    dime1.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    dime2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    dime3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    dime4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    nickel.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    nickel1.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    nickel2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    nickel3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    nickel4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    quarter.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    quarter2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    quarter3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    quarter4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    loonie.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    loonie2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    loonie3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    loonie4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    toonie.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    toonie2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    toonie3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    toonie4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    helpmenu.visible=false;
    answermenu.visible=false;
    bill1.visible=false;
    bill2.visible=false;
    bill3.visible=false;
    bill4.visible=false;
    bill5.visible=false;
    TweenMax.to(penny, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny1, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny4, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny5, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny6, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny7, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime1, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime4, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel1, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel4, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter4, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie4, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie4, 0.1, {scaleX:0.1, scaleY:0.1});
    //variable declarations
    var myTween:Tween;
    var me:Object;
              function grabMe(e:MouseEvent):void{
              me = e.currentTarget;
              me.removeEventListener(MouseEvent.MOUSE_DOWN, grabMe);
              me.startDrag();
              e.target.parent.addChild(e.target)
              var tweeny:Tween = new Tween(me, "y", Regular.easeIn, me.y, me.y-75, .04, true);
              var scaley:Tween = new Tween(me, "scaleY", Regular.easeIn, me.scaleY, 0.4, 0.05, true);
              var scalex:Tween = new Tween(me, "scaleX", Regular.easeIn, me.scaleX, 0.4, 0.05, true);
              var my_shadow:DropShadowFilter = new DropShadowFilter();   
              my_shadow.color = 0x000000; 
              my_shadow.blurY = 3; 
              my_shadow.blurX = 3; 
              my_shadow.angle = 90;   
              my_shadow.alpha = .2; 
              my_shadow.quality = 15;
              my_shadow.distance = 100;  
              var filtersArray:Array = new Array(my_shadow); 
              me.filters = filtersArray;
              stage.addEventListener(MouseEvent.MOUSE_MOVE, dragMe);
              stage.addEventListener(MouseEvent.MOUSE_UP, dropMe);
              function dropMe(e:MouseEvent):void {
              stage.removeEventListener(MouseEvent.MOUSE_UP, dropMe);
              stage.removeEventListener(MouseEvent.MOUSE_MOVE, dragMe);
              me.stopDrag();
              me.filters=undefined;
              var tweenydown:Tween = new Tween(me, "y", Regular.easeIn, me.y, me.y+90, .4, true);
              var scaley:Tween = new Tween(me, "scaleY", Regular.easeOut, me.scaleY, 0.1, 0.05, true);
              var scalex:Tween = new Tween(me, "scaleX", Regular.easeOut, me.scaleX, 0.1, 0.05, true);
              me.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
              //lockinplace(DisplayObject(e.currentTarget))
              //mainclicksound.play();
    function dragMe(e:MouseEvent):void {
              e.updateAfterEvent();
    //nav bar items
    function backclick(event:MouseEvent):void{
              answermenu.visible=false;
              helpmenu.visible=false;
    function helpclick(event:MouseEvent):void{
              helpmenu.visible=true;
              answermenu.visible=false;
              setChildIndex(helpmenu,numChildren - 1)
              TweenMax.to(helpmenu, 3, {y:350, startAt:{y:600}, ease:Elastic.easeOut});
    function xbuttonclick(event:MouseEvent):void{
              helpmenu.visible=false;
    function answerclick(event:MouseEvent):void{
              answermenu.visible=true;
              helpmenu.visible=false;
              setChildIndex(answermenu,numChildren - 1)
              TweenMax.to(answermenu, 3, {y:350, startAt:{y:600}, ease:Elastic.easeOut});
    function xanswerbuttonclick(event:MouseEvent):void{
              answermenu.visible=false;
              helpmenu.visible=false;
    //screen button items
    function beginbutton1buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase1");
    bill1.visible=true;
    TweenMax.to(bill1, 0.0, {alpha:0});
    TweenMax.to(bill1, 2, {delay:0.5, y:bill1.y+90});
    TweenMax.to(bill1, 0.5, {delay:0.5, alpha:1});
    function repeatbutton1buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase1");
    function bill1click(event:MouseEvent):void{
    TweenMax.to(bill1, 0.5, {x: 780, y:25, scaleX: 0.6, scaleY: 0.6});
    function bill1billxclick(event:MouseEvent):void{
    bill1.visible=false;
    function checkout1click(event:MouseEvent):void{
    function beginbutton2buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase2");
    bill2.visible=true;
    TweenMax.to(bill2, 0.0, {alpha:0});
    TweenMax.to(bill2, 2, {delay:0.5, y:bill2.y+90});
    TweenMax.to(bill2, 0.5, {delay:0.5, alpha:1});
    function repeatbutton2buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase2");
    function bill2click(event:MouseEvent):void{
    TweenMax.to(bill2, 0.5, {x: 780, y:25, scaleX: 0.6, scaleY: 0.6});
    function bill2billxclick(event:MouseEvent):void{
    bill2.visible=false;
    function beginbutton3buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase3");
    bill3.visible=true;
    TweenMax.to(bill3, 0.0, {alpha:0});
    TweenMax.to(bill3, 2, {delay:0.5, y:bill3.y+90});
    TweenMax.to(bill3, 0.5, {delay:0.5, alpha:1});
    function repeatbutton3buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase3");
    function bill3click(event:MouseEvent):void{
    TweenMax.to(bill3, 0.5, {x: 780, y:25, scaleX: 0.6, scaleY: 0.6});
    function bill3billxclick(event:MouseEvent):void{
    bill3.visible=false;
    function beginbutton4buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase4");
    bill4.visible=true;
    TweenMax.to(bill4, 0.0, {alpha:0});
    TweenMax.to(bill4, 2, {delay:0.5, y:bill4.y+90});
    TweenMax.to(bill4, 0.5, {delay:0.5, alpha:1});
    function repeatbutton4buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase4");
    function bill4click(event:MouseEvent):void{
    TweenMax.to(bill4, 0.5, {x: 780, y:25, scaleX: 0.6, scaleY: 0.6});
    function bill4billxclick(event:MouseEvent):void{
    bill4.visible=false;
    function beginbutton5buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase5");
    bill5.visible=true;
    TweenMax.to(bill5, 0.0, {alpha:0});
    TweenMax.to(bill5, 2, {delay:0.5, y:bill5.y+90});
    TweenMax.to(bill5, 0.5, {delay:0.5, alpha:1});
    function repeatbutton5buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase5");
    function bill5click(event:MouseEvent):void{
    TweenMax.to(bill5, 0.5, {x: 780, y:25, scaleX: 0.6, scaleY: 0.6});
    function bill5billxclick(event:MouseEvent):void{
    bill5.visible=false;
    //function beginbutton2buttonclick(event:MouseEvent):void{
    //sc1.gotoAndStop("phase2");
    //function repeatbutton2buttonclick(event:MouseEvent):void{
    //sc1.gotoAndStop("phase2");
    //function beginbutton3buttonclick(event:MouseEvent):void{
    //sc1.gotoAndStop("phase3");
    //function repeatbutton3buttonclick(event:MouseEvent):void{
    //sc1.gotoAndStop("phase3");
    //function beginbutton4buttonclick(event:MouseEvent):void{
    //sc1.gotoAndStop("phase4");
    //function repeatbutton4buttonclick(event:MouseEvent):void{
    //sc1.gotoAndStop("phase4");
    //function beginbutton5buttonclick(event:MouseEvent):void{
    //sc1.gotoAndStop("phase5");
    //function repeatbutton5buttonclick(event:MouseEvent):void{
    //sc1.gotoAndStop("phase5");

    ok so i got the trace working when I drop a coin on the hand mc. How would you make it so that when you hit the checkout button, you can see if the myValue items add up to a specific amount? Here's my revised code!
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.TweenEvent;
    import com.greensock.*;
    import com.greensock.easing.*;
    import flash.media.Sound;
    import flash.display.StageScaleMode;
    import flash.events.Event;
    import flash.display.StageDisplayState;
    // listeners
    helpmenu.xbutton.addEventListener(MouseEvent.CLICK, xbuttonclick);
    answermenu.xanswerbutton.addEventListener(MouseEvent.CLICK, xanswerbuttonclick);
    backbutton.addEventListener(MouseEvent.CLICK, backclick);
    helpbutton.addEventListener(MouseEvent.CLICK, helpclick);
    answerbutton.addEventListener(MouseEvent.CLICK, answerclick);
    sc1.beginbutton1.addEventListener(MouseEvent.CLICK, beginbutton1buttonclick);
    bill1.addEventListener(MouseEvent.CLICK, bill1click);
    sc1.checkout1.addEventListener(MouseEvent.CLICK, checkout1click);
    sc1.checkout2.addEventListener(MouseEvent.CLICK, checkout2click);
    sc1.checkout3.addEventListener(MouseEvent.CLICK, checkout3click);
    sc1.checkout4.addEventListener(MouseEvent.CLICK, checkout4click);
    sc1.checkout5.addEventListener(MouseEvent.CLICK, checkout5click);
    bill2.addEventListener(MouseEvent.CLICK, bill2click);
    bill3.addEventListener(MouseEvent.CLICK, bill3click);
    bill4.addEventListener(MouseEvent.CLICK, bill4click);
    bill5.addEventListener(MouseEvent.CLICK, bill5click);
    bill1.billx1.addEventListener(MouseEvent.CLICK, bill1billx1click);
    bill2.billx2.addEventListener(MouseEvent.CLICK, bill2billx2click);
    bill3.billx3.addEventListener(MouseEvent.CLICK, bill3billx3click);
    bill4.billx4.addEventListener(MouseEvent.CLICK, bill4billx4click);
    bill5.billx5.addEventListener(MouseEvent.CLICK, bill5billx5click);
    five.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    five1.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    five2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny1.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny5.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny6.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    penny7.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    dime.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    dime1.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    dime2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    dime3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    dime4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    nickel.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    nickel1.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    nickel2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    nickel3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    nickel4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    quarter.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    quarter2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    quarter3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    quarter4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    loonie.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    loonie2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    loonie3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    loonie4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    toonie.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    toonie2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    toonie3.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    toonie4.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
    bill1.visible=false;
    sc1.checkout1.visible=false;
    sc1.checkout2.visible=false;
    sc1.checkout3.visible=false;
    sc1.checkout4.visible=false;
    sc1.checkout5.visible=false;
    bill2.visible=false;
    bill3.visible=false;
    bill4.visible=false;
    bill5.visible=false;
    BS.visible=false;
    hand.visible=false;
    hitbox.mouseEnabled = false;
    helpmenu.visible=false;
    answermenu.visible=false;
    TweenMax.to(five, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(five1, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(five2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny1, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny4, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny5, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny6, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny7, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime1, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime4, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel1, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel4, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter4, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie4, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie2, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie3, 0.1, {scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie4, 0.1, {scaleX:0.1, scaleY:0.1});
    ///assigned values
    var myValue;
    penny1.myValue = .01;
    penny2.myValue = .01;
    penny3.myValue = .01;
    penny4.myValue = .01;
    penny5.myValue = .01;
    penny6.myValue = .01;
    penny7.myValue = .01;
    penny.myValue = .01;
    dime1.myValue = .10;
    dime2.myValue = .10;
    dime3.myValue = .10;
    dime4.myValue = .10;
    dime.myValue = .10;
    nickel1.myValue = .05;
    nickel2.myValue = .05;
    nickel3.myValue = .05;
    nickel4.myValue = .05;
    nickel.myValue = .05;
    quarter2.myValue = .25;
    quarter3.myValue = .25;
    quarter4.myValue = .25;
    quarter.myValue = .25;
    toonie2.myValue = 2.0;
    toonie3.myValue = 2.0;
    toonie4.myValue = 2.0;
    toonie.myValue = 2.0;
    loonie2.myValue = 1.0;
    loonie3.myValue = 1.0;
    loonie4.myValue = 1.0;
    loonie.myValue = 1.0;
    //variable declarations
    var pickupsound:pickup=new pickup
    var coinonhandsound:coinonhand=new coinonhand
    var coinpickupsound:coinpickup=new coinpickup
    var coindropsound:coindrop=new coindrop
    var droppapersound:droppaper=new droppaper
    //var clickssound:clicks=new clicks
    var myTween:Tween;
    var me:Object;
              function grabMe(e:MouseEvent):void{
              me = e.currentTarget;
              me.removeEventListener(MouseEvent.MOUSE_DOWN, grabMe);
              me.startDrag();
              e.target.parent.addChild(e.target)
              coinpickupsound.play();
              var tweeny:Tween = new Tween(me, "y", Regular.easeIn, me.y, me.y-75, .04, true);
              var scaley:Tween = new Tween(me, "scaleY", Regular.easeIn, me.scaleY, 0.4, 0.05, true);
              var scalex:Tween = new Tween(me, "scaleX", Regular.easeIn, me.scaleX, 0.4, 0.05, true);
              var my_shadow:DropShadowFilter = new DropShadowFilter();   
              my_shadow.color = 0x000000; 
              my_shadow.blurY = 3; 
              my_shadow.blurX = 3; 
              my_shadow.angle = 90;   
              my_shadow.alpha = .2; 
              my_shadow.quality = 15;
              my_shadow.distance = 100;  
              var filtersArray:Array = new Array(my_shadow); 
              me.filters = filtersArray;
              stage.addEventListener(MouseEvent.MOUSE_MOVE, dragMe);
              stage.addEventListener(MouseEvent.MOUSE_UP, dropMe);
              function dropMe(e:MouseEvent):void {
              stage.removeEventListener(MouseEvent.MOUSE_UP, dropMe);
              stage.removeEventListener(MouseEvent.MOUSE_MOVE, dragMe);
              me.stopDrag();
              me.filters=undefined;
              var scaley:Tween = new Tween(me, "scaleY", Regular.easeOut, me.scaleY, 0.1, 0.05, true);
              var scalex:Tween = new Tween(me, "scaleX", Regular.easeOut, me.scaleX, 0.1, 0.05, true);
              me.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
              lockinplace(DisplayObject(e.currentTarget))
    function dragMe(e:MouseEvent):void {
              e.updateAfterEvent();
    function lockinplace(e:DisplayObject):void{     
    //hand
    if(hand.hitTestPoint(mouseX, mouseY, true)){
              coinonhandsoundplay();
              trace(me.myValue)
              TweenMax.to(me,0.5,{x:mouseX,y:700, scaleX:0.2,scaleY:0.2,ease:Bounce.easeOut});
    //table
    //}else if(hitbox.hitTestPoint(mouseX, mouseY, true)){
    //TweenMax.to(me,0.2,{x:700, y:700, scaleX:0.3,scaleY:0.3,ease:Bounce.easeInOut});;
              //coinonhandsoundplay();
    } else {
              coindropsoundplay();
              TweenMax.to(me,0.5,{x:mouseX, y:700, scaleX:0.1,scaleY:0.1,ease:Bounce.easeOut});;
    //screen button items
    function beginbutton1buttonclick(event:MouseEvent):void{
                        sc1.gotoAndStop("phase1");
    hand.visible=true;
    bill1.visible=true;
    sc1.checkout1.visible=true;
    sc1.checkout2.visible=false;
    sc1.checkout3.visible=false;
    sc1.checkout4.visible=false;
    sc1.checkout5.visible=false;
    TweenMax.to(toonie2, 0.1, {x:655, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter3, 0.1, {x:625, y: 639, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.1, {x:635, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.1, {x:655, y: 635, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny7, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(bill1, 0.0, {alpha:0});
    TweenMax.to(bill1, 2, {delay:0.5, y:bill1.y+90});
    TweenMax.to(bill1, 0.5, {delay:0.5, alpha:1});
    function bill1click(event:MouseEvent):void{
    TweenMax.to(bill1, 0.5, {x: 780, y:25, scaleX: 0.6, scaleY: 0.6});
    pickupsound.play();
    function bill1billx1click(event:MouseEvent):void{
    bill1.visible=false;
    droppapersound.play();
    function checkout1click(event:MouseEvent):void{
    sc1.gotoAndStop("phase2begin");
    sc1.beginbutton2.addEventListener(MouseEvent.CLICK, beginbutton2buttonclick);
    TweenMax.to(penny7, 0.0, {x:497.15, y:586.10, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie2, 0.0, {x:423.15, y: 622.50, scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter3, 0.0, {x:506.70, y: 622.25, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.0, {x:460, y: 587.20, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.0, {x:418.35, y: 589.90, scaleX:0.1, scaleY:0.1});
    bill1.visible=false;
    hand.visible=false;
    sc1.checkout1.visible=false;
    function beginbutton2buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase2");
    hand.visible=true;
    bill2.visible=true;
    sc1.checkout2.visible=true;
    sc1.checkout1.visible=false;
    sc1.checkout3.visible=false;
    sc1.checkout4.visible=false;
    sc1.checkout5.visible=false;
    TweenMax.to(loonie4, 0.1, {x:655, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie2, 0.1, {x:625, y: 639, scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie3, 0.1, {x:635, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter3, 0.1, {x:655, y: 635, scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter4, 0.1, {x:655, y: 635, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny7, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny6, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny5, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny4, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny3, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny2, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime1, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel3, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(bill2, 0.0, {alpha:0});
    TweenMax.to(bill2, 2, {delay:0.5, y:bill2.y+90});
    TweenMax.to(bill2, 0.5, {delay:0.5, alpha:1});
    function bill2click(event:MouseEvent):void{
    TweenMax.to(bill2, 0.5, {x: 780, y:25, scaleX: 0.6, scaleY: 0.6});
    pickupsound.play();
    function bill2billx2click(event:MouseEvent):void{
    bill2.visible=false;
    droppapersound.play();
    function checkout2click(event:MouseEvent):void{
    sc1.gotoAndStop("phase3begin");
    sc1.beginbutton3.addEventListener(MouseEvent.CLICK, beginbutton3buttonclick);
    TweenMax.to(loonie4, 0.1, {x:462.15, y: 623.40, scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie2, 0.1, {x:459.15, y: 627.40, scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie3, 0.1, {x:463.15, y: 631.75, scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter3, 0.1, {x:506.70, y: 622.25, scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter4, 0.1, {x:504.70, y: 625.30, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny7, 0.1, {x:497.15, y: 586.10, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny6, 0.1, {x:500.15, y: 586.95, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny5, 0.1, {x:498.15, y: 588.60, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny4, 0.1, {x:500.15, y: 589.95, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny3, 0.1, {x:498.15, y: 591.65, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny2, 0.1, {x:499.15, y: 593.15, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.1, {x:418.35, y: 589.90, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime1, 0.1, {x:416.35, y: 591.40, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.1, {x:460, y: 587.20, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel3, 0.1, {x:457.15, y: 589.75, scaleX:0.1, scaleY:0.1});
    bill2.visible=false;
    hand.visible=false;
    sc1.checkout2.visible=false;
    function beginbutton3buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase3");
    hand.visible=true;
    bill3.visible=true;
    sc1.checkout3.visible=true;
    sc1.checkout2.visible=false;
    sc1.checkout1.visible=false;
    sc1.checkout4.visible=false;
    sc1.checkout5.visible=false;
    TweenMax.to(quarter3, 0.1, {x:655, y: 635, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny7, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny6, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny5, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny4, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny3, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny2, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny1, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime1, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime2, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel3, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel4, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel1, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(bill3, 0.0, {alpha:0});
    TweenMax.to(bill3, 2, {delay:0.5, y:bill3.y+90});
    TweenMax.to(bill3, 0.5, {delay:0.5, alpha:1});
    function bill3click(event:MouseEvent):void{
    TweenMax.to(bill3, 0.5, {x: 780, y:25, scaleX: 0.6, scaleY: 0.6});
    pickupsound.play();
    function bill3billx3click(event:MouseEvent):void{
    bill3.visible=false;
    droppapersound.play();
    function checkout3click(event:MouseEvent):void{
    sc1.gotoAndStop("phase4begin");
    sc1.beginbutton4.addEventListener(MouseEvent.CLICK, beginbutton4buttonclick);
    TweenMax.to(quarter3, 0.1, {x:506.70, y: 622.25, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny7, 0.1, {x:497.15, y: 586.10, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny6, 0.1, {x:500.15, y: 586.95, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny5, 0.1, {x:498.15, y: 588.60, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny4, 0.1, {x:500.15, y: 589.95, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny3, 0.1, {x:498.15, y: 591.65, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny2, 0.1, {x:499.15, y: 593.15, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny1, 0.1, {x:497.70, y: 594.95, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.1, {x:418.35, y: 589.90, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime1, 0.1, {x:416.35, y: 591.40, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime2, 0.1, {x:417.15, y: 593.25, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.1, {x:460, y: 587.20, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel3, 0.1, {x:457.15, y: 589.75, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel4, 0.1, {x:459.15, y: 592.05, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel1, 0.1, {x:458.15, y: 595.20, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel, 0.1, {x:459.15, y: 597.20, scaleX:0.1, scaleY:0.1});
    bill3.visible=false;
    hand.visible=false;
    sc1.checkout3.visible=false;
    function beginbutton4buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase4");
    hand.visible=true;
    bill4.visible=true;
    sc1.checkout4.visible=true;
    sc1.checkout2.visible=false;
    sc1.checkout3.visible=false;
    sc1.checkout1.visible=false;
    sc1.checkout5.visible=false;
    TweenMax.to(five2, 0.1, {x:655, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny7, 0.1, {x:654, y: 644, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny6, 0.1, {x:645, y: 650, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.1, {x:662, y: 642, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(bill4, 0.0, {alpha:0});
    TweenMax.to(bill4, 2, {delay:0.5, y:bill4.y+90});
    TweenMax.to(bill4, 0.5, {delay:0.5, alpha:1});
    function bill4click(event:MouseEvent):void{
    TweenMax.to(bill4, 0.5, {x: 780, y:25, scaleX: 0.6, scaleY: 0.6});
    pickupsound.play();
    function bill4billx4click(event:MouseEvent):void{
    bill4.visible=false;
    droppapersound.play();
    function checkout4click(event:MouseEvent):void{
    sc1.gotoAndStop("phase5begin");
    sc1.beginbutton5.addEventListener(MouseEvent.CLICK, beginbutton5buttonclick);
    TweenMax.to(five2, 0.1, {x:460.15, y: 553.10, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny7, 0.1, {x:497.15, y: 586.10, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny6, 0.1, {x:500.15, y: 586.95, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.1, {x:418.35, y: 589.90, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.1, {x:460, y: 587.20, scaleX:0.1, scaleY:0.1});
    bill4.visible=false;
    hand.visible=false;
    sc1.checkout4.visible=false;
    function beginbutton5buttonclick(event:MouseEvent):void{
    sc1.gotoAndStop("phase5");
    hand.visible=true;
    bill5.visible=true;
    sc1.checkout5.visible=true;
    sc1.checkout2.visible=false;
    sc1.checkout3.visible=false;
    sc1.checkout4.visible=false;
    sc1.checkout1.visible=false;
    TweenMax.to(five2, 0.1, {x:655, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie2, 0.1, {x:655, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie3, 0.1, {x:622, y: 639, scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie4, 0.1, {x:625, y: 639, scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie4, 0.1, {x:658, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie2, 0.1, {x:625, y: 639, scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie3, 0.1, {x:635, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter3, 0.1, {x:655, y: 635, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny7, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny6, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny5, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny4, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel3, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(bill5, 0.0, {alpha:0});
    TweenMax.to(bill5, 2, {delay:0.5, y:bill5.y+90});
    TweenMax.to(bill5, 0.5, {delay:0.5, alpha:1});
    function bill5click(event:MouseEvent):void{
    TweenMax.to(bill5, 0.5, {x: 780, y:25, scaleX: 0.6, scaleY: 0.6});
    pickupsound.play();
    function bill5billx5click(event:MouseEvent):void{
    bill5.visible=false;
    droppapersound.play();
    function checkout5click(event:MouseEvent):void{
    BS.visible=true;
    hand.visible=false;
    bill5.visible=false;
    sc1.checkout5.visible=false;
    TweenMax.to(five2, 0.1, {x:460.15, y: 553.10, scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie2, 0.1, {x:423.15, y: 622.50, scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie3, 0.1, {x:415.70, y: 622.70, scaleX:0.1, scaleY:0.1});
    TweenMax.to(toonie4, 0.1, {x:420.15, y: 627.70, scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie4, 0.1, {x:462.15, y: 623.40, scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie2, 0.1, {x:459.15, y: 627.40, scaleX:0.1, scaleY:0.1});
    TweenMax.to(loonie3, 0.1, {x:463.15, y: 631.75, scaleX:0.1, scaleY:0.1});
    TweenMax.to(quarter3, 0.1, {x:506.70, y: 622.25, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny7, 0.1, {x:497.15, y: 586.10, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny6, 0.1, {x:500.15, y: 586.95, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny5, 0.1, {x:498.15, y: 588.60, scaleX:0.1, scaleY:0.1});
    TweenMax.to(penny4, 0.1, {x:500.15, y: 589.95, scaleX:0.1, scaleY:0.1});
    TweenMax.to(dime3, 0.1, {x:660, y: 640, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel2, 0.1, {x:460, y: 587.20, scaleX:0.1, scaleY:0.1});
    TweenMax.to(nickel3, 0.1, {x:457.15, y: 589.75, scaleX:0.1, scaleY:0.1});
    //sound items
    //function bellsoundplay():void{
    //bellsound.play();
    //sound items
    function pickupsoundplay():void{
    pickupsound.play();
    //sound items
    function coinpickupsoundplay():void{
    coinpickupsound.play();
    //sound items
    function coindropsoundplay():void{
    coindropsound.play();
    function coinonhandsoundplay():void{
    coinonhandsound.play();
    function droppapersoundplay():void{
    droppapersound.play();
    //nav bar items
    function backclick(event:MouseEvent):void{
              answermenu.visible=false;
              helpmenu.visible=false;
    function helpclick(event:MouseEvent):void{
              helpmenu.visible=true;
              answermenu.visible=false;
              setChildIndex(helpmenu,numChildren - 1)
              TweenMax.to(helpmenu, 3, {y:350, startAt:{y:600}, ease:Elastic.easeOut});
    function xbuttonclick(event:MouseEvent):void{
              helpmenu.visible=false;
    function answerclick(event:MouseEvent):void{
              answermenu.visible=true;
              helpmenu.visible=false;
              setChildIndex(answermenu,numChildren - 1)
              TweenMax.to(answermenu, 3, {y:350, startAt:{y:600}, ease:Elastic.easeOut});
    function xanswerbuttonclick(event:MouseEvent):void{
              answermenu.visible=false;
              helpmenu.visible=false;

  • Convert a number value to a date

    Post Author: Jeremiah
    CA Forum: Formula
    I'm using Crystal Reports XI. I'm coming across a problem trying to convert a
    number value to a date.  I'm using formula below: if not isnull({qryStoreCheckIn.CHECKINDATE})  or {qryStoreCheckIn.CHECKINDATE}="0"the(stringvar MyDate:= ToText({StoreCheckIn.CHECKINDATE},0,"");cdate(2000 + val(left(MyDate,1)),val(mid(MyDate,2,2)),val(right(MyDate,2))))  
    For this line, I'm receiving an error msg of that "A month number must be between 1 and 12
    Here are some of the field's data examples
    70608
    70501
    0
    61231 Would anybody have any ideas on how to solve this?

    Post Author: SKodidine
    CA Forum: Formula
    You are getting the error "A month number must be between 1 and 12" because you are trying to convert 0 to a date.  The third data item in your field data.
    I suggest you default the date to some date when it is zero or eliminate 0 as a date from your formula such as:
    if not isnull({qryStoreCheckIn.CHECKINDATE})
    then(stringvar MyDate:= ToText({StoreCheckIn.CHECKINDATE},0,"")
    else
    If {qryStoreCheckIn.CHECKINDATE} = 0 then (stringvar MyDate:= "00101");  // If date is zero then it is set to 2000/01/01
    After this, you will not have problems with a zero date.

  • How can i read every"number" value and not only the 1st?

    in the vi only the first "number" value(from the data acquisition)is read in the small loop.how can i make every value to be read?every value must be compared with the "numeric" constant,and,if greater the led must turn on.afterwards,when a value which is less than the "numeric" is found the led must turn off.please answer or send mail to [email protected]
    Attachments:
    oximet5.vi ‏152 KB

    The more I look at your program, the less I understand it.
    Why are you setting number = number in a case if SO2 = ""? number always equals number.
    In your sequence frames 1 and 4, you have no control over which write (date or time) happens first. Just placing one function to the left of another doesn't make it happen first if your wiring doesn't create data dependency. Review the section on Data Dependency in chapter 5 of the LabView User's Manual.
    It looks you're writing to and reading from the same file using Write File and Read Lines from File.vi. Why read back data you just wrote? You have the data on your diagram. If you want to convert it from string to numeric, use a Sring/Number Conversion function from the String palette.
    On Read Lines from File.vi (which I'm not sure you even need), you should use a shift register for the start of read offset rather than a local variable for mark after read (chars.). With a shift register, you can initialize it to 0 when the VI starts. Using a local, if you restart the VI, it will try to startup from where you left off the last time, but you just opened the file for create or replace.
    In your sequence frames 2 and 3, why do you wait for the number to be less than the numeric before writing a carriage return to the file? Also, LabView has a End of Line constant which adapts to the expected value for the operating system. That's generally more flexible than a Carriage Return.
    It looks to me like you're overusing control refnums. You don't need to use a control refnum and a property node to set or read a control's value if you can wire directly to the control's terminal.
    I really don't understand what you're doing with pause and variants. I may be missing the point, but it looks like you made this much more complicated than it needs to be. Why not keep it a boolean?
    For your pause-path, you open the file but never close it. You can lose data that way. You also open it using open function 3, create new file. You'll get an error if the file already exists.
    On a general note, your diagram would be easier to read if you were more selective in how you routed your wires: you have wires on top of wires, wires running under sub-VIs, wires running in the frame of a while loop, wires running under labels.
    I think there's a temptation to overuse sequences. I don't think you need one here. As I mentioned in my earlier message, case structures and shift registers will be more useful to you.

  • Pass a list of number values to a pl/sql function

    I would like to pass a list of number values to a pl/sql function where the list will be used in an IN clause. Ideally I would like to do the following:
    CREATE OR REPLACE FUNCTION ( dept_list in varchar2) is
    begin
    select ... where dept in (dept_list) ;
    usage: process_list ( '7730,7735,7740,7745') ;
    I can not find an example of doing this in pl/sql function but it seems feasible.
    Is there a way to do this?

    user12088323 wrote:
    I would like to pass a list of number values to a pl/sql function where the list will be used in an IN clause.
    usage: process_list ( '7730,7735,7740,7745') ;The first thing is you need an appropriate data type to store a list of numbers. A single character value that looks to you like a list of numbers, is not in fact a list of numbers but a single character value.
    This example uses the built in data type odcinumberlist in a procedure, you can do the same in function
    Re: Passing an array to an Oracle stored procedure
    If you have an old version of the database you may need to create your own type with the same definition of odcinumberlist.

  • Why order by clause maintains column number values instead of column names

    why order by clause maintains column number values instead of column names ?

    we can use oder by 1,2 as column number
    UGNo one said that it can't be used. What's your point?
    To OP: It can be written with the column's 'select list positional number' just because for the support of laziness. :)
    There's no difference between 'ORDER BY name, address' and 'ORDER BY 1,2'.

  • How to validated the number values in Controller

    Hi
    How to validate the number values in Controller.
    Please help me.
    Thanks
    Rajavel Ramalingam

    Hi
    Nagesh Manda,
    MessageTextInput one filed already have varchar2 filed. I am going modified character to number(throw the controller). For the example that page submit button press that time validate the filed. Only enter number. don’t enter charter.
    Thanks
    Rajavel

  • Converting char to number value specfically like '6.35'

    I am facing a very peculiar problem, if i try to convert a FLOATING NO. in form of CHARACTER to NUMBER value , then to_number function gives VALUE-ERROR
    eG. TO_NUMBER('6.35') is resulting in an error. But TO_NUMBER('6') works fine. My forms are working absolutely ok on 2-tier but not on 3-tier.Please Help.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Bogdan Dincescu ([email protected]):
    Must have something to do with your NLS settings on your application server, something for the decimal separator. I guess to_number('6,35') would work OK.
    I'm not sure exactly what settings you should have on the application server.<HR></BLOCKQUOTE>
    Thank you for your reply, I guess it can be the problem becoz forms with such code are working fine on Win2000 but are giving a problem on NT , can u give me a clue why it is happening ???
    null

  • Display comma for numeric values

    Hi,
    I want to display comma for numeric values.I know we can use strlen and concatenate, but any one can give me an example.
    Ex: 1,234  and 12,234 , 1,22,500  ( iam expecting)
    Thanks,
    Veeru

    it depends on ur data...
    if it is currency then u can use
    WRITE.... CURRENCY...
    if it is qty then u can use
    WRITE....UNIT....
    or u simply pass it to a packed field and it will take the default decimal settings of the user profile...
    Reward points if helpful

  • Create item class for Number values

    Hi,
    I want to create a item class for year like (current year+3).
    So i created the Item class in Dis.Admin But it wont reflect in Dis.plus parameter . So please tell me how to create a item class for Number values.
    Regards
    Manikandan

    Hi Rod
    I rarely use Desktop and neither do my customers, unless they are on versions of Discoverer prior to 10.1.2. Time and time again I have taught 10.1.2 Plus / Viewer to dyed in the wool Desktopees to finish the course for them to say that they are never going to use Desktop again.
    One of the many issues with Desktop is the caching and even though it can do some things that Plus cannot, the many features in Plus that don't exist in Desktop far outweight them.
    What do you think? Do you still see a use for Desktop?
    How about everyone else? I would love to hear from you.
    Best wishes
    Michael

  • Extract number value from string

    Hi,
    I am getting a string value like bellow.
    '2222jhone'
    '123344Sam'
    '11Tim'
    i want to extract only number value.Can anybody help to prepare reg expression.
    Tahnks

    You NEVER want to use REGEXP_REPLACE when looking to query fields with numbers only because you are actually changing the data by removing or replacing with something that was not originally in the dataset. Use REGEXP_LIKE - SEE BELOW.
    SELECT <FieldNames>
    WHERE REGEXP_LIKE(<FieldName>, '^[[:digit:]]+$')
    --This will only return fields that contain NUMBERS ONLY.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • [svn:osmf:] 15983: Updating VideoQoSPluginMetadataSynthesizer to create comma separated string values for all of the available keys .

    Revision: 15983
    Revision: 15983
    Author:   [email protected]
    Date:     2010-05-10 04:47:46 -0700 (Mon, 10 May 2010)
    Log Message:
    Updating VideoQoSPluginMetadataSynthesizer to create comma separated string values for all of the available keys.
    Modified Paths:
        osmf/trunk/apps/samples/plugins/VideoQoSPlugin/src/org/osmf/qos/VideoQoSPluginMetadataSyn thesizer.as

    Rob:
    "but the sad thing is, that managers will most likely respond with a "This used to be fast in MSSQL, but now it isn't any more in Oracle. Oracle is so slow ...""
    On the bright side, it sounds like most of the database calls are implemented as stored procedures, so there is an opportunity to do it right (in Oracle terms) in the stored procedures.
    I did a similar conversion a while back, converting bad SQLServer procedures to good Oracle procedures. Everyone said "Oracle is much faster that SQLServer"
    John

  • Iterating through listitems and set number value

    Hi,
    I have a problem with setting custom number value to list item column.
    I first wanted to do it with SPD workflow but it seem to be too tricky.
    So lets try with powershell, here's my case:
    I want to loop through library items and set value to column "OrderNumber".
    Result should be
    NAME       PRODUCT    ORDERNUMBER
    item             a                        1
    item             b                        2
    item             c                         3
    Here my script so far:
    if(!(Get-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction:SilentlyContinue))
        Add-PsSnapin Microsoft.SharePoint.PowerShell
    $web = Get-SPWeb http://sharepoint/subsite
    $list = $web.Lists["MyListName"]
    $listitems = $list.Items.Count
    for ($i=0; $i -le $listitems – 1; $i++)
      $item["OrderNumber"] = $i;
      $item.Update();
    but this does update only one item....
    I presume that i should use foreeach loop, but how to set $i variable in it?
    foreach ($item in $list.Items)
      $item["Number"] = Get-Random -Min 0 -Max 100;
      $item.Update();
    Thank you for any help!
    Regards, Antti
    Antti Astikainen

    hi
    just do small modification in your code
    f(!(Get-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction:SilentlyContinue))
        Add-PsSnapin Microsoft.SharePoint.PowerShell
    $web = Get-SPWeb http://sharepoint/subsite
    $list = $web.Lists["MyListName"]
    $listitems = $list.Items.Count
    for ($i=0; $i -le $listitems – 1; $i++)
    $item=$listitems[$i];
    $item["OrderNumber"]
    = $i+1;
     $item.Update();
    Regards,
    Rajendra Singh
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful http://sharepointundefind.wordpress.com/

Maybe you are looking for