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;

Similar Messages

  • 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

  • Can't assign a string value to a member of type TEXT in Calculation Manager

    I can assign a string value to that member of type TEXT using a run-time prompt of type StringToNumber.
    Example: "My Text Member" = {string_rtp};
    However, I need to accompllish the same function without using a run-time prompts.
    I have a planning application and I know that text along with all other non-numeric
    values are stored on the relational side in the planning application schema.
    It seems reasonable to assume that if this can can accomplish
    with a run-time prompt that I could do also do it without a run-time prompt.
    What appears to be lacking is a function like:
    "My Text Member" = @StringToNumber(<String Literal>);
    Clearly, this is already being done "under the covers" for run-time prompts. If
    would appear to be a minor enhancement to expose such a function to developers.
    NOTE: I suppose you would also need to add new syntax/function to identify a string
    literal from say a member name. I'm wondering if this is the more difficult challenge
    from a product perspective????

    When executing a Calculation Manager rule in Planning, the run-time prompt (RTP) is populated by looking up the outline information present in the relational Planning application database. If the RTP is of type TEXT, the strings displayed in the member select are from the from the relational Planning application database too. Subsequently when executing the Rule, the RTP's value is in fact the record ID (a number) which is then saved into the appropriate intersection in Essbase.
    You need to bear in mind, the Rule is executed in Essbase. If Essbase needs to "write" a text, it would then need to connect to the Planning relational database to create a new record. The newly created record ID then needs to be feed back to Essbase, in order to store it in the appropriate intersection.
    What you are suggesting, comes with a big overhead causing Essbase and the rule to slow. Thus, the disadvantages outweighs the advantages.

  • How to assign a default value to a column ?

    Hi
    In the Object browser is it possible to modifiy a column in order to assign a defalut value to the column ?
    I have a table FICHE in which I want to assign a default value 0 to a column which type is NUMBER.
    Thank you for your kind answers.
    Christian.

    Hi Christian
    For one reason or the other you can't do that using 'Create Column' or 'Modify Column'. You can only do that by issuing a SQL command : alter table fiche modify column( <column name> default 0)
    HTH
    Roel

  • Assigning a numerical value

    I am new to Acrobat and still have not figured out a few things. I am trying to make a very simple form for my boss. Basically an inventory sheet with calculations. He is basically looking for an excel spreadsheet in Acrobat. Is this possible? I need to assign a dollar value to a field. One that the client can not change and one that apprears always. The basic formula would be A(field1)*B(field 2) = sum (field 3)
    I dont even know if I am explaining this right. ARG. All help appreciated! Cheers

    Hi again!
    Thank you again for all the help. I have completed my form but am having 1 more problem. I hope I explain this properly:::  My form works almost perfectly. ie:: enter quantity of item. $ amount gets tallied at the end based on quantity. Sub-total amount is correct BUT when sub-total gets HST multiplied to it I am consistently out by $39. I have no idea where this number is coming from.
    My formula for my total is (subtotal*HST)
    My formula for my HST $ amount is default value: 0.12 Format:Percentage
    My formula for Total is (subtotal+HST)
    Also when I am entering quantity the total will not calculate the HST until you enter a 2nd quantity amount. Which it is still under by $39, although if you enter a "0" quantity amount after this it will calculate the formula perfectly.  Same goes with clearing the sheet:: you can clear all the numbers off and it still will have $39 left on the "bill" but if you enter a "0" and then erase it, it clears the sheet perfectly. Is this a glitch or am I not doing something? Thank you for your help in advance.

  • How to assign a dynamic value to the value property of a button ?

    Hi Folks,
    I have a need, can i know how to assign a dynamic value to the value property of a button. Scenario is like follows...
    This is a struts based web application
    1. I have a file which consists of login user details (user name and his previlages) for a web application.
    2. I got those user details, into a List.
    3. When a user logged into the web app, in the home page there are few buttons. The type and number of buttons shown depends on the type of user/ user. (Buttons have different combination and the number of buttons available are not constant, they will vary from user to user).
    4. for each button, there will be a different action. I can pass the value of a button to an action class, but here button must have a dynamic value.
    Here is my test code:
    <%
    if (List != null)
    for (int i = 0; i <List.length; i++)
    %>
    <html:submit property="rduname" value= "<%=List%>" onclick="return submitRdu('<%=List[i] %>');"/>
    <%
    %>
    But my problem is how to assign a dynamic value to the value property of the button ( i know 'value= "<%=List[i]%>" ' will not work, just wanted show you guys).
    Thanks in advance,
    UV
    Edited by: UV_Dev on Oct 9, 2008 2:15 PM

    Let me try i know am not good at JSP but do we need double quotes here
    value= <%=List%>i think JSTL should help you about the dynamic thing                                                                                                                                                                                                                                                                                                                       

  • Assigning a binary value to an integer

    Hi, I am trying to assign a binary value in my program to an integer. In some assembly languages you would do the following:
    mov a, 00010101b
    for binary and for hex:
    mov a, 0E2h
    In java, you can assign a hex value with:
    int a=0x3F;
    What should I do to assign a binary value? Is it possible?
    Regards... Martin Schmiedel

    The static method parseInt in the java.lang.Integer class can be used to convert a String representing a binary number into its decimal integer value. In addition to the string representing the number, you also pass in an integer representing the radix, which for binary would be 2, hex would be 16, etc. So for example:
    int x = Integer.parseInt("00010110", 2);
    Is that what you're trying to do? Cheers,
    Chris

  • Is it possible to assign a default value to an out parameter??

    Is it possible to assign a default value to an out parameter??
    Thanks in advance.

    pradeep.vupala wrote:
    I think ur looking for an IN OUT parameter?That won't help.
    A quick test is easy to check what happens :
    SQL> create or replace procedure myproc(p_out out number default 1)
      2  as
      3  begin
      4  null;
      5  end;
      6  /
    Warning: Procedure created with compilation errors.
    SQL> show err
    Errors for PROCEDURE MYPROC:
    LINE/COL ERROR
    1/18     PLS-00230: OUT and IN OUT formal parameters may not have default expressions
    SQL> create or replace procedure myproc(p_out in out number default 1)
      2  as
      3  begin
      4  null;
      5  end;
      6  /
    Warning: Procedure created with compilation errors.
    SQL> show err
    Errors for PROCEDURE MYPROC:
    LINE/COL ERROR
    1/18     PLS-00230: OUT and IN OUT formal parameters may not have default expressions
    SQL>

  • BAPI_PO_CHANGE - Account assignment serial number issue

    Hi,
    I am modifying Service PO with BAPI_PO_CHANGE.
    I am passign A/c Assignment with WBS_Element value and serial number '01' for individual line.
    PO has A/c Assignment catagory P(Project).
    But the existing PO which i want to modify, had Serial number '02' for A/c assignemnt serial number.
    So it is giving Short dump with raising exception for the class of Account assignnment handler.
    What need to dofor such A/c assignment catagory in Service PO Case.?
    Regards,
    Manoj

    Hi,
    Please try to change the serial number manually in mE22N and see.
    Regards,
    Nagaraj

  • Assigning of characteristics value for a batch

    Hi All,
    Please help regarding the assigning of characteristics value for a batch in transaction code MSC2N or MSC2 in the classification tab.
    If Function modules or BAPI is available pls advise the inputs to be provided for the function modules.
    Here is one function module which i searched, but if i run this function module, i am not able to commit my characteristics value.
    The function module is CIF_BATCHCHAR_MAP.
    For the above function module the inputs which i have given are...
    Material number
    Batch
    Plant
    Class type
    Class Number
    Characteristics name
    Characteristics value
    Expecting your earliest reply.
    Thanks,
    G.C.Arravind Kumar Vikram

    Try the code below
    *.1 create key
      it_objects-key_field = 'MATNR'.
      it_objects-value_int = matnr.
      APPEND it_objects.
      it_objects-key_field = 'CHARG'.
      it_objects-value_int = charge.
      APPEND it_objects.
      CLEAR l_objectkey.
      CALL FUNCTION 'BAPI_OBJCL_CONCATENATEKEY'
        EXPORTING
          objecttable    = 'MCH1'
        IMPORTING
          objectkey_conc = l_objectkey
        TABLES
          objectkeytable = it_objects
          return         = it_return2.
    2 fill it_num it_char it_curr with values
    3 change characteristics
    CALL FUNCTION 'BAPI_OBJCL_CHANGE'
        EXPORTING
          objectkey          = l_objectkey
          objecttable        = 'MCH1'
          classnum           = it_class-classnum
          classtype          = '023'
        TABLES
          allocvaluesnumnew  = it_num
          allocvaluescharnew = it_char
          allocvaluescurrnew = it_curr
          return             = it_return.

  • How to Assigning the number ranges for Purchase Order using EXIT_SAPMM06E_0

    How to Assigning the number ranges for Purchase Order using EXIT_SAPMM06E_001 using Functional Module NUMBER_GET_NEXT explain me ?

    Hi,
    First go thourh the FM import export parameters list.
    Try to create an internal table of type INRI-NRRANGENR for number ranges.
    We can provide the lower and higher values for this table so that what ever PO is created will be with that range.
    Try to create the ncessary ones using this FM.
    In the Exit, EXIT_SAPMM06E_001,
    the Export parameters are-
    EKKO-EBELN- the PO ios created with in that specified range
    Range as INRI-NRRANGENR - Here try to assign the Internal table that was populated in the FM.
    Try to code this in the Include provded and keep Breakpint and check the PO number generated.
    Reply if u need more help on this.
    Reward if helpful.
    Best Wishes,
    Chandralekha

  • Assignment the number

    Hello,
    When we create a credit note in SD it takes in the field Assignment the number of the original Billing document. But I would like to take the number of the credit note itself.
    Is  it  possible  in  standard  or  just  in  exit?
    Thanks and  best  regards
    L

    Go to VTFF, select the required document types and click on blue lens on top left.  You can see two fields, viz.Assignment Field and Reference Field.  Press F4 and maintain the required value.
    thanks
    G. Lakshmipathi

  • Error "There is no material group assigned to this value.Message BBP_ATTR01

    Hi Experts,
    We are in SRM 7.0
    When assigning a new product category to a Purchasing Group. In the course of the assignment of the product category , the following error popped up: "There is no material group assigned to this value. Message number: BBP_ATTR010.Also,material group is there in R/3 & we have  executed the necessary maintenace in V_BBP_DET_ACCT.
    Any pointer will be highly appreciated,
    Regards,
    Rupesh

    Hi
    Did you bring the new material group into SRM or not?
    can you see new product category in comm_category table?
    Muthu

  • COPA Derivation Rules are not assigning the correct values

    COPA Derivation Rules are not assigning the correct values when we process billing documents in batch.  We currently have derivation rules defined to take the ship to country and refer to custom tables were we identify custom geographic groups (INT/DOM and EAM, AP, etc.).  The derivation rules work accurately when the billing documents are created individually, and more than 75% of them are accurate when generated in batch, but in some circumstances, it populates the derived values with the wrong field and we can not identify where or why that's happening.  It looks like it may have something to do when the ship to customer number account group is different, but that's not consistent..  Does anyone know how or where these values get populated, or have any ideas why incorrect values are appearing sporadically throughout the billing run?  Thanks!!!

    Leigh,
    Apparently the function module is changing the values for some billing docs. Check one of the following user exits, if it gets triggered and the values are changed:
    COPA0001  Enhancement for derivation in Profitability Analysis (CO-PA)
    Function Module: EXIT_SAPLKEDRCOPA_001
    COPA0002  Enhancement for valuation in Profitability Analysis (CO-PA)
    Function Module: EXIT_SAPLKEAB_001
    COPA0003  Enhancement for assignment to profitability segment (CO-PA)
    Function Module: EXIT_SAPLKEAK_001
    COPA0005  Enhancement for actual data update (CO-PA)
    Function Module: EXIT_SAPLKEII_001
    Function Module: EXIT_SAPLKEII_002
    Award suitable points if the above helps. You can also reach me at [email protected]
    Thanks
    Ajay

  • Assigning strings a value?

    I had another problem with nested if structure, i have tried ever way i could think of possibly to assign the value to a string. hard to explain, example below
    //classCode is input from user
    // classYear is the current year in highschool, i keep on getting errors no matter which way i assign the string!
    i'm trying to figure out how to do this correctly
    If(ClassCode = ("FR") // i know it's not correct, but i have no idea classyear= "Freshman"; // what is? same for this assignmeny!
    If(grdP = 100)
    grade = "A"; // results in a error, i'm real confused

    Try using a switch statement to solve your problem. It'll be cleaner code and easier to read and understand.
    //declare a variable
    int usrInput;
    if( ( usrInput >= 10 ) || ( usrInput <= 1 2) )
    switch(classYear)
    case 10:
    classyear = "Freshman";
    case 11:
    classyear = "Sofmore"; etc.
    Not sure if this will help but here's a project that I worked on for a class and it was assigning a string value to a variable. I used a switch statement (do you know what those are?) to determine which value was selected.
    I know this is a bit long but I think it's easy enough to understand. You will have to determine what value you want to put in your if statement. Switch does not use Strings so you'll have to use an integer to determine what is selected.
    import java.text.NumberFormat;                              // Java core packages
    import java.util.Locale;
    import javax.swing.JOptionPane;                              // Java extension packages
    public class A4_512                                             // begin class definition
                                                                     // main method begins execution
                                                                     // of Java application
         public static void main( String args[] )
              int     counter,                                        // counter variable
                   itmSold,                                        // holds usrInput for product sold as int data type
                   qtySold = 0;                                   // holds usrInput for quantity sold as int data type
         double     itmValue = 0.00,                              // value of item sold
                   totSales = 0.00;                              // total value of items sold
         String     usrInputItm = "",                              // holds usrInput for product sold as int String type
                   usrInputQty = "",                              // holds usrInput for product sold as int String type
                   currDay = "",                                   // String value for current day
                   results = "";                                   // holds output results
                                                                     // Begin counter controlled loop
              for( counter = 0; counter <= 6; counter++ )
                   switch ( counter )                              // Begin switch statement to determine day of the week
                        case 0:
                             currDay = "Sunday";
                             break;
                        case 1:
                             currDay = "Monday";
                             break;
                        case 2:
                             currDay = "Tuesday";
                             break;
                        case 3:
                             currDay = "Wednesday";
                             break;
                        case 4:
                             currDay = "Thursday";
                             break;
                        case 5:
                             currDay = "Friday";
                             break;
                        case 6:
                             currDay = "Saturday";
                             break;
                                                                     // prompt for input and read
                                                                     // product number then convert
                                                                     // data type to integer data type
                   usrInputItm = JOptionPane.showInputDialog(
                        "Please enter a product number purchased on " + currDay + "\n\n Enter 0 to enter data for next day." );
                   itmSold = Integer.parseInt( usrInputItm );
                   while( itmSold != 0 )                         // Begin sentinel control while loop
                                                                     // if statement to determine correct product number entered
                        if( ( itmSold > 5 ) || ( itmSold < 0 ) )
                                                                     // display error message
                             JOptionPane.showMessageDialog ( null, "You must enter product number from 1 through 5.\nPlease try again.",
                                  "Wrong Product Number Error", JOptionPane.ERROR_MESSAGE );
                                                                     // prompt for input and read
                                                                     // product number then convert
                                                                     // data type to integer data type
                             usrInputItm = JOptionPane.showInputDialog(
                                  "Please enter a product number purchased on " + currDay + "\n\n Enter 0 to enter data for next day." );
                             itmSold = Integer.parseInt( usrInputItm );
                        else
                             switch ( itmSold )               // begin switch statement to determine value of itmSold
                                  case 1:
                                       itmValue = 2.98;
                                       break;
                                  case 2:
                                       itmValue = 4.50;
                                       break;
                                  case 3:
                                       itmValue = 9.98;
                                       break;
                                  case 4:
                                       itmValue = 4.49;
                                       break;
                                  case 5:
                                       itmValue = 6.87;
                                       break;
                             }                                        // end switch statement
                                                                     // prompt for input and read
                                                                     // quantity sold then convert
                                                                     // data type to integer data type
                             usrInputQty = JOptionPane.showInputDialog(
                                  "Please enter quantity sold on " + currDay );
                             qtySold = Integer.parseInt( usrInputQty );
                             totSales += itmValue * qtySold;
                                                                     // prompt for input and read
                                                                     // product number then convert
                                                                     // data type to integer data type
                             usrInputItm = JOptionPane.showInputDialog(
                                  "Please enter a product number purchased on " + currDay + "\n\n Enter 0 to enter data for next day." );
                             itmSold = Integer.parseInt( usrInputItm );
                        }                                             // end if statement to determine correct product number entered
                   }                                                  // end while statement
              }                                                       // end for loop
                                                                     // set currency format for output
              NumberFormat moneyFormat =
                   NumberFormat.getCurrencyInstance( Locale.US );
                                                                     // add total to results
              results = "Total Sales for the week: " + moneyFormat.format( totSales );
                                                                     // show output
              JOptionPane.showMessageDialog ( null, results,
                   "Results", JOptionPane.PLAIN_MESSAGE );
              System.exit( 0 );                                   // terminate application
         }                                                            // end main method
    }          // end class definition

