Some AS3 code needs to be AS2

As I have been told, the following code is mixing as2 and as3.
picHolder[1].onPress = function() {
          picHolder[1].width = card.width;
          picHolder[1].height = card.height;
          picHolder[1].x = 0;
          picHolder[1].y = 0;
          card.addChild(picHolder[1]);
I presume the AS3 code is whats inside the function (My addition), as the function code was there when following the as2 tutorial.  Basically, when the user clicks the image in array element 1, this image should be set as the background of the movieclip card.  How would I change the inside so that is was AS2 code?
cheers

Well, what I have done is
picHolder[1].onPress = function() {
          picHolder[1]._width = card._width;
          picHolder[1]._height = card._height;
          picHolder[1]._x = 0;
          picHolder[1]._y = 0;
          card.addChild(picHolder[1]);
Now it does slightly what I want, but it doesnt get placed into the movieclip how it should.  Not sure if I am doing everything how i should be doing it.

Similar Messages

  • Freelance Flash AS3 coder needed in Dublin Ireland

    Experienced freelance Flash AS3 coder needed to resolve issues on a  touchscreen interface built using Flash AS3.
    Needs to have experience with Timer Class and URLRequest  method.
    Anyone interested, please let me know.

    We've done these types of playbars before for other clients. Cannot promise anything, but we'll take a look at your requirements.
    For future reference, this link provides some information about commissioning a custom-built widget: http://www.infosemantics.com.au/catalog/widgets/Custom_WDGT_DevService/about
    The most important thing to remember is that anything like this will cost many times more than even the msot expensive widget you can buy online, because those widgets are sold hundreds of times over before the developer recovers their costs.  Development of one-off widgets need to be fully funded by the person that wants it.  If this widget isn't worth a lot to you, but would just have been "nice to have" you're probably NOT going to be interested in what it would cost to build.

  • Some eg code needed

    Hi,
       someone can send me some sample code showing the use of lock functions before updating any tables..i need the full code ..
           pls help me
    points will be rewarded
    ravi

    Ravi,
    I have one simple example and it will show what is lock objects exactly.
    See the program :
    *& Report  ZTEST_LOCK1
    REPORT  ZTEST_LOCK1.
    data i_plaf like plaf occurs 0 with header line.
    start-of-selection.
    select * from plaf into table i_plaf
                  where plnum = '0000005432'.
    loop at i_plaf.
    CALL FUNCTION 'ENQUEUE_EMPLAFE'
    EXPORTING
      MODE_PLAF            = 'E'
      MANDT                = SY-MANDT
       PLNUM                = i_plaf-plnum
      X_PLNUM              = ' '
       _SCOPE               = '3'
      _WAIT                = ' '
      _COLLECT             = ' '
    EXCEPTIONS
      FOREIGN_LOCK         = 1
      SYSTEM_FAILURE       = 2
      OTHERS               = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    break sy-uname.
    CALL FUNCTION 'LOESCHEN_PLANAUFTRAG'
      EXPORTING
      ECM61M                      =
      ECM61W                      =
        EPLAF                       = I_plaf
      MONTX                       =
      MDVL_FLAG                   = XFLAG
      RM_CONF                     = ' '
      APO_PROC                    = ' '
      EMT61D                      =
      ECM61B                      =
      USE_COLLECTIVE_UPDATE       = ' '
      LAST_ORDER                  = ' '
    TABLES
      MDSBX                       =
      MDPMZ                       =
    EXCEPTIONS
      UNDEFINED_INTERFACE         = 1
      OTHERS                      = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'DEQUEUE_EMPLAFE'
    EXPORTING
      MODE_PLAF       = 'E'
      MANDT           = SY-MANDT
      PLNUM           =
      X_PLNUM         = ' '
      _SCOPE          = '3'
      _SYNCHRON       = ' '
      _COLLECT        = ' '
    endloop.
    Ravi, Goto se11 ,use PLAF Table -> get one number from PLNUM field.
    keep the Plnum field in where clause in select query.
    now run the program ,already i setup break point after lock of planned order.
    once you are in debugging,then use MD12 Transaction ( Change Planned order),enter planned order number(what ever you use number in the program,use same number in MD12 Transaction)-> and see the results.
    you get message planned order number locked.
    basically the program does it deletes the planned order ,before deleteing i am just locking planned order number.
    do not use this program anywhere except dev system.
    Thanks
    Seshu

  • Would someone be willing to check as3 code for a guestbook

    Would someone be willing to check out some as3 code for a guestbook? I'm an old person, and can't seem to get it working.
    Thanks!

    Ned suggested that I post the code, so everyone could see it. The SWF works, but the code doesn't. Any help appreciated!
    package com.mgraph\
      //IMPORTS
      import flash.display.Loader;
      import flash.display.MovieClip;
      import flash.display.Sprite;
      import flash.display.StageAlign;
      import flash.display.StageScaleMode;
      import flash.events::EventDispatcher/dispatchEventFunction();
      import flash.events::EventDispatcher/dispatchEvent();
      import flash.events.MouseEvent;
      import flash.events.TextEvent;
      import flash.events.KeyboardEvent;
      import flash.geom.Rectangle;
      import flash.net::URLLoader/onComplete();
      import flash.net.URLRequest;
      import flash.net.URLRequestMethod;
      import flash.net.URLVariables;
      import flash.text.TextFieldAutoSize;
      import flash.text.TextFormat;
      import com.utils.StringUtils;
      import com.caurina.transitions.Tweener;
      import com.pageflip.Page;
      import com.pageflip.PageEvent;
      public class Guestbook extends MovieClip {
      //PRIVATE VARS
      private var myXML:XML;
      private var frm:TextFormat;
      private var popup_mc:MovieClip;
      private var greySprite:Sprite;
      private var initPosition:Number;
      private var dy:Number;
      private var initContentPos:Number;
      private var moveVal:Number;
      private var rectScroll:Rectangle;
      private var stageWidth:Number;
      private var stageHeight:Number;
      public function Guestbook(){
      addEventListener(Event.ADDED_TO_STAGE,init);
      private function init(e:Event):void {
      stage.showDefaultContextMenu = false;
      stage.align = StageAlign.TOP_LEFT;
      stage.scaleMode = StageScaleMode.NO_SCALE;
      stageWidth = stage.stageWidth;
      stageHeight = stage.stageHeight;
      // LOAD THE XML
      var xmlPath:String;
      var xmlLoader:URLLoader = new URLLoader;
      if (root.loaderInfo.parameters.myconfig) {
      // XML PATH FROM HTML flashvars (myconfig)
      xmlPath = root.loaderInfo.parameters.myconfig;
      else {
      // DEFAUL PATH OF XML
      xmlPath = "config.xml";
      xmlLoader.load(new URLRequest(xmlPath));
      xmlLoader.addEventListener(Event.COMPLETE,xmlLoaded);
      private function xmlLoaded(e:Event):void {
      // XML LOADED COMPLETE
      myXML = new XML(e.target.data);
      // ADD EVENT LISENER TO FIELDS AND TO (send_btn)
      form_mc.name_txt.addEventListener(TextEvent.TEXT_INPUT,clearAlert);
      form_mc.email_txt.addEventListener(TextEvent.TEXT_INPUT,clearAlert);
      form_mc.message_txt.addEventListener(TextEvent.TEXT_INPUT,clearAlert);
      form_mc.email_txt.addEventListener(Event.CHANGE,checkMail);
      addMouseEvent(form_mc.send_btn,sendEvent);
      // CREATE TEXT FORMAT (frm)
      frm = new TextFormat  ;
      frm.leading = 4;
      form_mc.message_txt.defaultTextFormat = frm;
      // LOAD BACKGROUND IMAGE
      var backLoader:Loader = new Loader();
      backLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,backLoaded);
      backLoader.load(new URLRequest(myXML.img_back));
      // ADD KEYBOARD EVENT WHEN PRESSING ENTER KEY
      stage.addEventListener(KeyboardEvent.KEY_DOWN,keyboardDown);
      // CREATE THE GREY SPRITE
      greySprite = new Sprite  ;
      greySprite.graphics.beginFill(0x000000,0.2);
      greySprite.graphics.drawRect(0,0,stageWidth,stageHeight);
      greySprite.graphics.endFill();
      greySprite.useHandCursor = false;
      // CREATE THE POPUP and ADD EVENTLISTENER TO (close_btn)
      popup_mc = new popup_obj;
      popup_mc.x = (stageWidth - popup_mc.width)/2;
      popup_mc.y = (stageHeight - popup_mc.height)/2;
      addMouseEvent(popup_mc.close_btn,closeEvent);
      private function keyboardDown(e:KeyboardEvent):void{
      if(e.keyCode == 13){
      // STOP USING BREAK LINE IN message_txt
      stage.focus = null;
      private function backLoaded(e:Event):void{
      // BACKGROUND LOADED COMPLETE
      var back_mc:MovieClip = new MovieClip;
      back_mc.addChild(e.target.content);
      addChildAt(back_mc,0);
      form_mc.wait_mc.visible = false;
      startPageFlip();
      // START LOADING GUEST MESSAGE FROM DATABASE
      load_guestbook();
      private function startPageFlip():void{
      var flipedPage:Page = new Page(this, stageWidth, stageHeight, 0, 0);
      flipedPage.turnPageForward();
      private function load_guestbook():void {
      // GET MESSAGES FROM DATABASE USING PHP
      var guestLoad:URLLoader = new URLLoader  ;
      var guestReq:URLRequest = new URLRequest(myXML.phpURL);
      guestReq.method = URLRequestMethod.POST;
      guestReq.data = new URLVariables  ;
      guestReq.data["getMessage"] = 1;
      guestLoad.addEventListener(Event.COMPLETE,bookLoaded);
      guestLoad.load(guestReq);
      private function bookLoaded(e:Event):void {
      // MESSAGES LOADED SUCCESSFULLY FROM DATABASE
      var bookXML:XML = new XML(e.target.data);
      showMessages(bookXML);
      private function showMessages(_xml:XML):void{
      var guest_mc:MovieClip;
      // CREATE (guest_mc) to SHOW EACH GUEST NAME & MESSSAGE
      for (var u=0; u<_xml.guest.length(); u++) {
      guest_mc = new messageObj  ;
      guest_mc.y = 95 * u;
      //CAPITALIZE THE FIRST CHAR IN NAME
      guest_mc._Name = StringUtils.capitalize(_xml.guest[u].name);
      guest_mc._Msg = _xml.guest[u].msg;
      guest_mc._Date = _xml.guest[u].sdate;
      guest_mc.guestName_txt.htmlText = setHtmlFormat(14,myXML.name_color,guest_mc._Name);
      //IF guestMessage_txt TEXT LENGTH > 110 substr guestMessage_txt AND ADD (...)
      guest_mc.guestMessage_txt.htmlText = setHtmlFormat(12,myXML.message_color,StringUtils.capitalize(StringUtils.truncate(_xml.gue st[u].msg,110,"...")));
      guest_mc.guestMessage_txt.setTextFormat(frm);
      guest_mc.tabChildren = false;
      guest_mc.tabEnabled = false;
      // ADD EVENT LISTISTENER  TO (readMore_btn) FOR EACH (guest_mc)
      addMouseEvent(guest_mc.readMore_btn,readEvent);
      msgContainer.addChild(guest_mc);
      // SHOW/HIDE SCROLL
      if (msgContainer.height < mask_mc.height) {
      scroller.scroll_btn.visible = false;
      else {
      this.mouseChildren = false;
      scroller.scroll_btn.y = 0;
      if(msgContainer.y != 10){
      Tweener.addTween(msgContainer,{y:10,time:1.5,onComplete:initScrollPos});
      else{
      initScrollPos();
      scroller.scroll_btn.visible = true;
      // ADD EVENT  TO SCROLL
      addMouseEvent(scroller.scroll_btn,scroll_Event);
      scroller.scroll_btn.addEventListener(MouseEvent.MOUSE_UP,scroll_Event);
      private function initScrollPos():void{
      this.mouseChildren = true;
      dy = 0;
      initPosition = scroller.scroll_btn.y = scroller.bar_mc.y;
      initContentPos = msgContainer.y;
      moveVal = (msgContainer.height-mask_mc.height)/(scroller.bar_mc.height-scroller.scroll_btn.height);
      rectScroll = new Rectangle(scroller.bar_mc.x + 4,scroller.bar_mc.y,0,scroller.bar_mc.height - scroller.scroll_btn.height);
      private function readEvent(me:MouseEvent):void {
      var _this = me.currentTarget;
      switch (me.type) {
      case "mouseOver" :
      _this.alpha = 0.8;
      break;
      case "mouseOut" :
      _this.alpha = 1;
      break;
      case "mouseDown" :
      // SHOW POPUP WITH MORE INFORMATIONS ABOUT THE CURRENT MESSAGE
      popup_mc.pop_nom.htmlText = setHtmlFormat(15,myXML.name_color,_this.parent._Name) + setHtmlFormat(13,myXML.datePosted_color," - Posted "+_this.parent._Date);
      popup_mc.pop_message.htmlText = setHtmlFormat(13,myXML.message_color,StringUtils.capitalize(_this.parent._Msg));
      popup_mc.pop_message.autoSize = TextFieldAutoSize.LEFT;
      popup_mc.pop_message.setTextFormat(frm);
      popup_mc.back_mc.height = popup_mc.pop_message.height + 50;
      popup_mc.x = (stageWidth - popup_mc.width)/2;
      popup_mc.y = (stageHeight - popup_mc.height)/2;
      addChild(greySprite);
      addChild(popup_mc);
      popup_mc.alpha = 0;
      greySprite.alpha = 0;
      Tweener.addTween(popup_mc,{alpha:1,time:0.6});
      Tweener.addTween(greySprite,{alpha:1,time:0.6});
      break;
      private function setHtmlFormat(_size:Number,_color,_txt:String):String{
      var htmlFrm:String  = "<font size='"+_size+"'color='"+_color+"'>"+_txt+"</font>";
      return htmlFrm;
      private function closeEvent(me:MouseEvent):void {
      switch (me.type) {
      case "mouseOver" :
      popup_mc.close_btn.alpha = 0.8;
      break;
      case "mouseOut" :
      popup_mc.close_btn.alpha = 1;
      break;
      case "mouseDown" :
      if (stage.contains(popup_mc)) {
      Tweener.addTween(greySprite,{alpha:0,time:0.6,onComplete:function(){removeChild(greySprit e)}});
      Tweener.addTween(popup_mc,{alpha:0,time:0.6,onComplete:function(){removeChild(popup_mc)}} );
      break;
      private function scroll_Event(me:MouseEvent):void {
      switch (me.type) {
      case "mouseOver" :
      scroller.scroll_btn.alpha = 0.7;
      break;
      case "mouseOut" :
      scroller.scroll_btn.alpha = 1;
      break;
      case "mouseUP" :
      scroller.scroll_btn.stopDrag();
      scroller.scroll_btn.removeEventListener(Event.ENTER_FRAME, scrollMove);
      break;
      case "mouseDown" :
      scroller.scroll_btn.startDrag(false, rectScroll);
      scroller.scroll_btn.addEventListener(Event.ENTER_FRAME, scrollMove);
      stage.addEventListener(MouseEvent.MOUSE_UP, releaseOut);
      break;
      private function scrollMove(event:Event):void {
      dy = Math.abs(initPosition - scroller.scroll_btn.y);
      msgContainer.y = Math.round(dy * -1 * moveVal + initContentPos);
      private function releaseOut(me:MouseEvent):void {
      scroller.scroll_btn.stopDrag();
      scroller.scroll_btn.removeEventListener(Event.ENTER_FRAME, scrollMove);
      stage.removeEventListener(MouseEvent.MOUSE_UP, releaseOut);
      private function sendEvent(e:MouseEvent):void {
      switch (e.type) {
      case "mouseOver" :
      form_mc.send_btn.alpha = 0.7;
      break;
      case "mouseOut" :
      form_mc.send_btn.alpha = 1;
      break;
      case "mouseDown" :
      // CHECK FIELDS AND EMAIL THEN SEND DATA TO PHP
      if (form_mc.name_txt.text == "") {
      stage.focus = form_mc.name_txt;
      show_alert("You must enter the : « Name »");
      else if (form_mc.email_txt.text == "") {
      stage.focus = form_mc.email_txt;
      show_alert("You must enter the : « E-mail »");
      else if (form_mc.validating.currentFrame == 1) {
      stage.focus = form_mc.email_txt;
      form_mc.validating.alpha = 1;
      form_mc.validating.gotoAndStop(1);
      show_alert("« E-mail » address is incorrect");
      else if (form_mc.message_txt.text == "") {
      stage.focus = form_mc.message_txt;
      show_alert("You must enter the : « Message »");
      else {
      sendData();
      break;
      private function checkMail(e:Event):void {
      form_mc.validating.alpha = 1;
      var mail_validation:RegExp = /^[a-z][\w.-]+@\w[\w.-]+\.[\w.-]*[a-z][a-z]$/i;
      mail_validation.test(form_mc.email_txt.text);
      if (mail_validation.test(form_mc.email_txt.text) == true) {
      form_mc.validating.gotoAndStop(2);
      form_mc.alert_txt.text = "";
      else {
      form_mc.validating.gotoAndStop(1);
      private function clearAlert(te:TextEvent):void {
      if (form_mc.alert_txt.text != "") {
      form_mc.alert_txt.text = "";
      private function show_alert(txt:String):void {
      form_mc.alert_txt.htmlText = "<font color='" + myXML.alert_color + "'>" + txt + "</font>";
      private function sendData():void {
      // SEND NAME-EMAIL-MESSAGE TO PHP
      this.mouseChildren = false;
      form_mc.wait_mc.visible = true;
      var phpLoad:URLLoader = new URLLoader  ;
      var phpReq:URLRequest = new URLRequest(myXML.phpURL);
      phpReq.method = URLRequestMethod.POST;
      phpReq.data = new URLVariables  ;
      phpReq.data["name"] = StringUtils.stripTags(form_mc.name_txt.text);
      phpReq.data["email"] = form_mc.email_txt.text;
      phpReq.data["message"] = StringUtils.stripTags(form_mc.message_txt.text);
      phpLoad.addEventListener(Event.COMPLETE,insertPHP);
      phpLoad.load(phpReq);
      private function insertPHP(e:Event):void {
      this.mouseChildren = true;
      var phpXML:XML = new XML(e.target.data);
      form_mc.send_btn.mouseEnabled = true;
      form_mc.wait_mc.visible = false;
      if (phpXML.inserted == 1) {
      startPageFlip();
      form_mc.alert_txt.htmlText = myXML.insert_ok;
      form_mc.validating.alpha = 0;
      form_mc.validating.gotoAndStop(1);
      while (msgContainer.numChildren) {
      msgContainer.removeChildAt(msgContainer.numChildren-1);
      // SHOW THE CURRENT POSTED MESSAGE AND CLEAR FIELDS
      showMessages(phpXML);
      clearFields();
      else {
      form_mc.alert_txt.htmlText = myXML.insert_error;
      private function clearFields():void {
      form_mc.name_txt.text = "";
      form_mc.email_txt.text = "";
      form_mc.message_txt.text = "";
      form_mc.validating.gotoAndStop(1);
      form_mc.validating.alpha = 0;
      private function addMouseEvent(_targ,_func):void {
      _targ.buttonMode = true;
      _targ.mouseChildren = false;
      _targ.addEventListener(MouseEvent.MOUSE_OVER,_func);
      _targ.addEventListener(MouseEvent.MOUSE_OUT,_func);
      _targ.addEventListener(MouseEvent.MOUSE_DOWN,_func);

  • I need to make a task with less as3 code and more timeline structure and event dispatcher !

    I went to an interview in a big company. I had to make a  task in which there is a wall with 3 lines and 5 columns filled with bombs.When you click on a bomb the bomb changes its scale, a robot enters, goes under the bomb and takes it, then goes to a smaller wall, makes the bomb smaller and place it at the same place it had been in the previous wall.I made the task with tween througout as3 code.The interviewer told me it was good but i need to make it with the less code possible and with more complex timeline structure and to use event dispatcher.What is the best way to do this ?

    The immediate thing that comes to mind is they might want to see that you can balance work between design teams and development teams.
    To do that, the robots movements (pick up bomb, bomb grows/shrinks, arms/treads/legs moving, sequences of 'doing things') can be timeline based so animators can work on those separate from code.
    Developers would be working on the logic of keeping score, moving the robot around to the correct spot with path detection, collision detection, etc.
    It's very similar to thinking in simple factories (which Flash is good at being automatically with timelines), and a bit of MVC (or just VC in some cases).
    Big companies have lots of different types of employees so you'll probably be very specific in your role so you're efficient.

  • Can someone pls help me to change AS3 code to AS2 code

    Hello! Dear All,
    I dont understand why with AS3 code my swf file is not working smooth at all. I would like to try it with AS2. In publish setting when I am selecting Flash Player 8, AS2 my swf is running good but showing lots of code errors.
    I dont have much knowledge about AS2 so if someone can help me with this...it would be great.
    Thanks,
    Cheers!
    Code1:
    import flash.external.ExternalInterface;
    ExternalInterface.addCallback("GetVars",GetVars);
    ExternalInterface.addCallback("SetVariable1",SetVariable1);
    function GetVars():Array {
    return [
      {VariableName:"SetVariable1",DefaultValue:"Variable1"}
    function SetVariable1(variable:String):void {
    for (var i:int = 0; i < numChildren; i++) {
      var mc:MovieClip=getChildAt(i) as MovieClip;
      if (mc!=null&&mc.name=='Audi_Cup') {
       mc.variable1=variable;
       mc.SetVariable1(variable);
    Code 2
    this.mask_mc.cacheAsBitmap=true;
    this.mask_mc.cacheAsBitmap=true;
    Text1.mask=(mask_mc);
    function SetVariable1(variable:String):void {
    if (variable!=null) {
      for (var i:int = 0; i < numChildren; i++) {
       var mc:MovieClip=getChildAt(i) as MovieClip;
       if (mc!=null&&mc.name=='Text1') {
        var object:TextField=mc.getChildByName('InputTextField1') as TextField;
        if (object!=null) {
         object.text=variable;
    SetVariable1(this.variable1);

    it's possible, but unlikely, you'll fix anything by converting to as2.  so, what problems are you having with as3?

  • [svn:bz-trunk] 23143: Certain code needs to check the existence of the class validation validator  (some brokers and other listeners) during message broker init, however the validator was not being created till the very end of the method .

    Revision: 23143
    Revision: 23143
    Author:   [email protected]
    Date:     2011-10-27 06:31:02 -0700 (Thu, 27 Oct 2011)
    Log Message:
    Certain code needs to check the existence of the class validation validator (some brokers and other listeners) during message broker init, however the validator was not being created till the very end of the method.  Promote it to be at the top instead of at the bottom.
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/config/MessagingConfiguration.java

    Revision: 23143
    Revision: 23143
    Author:   [email protected]
    Date:     2011-10-27 06:31:02 -0700 (Thu, 27 Oct 2011)
    Log Message:
    Certain code needs to check the existence of the class validation validator (some brokers and other listeners) during message broker init, however the validator was not being created till the very end of the method.  Promote it to be at the top instead of at the bottom.
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/config/MessagingConfiguration.java

  • Can AS1 code call AS3 code?

    I was wondering if there was any way for AS1 code to call AS3
    code.
    I need to write a server extension for SmartFox Pro. I just
    found out that the only version of action script that SmartFox
    sever extensions can be written in is AS1. However, I have a bunch
    of code already written in AS3 that I need to use. I have all of
    the source for the AS3 code.
    Is there a way for me to use my existing code, or am I out of
    luck?
    Thanks in advance
    John Lawrie

    you may be able to use swfbridge to do so, basically
    implementing the LocalConnection class
    http://www.gskinner.com/blog/archives/2007/07/swfbridge_easie.html

  • Dbms_ldap example code need to get me started

    Hi,
    I need to get a users department name from inside the oid, I no nothing about oid and ldap but I believe you need to use dbms_ldap. Does anybody have some sample code of how to do this.
    Thanks in anticipation.

    Hello
    here's a link to the docs, this is the internet directory app developers guide and there's an examples section at the bottom:
    http://download-west.oracle.com/docs/cd/B10501_01/network.920/a96577/toc.htm
    And this is a direct link to the supplied examples:
    http://download-west.oracle.com/docs/cd/B10501_01/network.920/a96577/smplcode.htm#636613
    HTH

  • MM_ARRANG_GET_TAX_PERCENTAGE iam geting  this message for some tax code lik

    Hi experts
    i need tax percentage , i used this function module
    MM_ARRANG_GET_TAX_PERCENTAGE
    import parameter
         I_MWSKZ  = c1.
         I_BUKRS  = 1000
          I_WAERS  = inr
    iam geting  this message for some tax code like c1 ,t2, t3
    message : Tax code C1 country IN does not exist in procedure ZAXINN
    other taxcodes  v0,v2 s2,s3 are got  percentage, it's proper result.
    please give me  sugession.

    HI Friend,
    Use the Functional module  FI_TAX_GET_CONDITION, this will be used in case ur using the in acsess sequence tax classification (ie A003 table)
    pass the inputs like
    I_BUKRS >> company code
    I_LAND1>> country
    I_KALSM>> tax procedure
    I_MWSKZ>> tax code
    I_TXJCD>> tax juriduction code
    I_KSCHL>> condition type
    I_KTOSL>> transaction
    I_TDATE>> date
    the functional module your using will not give the proper results
    Regards
    Pramod

  • [svn:fx-3.x] 7966: Clean up some packaging code

    Revision: 7966
    Author:   [email protected]
    Date:     2009-06-18 12:30:22 -0700 (Thu, 18 Jun 2009)
    Log Message:
    Clean up some packaging code
    bug: no
    qa: no
    Modified Paths:
        flex/sdk/branches/3.x/build.xml

    Back up all data to at least two different storage devices, if you haven't already done so. One backup is not enough to be safe. The backups can be made with Time Machine or with Disk Utility. Preferably both.
    Erase and install OS X. This operation will destroy all data on the startup volume, so you had be better be sure of the backups. If you upgraded from an older version of OS X, you'll need the Apple ID and password that you used, so make a note of those before you begin.
    When you restart, you'll be prompted to go through the initial setup process in Setup Assistant. That’s when you transfer the data from a backup.
    Select only users and Computer & Network Settings in the Setup Assistant dialog—not Applications or Other files and folders. Don't transfer the Guest account, if it was enabled.
    After that, check the App Store for software updates.
    If the problem is resolved after the clean installation, reinstall third-party software selectively. I can only suggest general guidelines. Self-contained applications that install into the Applications folder by drag-and-drop or download from the App Store are usually safe. Anything that comes packaged as an installer or that prompts for an administrator password is suspect, and you must test thoroughly after reinstalling each such item to make sure you haven't restored the problem.
    I strongly recommend that you never reinstall commercial "security" products or "utilities," nor any software that changes the user interface or the behavior of built-in applications such as Safari. If you do that, the problem is likely to recur.
    Any system modifications that you do choose to install must be kept up to date. None is required for normal operation.
    Before installing any software, ask yourself the question: "Am I sure I know how to uninstall this without having to wipe the volume again?" If the answer is "no," stop.
    Never install any third-party software unless you know how to uninstall it.

  • Do we have a user exit to write some custom code at the R3 Logoff event

    Hi Colleagues,
    is it possible to have some custom code at the Log Off event. I mean when the user logs off from the R/3 system, do we have a user exit to write some custom code at that time?
    Thanks,
    Gaurav

    Hi Venkat,
    I suppose you are aware of the fact that for custom infotype, you need to create custom segment and custom message type. This process can be found at- **************** - Step-by-step guide to ALE and IDOCs
    You need to also know about the change pointer and job scheduling concept for the same. You can refer to this link- Resource Configuration Notes (Sun Identity Manager 8.1 Resources Reference)
    I hope studying these links will make you achieve your goal. All the best
    Tip- Try out each step that has been mentioned these links
    Regards,
    Ajinkya

  • Simple codes needed

    Hi,
    I need some straightforward codes to directly enable the whole row of the ADF table once "Edit" is clicked, that can be put inside the event of the Edit button.
    http://www.4shared.com/photo/7vhXTISI/fig112.html
    Best regards

    Hi,
    actually tables are stamped, which means you either have read only rows or editable rows. The clickToEdit mode that Shay pointed you to is an exception to this. A possible work around to your problem is to use an af:switcher component for rendering a table row's cells as inputText fields or outputText fields. In this case, each column need to have something like
    <af:column ...>
    <af:switcher defaultFacet="readOnly" facetName="#{myBean.facetValue}">
      <facet name="readOnly">
            <af:outputText value="#{row.bindings.attributeName.inputValue}" .../>
    </facet>
      <facet name="edit">
            <af:inputputText value="#{row.bindings.attributeName.inputValue}" .../>
    </facet>
    </af:switcher>
    </af:column>
    ...You then create a managed bean with a property facetValue. The getFacetValue property would look similar to
    // use a JSF ValueExpression to resolve the #{row} variable. This is a handle to the current rendered row when the table repaints
    //from the row variable, get the rowKey
    //compare the rowKey with the current selected row in the ADF binding
    //if they match
    if(renderedRow==currentRow && editFlag==true){
    return "edit"
    else{
    return "readOnly"
    }From your button, you then set an editFlag property in the managed bean to true/false and partially refresh the table so it repaints with teh current row becoming editable. Wondering however why instead you don't want togo with Shay's suggested click to edit approach
    Frank

  • Some JAXB code to read?

    I am wondering if anyone would be so kind as to provide me with some example
    code showing a class that outputs the following document:
    <?xml version='1.0' encoding='utf-8'?>
    <parameters>
         <fileBoxInfo>
              <filename>r:\files\practice\file.txt</filename>
              <filename>r:\files\practice\file2.txt</filename>
                    <filename>r:\files\practice\file3.txt</filename>
         </fileBoxInfo>
         <reports>
              <reportName>Report</reportName>
         </reports>
    </parameters>I mostly want to see the actual code to parse output the XML document, i am
    a bit confused as to how this works. I did a search and many of the places I
    found suggested outputing the XML document using write statements, and
    building the XML lines using the String class i.e.=
    "<" + tagName + ">" + value + "</" + tagName ">" ;
    but I would rather learn the nitty-gritty stuff, as ugly as it very well may be.
    Can anyone help me? this is NOT for homework, this is a project i am doing
    at work where i have the opportunity to learn JAXP and JAXB.
    I sincerely appreciate any help you give. Thanks in advance

    1. U need to have a XML schema defined first for ur XML
    2. Download Java WebServices Developer Pack
    3. use JAXB compiler to generate the binding code
    4. Then u can use JAXBContext, Marshaller etc classes to output the below XML
    YES, it is not as straight forward as we expect.

  • Back from AS3 code into manual adjustment of properties

    Halo.
    Assuming that I change some properties of an DisplayObject on Stage via AS3 code (for example with the use of Tweener).
    In that situation the DisplayObject won't respond any more to manual changes made via Properties Panel and keyframes on Timeline.
    So, is there any way to make the Display Object again vulnerable for keyframes?
    PS:  MyDisplayObject = null;  unfortunately is not a solution in this case.
    Regards

    Not that I know of. Actionscript trumps the timeline. Once you have changed a property, either by changing that property at a keyframe or by Actionscript, that property is changed and will not revert to some earlier state.

Maybe you are looking for

  • VMware Fusion Update, now PC side no longer sees network

    I had installed VMware Fusion V 1.1.2 on my MB Pro and had set set up network printing and file sharing. Then a couple of days ago I updated to 1.1.3, and now I can no longer see my work network, and my printer is nolonger there. I can still connect

  • Logical System not appearing in SLD

    Hello Friends, Logical System of SAP R/3 system is not appearing in SLD. The logical system is available in backend ABAP System. I have even run the RZ70 data collection programs as well. However, I am not able to populate the logical system names in

  • Schedule lines not getting created while applying  exit at line item

    Hii all, First of all , I will explain my scenario. I have a requirement to give pop up screen in VA01 to get order quantity as per business requirement. i have used customer exit MV45AFZZ , USEREXIT_MOVE_FIELD_TO_VBAP . in this exit i m calling my Z

  • Insert using Spatial Index fails when called from PHP

    I have a stored procedure that inserts into a table with a spatial index on one of its fields. When I run the procedure from SQL Server Management Studio it runs just fine. When I run it from PHP, it returns the error: "INSERT failed because the foll

  • User csv file upload

    Hi Guys, How would you perform a user csv upload? I know how to do it with Data Load, but how would you perform a user upload? P.