Maybe you are looking for

  • Video chats - sometimes works, most of the time does not

    98% of the time i either invite a buddy to video chat, or they invite me, we get an error message stating that the invitation was declined, or some other communication error. 2% of the time i can successfully video chat. i am confused as to why it wo

  • Can't see newly uploaded pictures in iPhoto

    Hi everybody, I'm facing a problem with iPhoto I don't know how to solve. I recently upgrade to iPhoto 9.3.2 on an iMac running Mac OS X 10.7.4 Since a few days, after uploading the picture from my camera into iPhoto, I can't see them in the thumbnai

  • JMC Frequently Asked Questions

    Java Mission Control is a tools suite for monitoring, managing and profiling Java applications running in production. It is free for development! This forum is mainly for the Java Mission Control Client. If you have questions about the JVM parts (for

  • Tricky bridge problem to studio out back in the woods.

    I've tried all sorts of configurations... here is the problem: Happy in the house with my MacBook and my husband's iMac using airport to the old clam- shaped Extreme and DSL. Would like to use my old iBook for internet work out at my studio space tha

  • ORA-01031 Unsufficient privileges

    Hello, I'm facing a weird issue. When logging with a specific user onto sqlplus, i'm able to issue a request which give me output. However when the very same request is issued from the web server i get the ORA-01031 error. I'm running Oracle 11.2.0.1