Simple game code problem

I need a simple code, when my character touches a wall I want
to goto frame 5 where it says you lose! My code is:
onClipEvent (enterFrame){
if(this.hitTest(_root.char)){
gotoAndPlay(4);
Note....my character has a instance of char.
Thank you in advance :)

Is it possible to look at the code so I can see what is
happening

Similar Messages

  • Simple Java Code Problems inc Compiling

    Heya all ive been working on a portfolio for the last few weeks and i have a couple of problems with certain programs i have tryed to make , would it be possable for someone to point out where im going wrong and give me some kind of information on how to correct the problem
    Problem 1
    import java.util.*;
    public class Number4
    public static void main(String[] args)
    // input the Number
    double Integer;
    System.out.print("Enter a Number : ");
    Scanner kybd = new Scanner(System.in);
         Integer = kybd.nextInt();
    // process the Number to produce either Positive,Negative or Zero
    String Number;
    if ( Integer > 0 )
         Number = "Positive_";
    else if ( Integer < 0 )
         Number = "Negative_";
    else
         Number = "Zero_";
    System.out.print("The Number is " + Number);
    if (Integer %2 ==0)
    System.out.println("The number is Even");
    else
    System.out.println("The number is Odd");
    This program works fine but when i input a zero i get " The Number is Zero _ The Number is even " , I wish for it to only display "The Number is Zero"
    Also as a side note is there a way to make a space withought using "_"

    mlk wrote:
    When you post code, please use code tags as described in [Formatting tips|http://forum.java.sun.com/help.jspa?sec=formatting] on the message entry page. It makes it much easier to read.
    The Formatting tips page no longer has formatting tips. o_O
    ~

  • Simple game design,

    so I have a basic understanding of java, I took a class on it this spring and did well. I am wanting to make a simple game, a single picture, a map, that is clicked.
    based on the location clicked, the player gets an item. this is an online game.
    I am going to use SQL for this game on the back end. it will have a db with two tables, users, and map.
    users will have user name, user ID, items owned, tools, and searched today.
    map Im not quite sure about yet.
    so basically, Im trying to figure out how I should go about this. Im not quite ready to hack code yet, I need to get a good plan together and make sure I go about this correctly.
    can I open this for discussion and get some help on designing this. Im trying to stay really very simple, so as not to undertake too much.
    this is my outline right now:
    login: a screen with name and pass fields, an ok button. when the button is clicked, the program checks the db for the name, and verifies the password, if everything is in order, goto the account screen, possibly a cookie or session of some sort is set.
    account screen: show the username, items owned and number of each, any tools or special items owned. button to logout, button to goto map. radio buttons on the tools to determine which one, if any, is equipped. there should also be a special area near the top that shows what item was found on the previous day.
    map screen: this is a small image of a map. the user clicks and shows a pin placed, as well as any other pins currently on the map for the day. a search button that when clicked, locks in the location untill the end of the day.
    the user can search one location per 24 hour period, server time.once a location is picked, its locked in till server is rolled to new day. based on the location, and the tool selected, the player gains an item, these will be used for creating items and such in a later game that is tied to the IP.
    pretty simple, login, pick a tool, pick a location, complain in the forum that you can't find good items, and that the main game isnt done, move on till tomorrow :)
    I need to go over each part in detail and do this right. I should mostly be SQL with a graphic frontend, which as of now Im choosing Java for, so this can run in a web browser. Im also considering PHP, but I fear it wont be dynamic enough. Flash is my other choice. I would like to get a good idea of what I need to do for each aspect before I make it. The screens I will make in netBeans, probably using Swing, and all of my actual logic will be in click events.
    Help me out guys, I need to talk about this step by step with someone.

    lord_midnight wrote:
    ]morgair: I have done some small projects here n there, mostly just demos, I am almost finished with a retro styled platformer, just placing tiles and entities, finishing up the art, code is done except for a few custom routines for a boss. this project is actually pretty small, other than being online, its a good choice for a first game type of project. Im confident it is within my skillset.Thank you for the reply, I was unsure what level of help you needed, many on here come in and have never done any programming before, let alone, an actual game on-line or otherwise. It's nice to hear where you're at.
    ]mrw: yeah, its not so much that I have a problem, I just want to make sure I think everything through before I start. Im trying to get a good grasp of what Im doing, so I don't have very many problems, Im sure I'll have a few though, somehow no matter how much I plan, something goes awry.
    ]soultech2012: Im actually in college, I took java this spring, and Im taking advanced java as soon as its offered online. still, its not so much instruction I want, as discussion.
    maybe I was not being so clear, Im not looking for anyone to write code, or tell me what to do, I want to talk with people, Im sure I will have direct questions at some point, but right now, I want to think it through. If anything, another set of eyes looking at the design, pointing out possible snags or logic problems. its pretty simple as far as games go, I did some prototyping in flash last night, I think this will be pretty easy. does anyone see any serious problems in the design ?
    I think it will make a nice little game, its not meant to take much time out of the players day, just a 2-5 minute jaunt into my website. login, pick a spot on the map, select a tool to use to help gather items, and slowly over several weeks, have accumulated a collection of goods for a game Im doing at a later date.
    getting the x,y will be easy, I have done a couple of very simple apps that interact with SQL,
    the only real logic parts of this are some ifs or a switch, and adding to a field in SQL.
    getting pixel color might be tricky, it was easy in flash, and Im pretty sure I saw a similar function last time I browsed the javadocs, so Im not too concerned.I like to use getRGB and setRGB from a BufferedImage.
    honestly, I looked around and I can all but make this in javascript and PHP/SQL, java might be overkill.
    anyone see any obvious ways to cheat the game ?If you store any logic on the client side they can easliy find and modify it, that way they can have a super character or all of the items. Runescape is perfect example of this, they run client server and there are groups that have made their own client to cheat with.
    am I underestimating the complexity of the task ? I have plenty of time to work on it, no hurry, but Im hoping to have something on the site within the next month or so.That is doable, If you are careful in your implementation, you can build a basic game engine and then work on map and support making for facilitate different levels.
    I need to make a list of terrains, the colors Im using for them, and items found, and I need to draw out a table that Im using to plot out the sql.
    Im taking PHP/SQL this fall, Im starting to get the hang of it, and I have a pretty good grasp of basic programming concepts. this should be well within reach, honestly, its glorified tic-tac-toe, or match-findingThe big things that seem to pop up for people are:
    Picking up items
    putting down an item
    weilding an item
    using an item
    combat
    breaking off combat
    automatic path plotting (least cost algo from map)
    frequency of random events
    regeneration of items
    regeneration of health
    real language interaction with characters (pattern matching for content)
    Just remember: choose what you want and don't let the scope of your game creap or you'll have a bunch of code that has no implementation end in sight. Keep your compiles short and changes departmentalize so you can have running code that works from one feature to another. I see a lot of people--experirenced too--that literally throw hundreds of lines of code out and then try to debug it after they make changes thorughout the stable code base to allow integration of the new feature; this can be very daunting, keep it as simple as possible to integrate new features--small steps are good.
    thanks for the input, and comments are welcome, best I can offer is thanks and bonus tools in the game once its done, so thank you.

  • Calling simple Java Code from 11g BPM

    Hi,
    I know this has been round the houses but I cant find a satisfactory solution for my scenario. I would like to call some simple java code from BPM (11.1.1.6). I guess I need to expose it as a service but it seems overkill to be via soap so any advice you can give would be much appreciated. Creating a jar that I can call somehow would be perfect.
    This is my scenario:
    - I am creating a Security POC for BPM
    - The BPM Process is exposed as a web service and authenticated using SAML
    - I am testing by calling the WS from OSB
    - I want to be able to get the WLS Principal and display the username and the roles for the launching user, from within the BPM process
    - This is possible using some simple weblogic client api code shown below
    - So all I want to do is call this code from BPM somehow
    - Anyone point me in the right direction ?
    cheers
    Tony
    subject = Security.getCurrentSubject();
    for(Principal p: subject.getPrincipals()) {
    if(p instanceof WLSGroupImpl) {
    groupList.add(p.getName());
    } else if (p instanceof WLSUser) {
    principal = p.getName();
    }

    The problem to communiate java classes and forms solved !
    i have add my .jar file to $OA_JAVA/oracle/apps/fnd/jar and now i can communicate between forms and java.
    I can create an object, i can get simple message from class, but when i try to create
    ServiceFactory factory = ServiceFactory.newInstance();
    ive got ORA-105100...
    can anybody help ?

  • How to design a simple game?

    my programming skills are pretty much limited and as most beginners i was coding simple things by build and fix method, but wanna try to do it properly so i'm looking for help. i've been trying to design simple Connect4 game and as i'm coding in java i taken oo aproach. i'll explain exactly steps i've taken and i'd really appreciate if someone familiar with oo design and software engineering in all would point out what i'm douing wrong and if theres is anything ok with my approach.
    1. i've started with use-case modelling and created first scenario
    scenario created:
    1. user clicks start button
    2. player1 is presented with empty board and asked to insert token in column of his choice
    3. player1 clicks on column where he wants to insert token. token drops (appears) in chosen column
    4. player2 is asked to insert token into column
    5. player2 clicks on column where he wants to insert token
    token drops (appears) in chosen column
    6. steps 2-5 are repeated
    7. player1 connects 4 in a row and information is displayed player1 has won
    i know scenarios should include every possible way of utilizing the software but it gives countless possbilities and i was wonder if scenario for every single way of utilizing the product should be created or maybe not? i suppose that number of scenarios depends on how the product is complicated but in case of very simple game like connect4 aproximately how many scenarios would be expected?
    2. having above scenario ready i've used noun extraction method to extract candidate classes and so i have:
    players inserts tokens into the board consisting of 7 rows and 6 columns. players trying to connect their four tokens in a row (horizontally, vertically or diagonally) to win.
    classes extracted:
    player
    token
    board
    row
    column
    assuming that state of token, row, column will not change, i skipped those and left only two classes board and player. after a while i also noticed that another class named connect4 would be needed to put it all together.
    3. having one scenario ready and classes extracted i went directly to drawing sequence state diagram which i've put here
    4. next i draw detailed class diagram (here) and more or less decided on methods for every class
    5. then i started writing pseudocode but while writing i'm finding myself adding additional methods, variables etc and keep changing design while coding, what dosent seem to be a good practice. i was wonder how it works in real life and what is the chance to get application designed correctly for the first time, i mean extract the classes with methods etc.
    to be honest i got lost a little cause according to shach's book i missed state diagram and few other things and dont know how important those bit are in real life and designing real software. as i said i'm real beginner in software engineering and any help would be much appreciated. than you very much in advance for any comments regarding my design and help

    i know scenarios should include every possible way of
    utilizing the software but it gives countless
    possbilities and i was wonder if scenario for every
    single way of utilizing the product should be created
    or maybe not? i suppose that number of scenarios
    depends on how the product is complicated but in case
    of very simple game like connect4 aproximately how
    many scenarios would be expected?Very few. This program is small and the interaction
    with the user is minimal.
    2. having above scenario ready i've used noun
    extraction method to extract candidate classes and so
    i have:
    player
    token
    board
    row
    column
    assuming that state of token, row, column will not
    change, i skipped those and left only two classes
    board and player. after a while i also noticed that
    another class named connect4 would be needed to put it
    all together.Things like "player" or "person" are rarely if ever real classes.
    Imagine you were designing the control program for an
    elevator. Just because a person clicks on the button for
    a floor doesn't mean you make them a class in your design.
    Likewise, just because a player clicks on a column doesn't
    mean you make them a class.
    In reality, this program is small enough for one major class,
    the gameboard itself. You may have an enum for the token
    color but that's about it.
    What can you do with this gameboard? Not much:
    1. Add a token to column X.
    2. Check for a win.
    3. Obtain a copy of the board.
    Your gameboard only has to maintain the state of the
    board and allow you to add a token or check for a win.
    Your class to display the gameboard and accept user
    input will probably be larger than anything else.
    You can write this program with only two classes. The
    gameboard and the display.
    3. having one scenario ready and classes extracted i
    went directly to drawing sequence state diagram which
    i've put hereOverkill for a program of this size.
    4. next i draw detailed class diagram (here) and more
    or less decided on methods for every classAlso overkill for a program of this size. Unless this is
    an assignment at work or school, all of these documents
    are unnecessary and likely to be several times larger than
    your entire program.
    5. then i started writing pseudocode but while writing
    i'm finding myself adding additional methods,
    variables etc and keep changing design while coding,
    what dosent seem to be a good practice. i was wonder
    how it works in real life and what is the chance to
    get application designed correctly for the first time,
    i mean extract the classes with methods etc.If you find your design doesn't work while writing code
    then yes, you should go back and change your design
    document. This isn't too big of a sign of disaster unless
    you need to step back another step and change the
    requirements document. That's usually a sign you
    really messed up.
    By all means, go back and change the design document
    if you need to before you finish coding.
    In this case however, its probably overkill.
    to be honest i got lost a little cause according to
    shach's book i missed state diagram and few other
    things and dont know how important those bit are in
    real life and designing real software. as i said i'm
    real beginner in software engineering and any help
    would be much appreciated. than you very much in
    advance for any comments regarding my design and helpIts next to impossible to go through a structured design
    process on a project this small while working by yourself.
    You really need a bigger project with multiple team members
    to see how its all supposed to play out.
    Projects of this size are written almost as soon as you start
    thinking about them and any documentation you generate will
    dwarf your source code printout.

  • SIMPLE Database Design Problem !

    Mapping is a big problem for many complex applications.
    So what happens if we put all the tables into one table called ENTITY?
    I have more than 300 attributeTypes.And there will be lots of null values in the records of that single table as every entityType uses the same table.
    Other than wasting space if I put a clustered index on my entityType coloumn in that table.What kind of performance penalties to I get?
    Definition of the table
    ENTITY
    EntityID > uniqueidentifier
    EntityType > Tells the entityTypeName
    Name >
    LastName >
    CompanyName > 300 attributeTypes
    OppurtunityPeriod >
    PS:There is also another table called RELATION that points the relations between entities.

    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    check the coloumn with WHERE _entityType='PERSON'
    as there is is clustered index on entityType...there
    is NO performance decrease.
    there is also a clustered index on RELATION table on
    relationType
    when we say WHERE _entityType ='PERSON' or
    WHERE relationType='CONTACTMECHANISM'.
    it scans the clustered index first.it acts like a
    table as it is physically ordered.I was thinking in terms of using several conditions in the same select, such as
    WHERE _entityType ='PERSON'
      AND LastName LIKE 'A%' In your case you have to use at least two indices, and since your clustered index comes first ...
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Have you ever thought of using constraints in your
    modell? How would you realize those?
    ...in fact we did.We have arranged the generic object
    model in an object database.The knowledge information
    is held in the object database.So your relational database is used only as a "simple" storage, everything has go through your object database.
    But the data schema is held in the RDBMS with code
    generation that creates a schema to hold data.If you think that this approach makes sense, why not.
    But in able to have a efficent mapping and a good
    performance we have thought about building only one
    table.The problem is we know we are losing some space
    but the thing is harddisk is much cheaper than RAM
    and CPU.So our trade off concerated on the storage
    cost.But I still wonder if there is a point that I
    have missed in terms performance?Just test your approach by using sufficiently data - only you know how many records you have to store in your modell.
    PS: it is not wise effective using generic object
    models also in object databases as CPU cost is a lot
    when u are holding the data.I don't know if I'd have taken your approach - using two database systems to hold data and business logic.
    PS2: RDBMS is a value based system where object
    databases are identity based.we are trying to be in
    the gray area of both worlds.Like I wrote: if your approach works and scales to the required size, why not? I would assume that you did a load test with your approach.
    What I would question though is that your discussing a "SIMPLE Database Design" problem. I don't see anything simple in your approach when it comes to implementation.
    C.

  • KeyListener for a simple game?

    I am begining to write a simple game, and I can't get the keyListener to work. I had written a pong game on jdk 1.3.1 and it worked fine. I used public boolean keyDown(Event e,int key){. I have been looking all over and can't find a keyListener that works on 1.4.1. Any help would be appreciated. So far I have:
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    public class Game extends Applet implements KeyListener,Runnable {
         Toolkit toolkit = Toolkit.getDefaultToolkit();
         static Image picture;
         Graphics offscreen,g;
         Image image;
         int x=1,y=10;
         static final int REFRESH_RATE = 200;
         Thread animation;
         public void update(Graphics g) {
              paint(g);
         public void init(){
              image=createImage(500,300);
              offscreen = image.getGraphics();
              picture = toolkit.getImage("Neo1.gif");
         public void start(){
              animation = new Thread(this);
              if(animation!=null){
                   animation.start();
         public void paint(Graphics g){
              offscreen.drawImage(picture,75+y,60,32,46,this);
              g.drawImage(image,0,0,this);
         public void keyTyped(KeyEvent e){
            //Anything I put here does not work???
         public void keyPressed(KeyEvent e){
         public void keyReleased(KeyEvent e){
         public void run(){
              while(true){
                   repaint();
                   try{
                        Thread.sleep (REFRESH_RATE);
                   } catch(Exception exc) { };
         public void stop(){
              if(animation!=null){
                   animation.stop();
                   animation=null;
    } [code/]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Heres my actual code that does work:
      class PlayingPanel extends JPanel implements KeyListener {
        public PlayingPanel() {
          this.setBackground(Color.black);
          this.grabFocus();
        public void paintComponent(Graphics g) {
          super.paintComponent(g);
          g.setColor(Color.black);
          g.drawRect(0, 0, this.getWidth(), this.getHeight());
          g.setColor(Color.white);
          g.drawString("Right: " + keys[0], 10, 15);
          g.drawString("Up: " +    keys[1], 10, 30);
          g.drawString("Left: " +  keys[2], 10, 45);
          g.drawString("Down: " +  keys[3], 10, 60);
          g.drawString("Released: " +  keys[4], 10, 75);
          g.drawString("Typed: " +  keys[5], 10, 90);
          g.drawString("Pressed: " +  keys[6], 10, 105);
        public boolean isFocusTraversable() {
          return true;
        public void keyReleased(KeyEvent e) {
          if (e.getKeyCode() == KeyEvent.VK_RIGHT) {
            keys[0] = false;
          } else if (e.getKeyCode() == KeyEvent.VK_LEFT) {
            keys[2] = false;
          if (e.getKeyCode() == KeyEvent.VK_UP) {
            keys[1] = false;
          } else if (e.getKeyCode() == KeyEvent.VK_DOWN) {
            keys[3] = false;
          keys[4] = true;
        public void keyPressed(KeyEvent e) {
          keys[6] = true;
        public void keyTyped(KeyEvent e) {
          if (e.getKeyCode() == KeyEvent.VK_RIGHT) {
            keys[0] = true;
          } else if (e.getKeyCode() == KeyEvent.VK_LEFT) {
            keys[2] = true;
          if (e.getKeyCode() == KeyEvent.VK_UP) {
            keys[1] = true;
          } else if (e.getKeyCode() == KeyEvent.VK_DOWN) {
            keys[3] = true;
          keys[5] = true;
      }Hope this helps.
    CoW

  • Getting Exception: @Scratchpad/1:1 exception while running simple javascript code in mozilla scrachpad

    getting Exception: "@Scratchpad/1:1 exception" while running simple javascript code in mozilla scrachpad

    Does this also happen if you run the code in the Web Console (Firefox/Tools > Web Developer)?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Comments/Suggestions for Simple Game?

    I have a super simple game I made. You can download it here:
    http://www.filedropper.com/catchphrase2
    Anybody have suggestions/ideas?

    TokyoTony wrote:
    I'd like to try something else please. The reason is as follows:
    When I put in a name for the document and then scan the documents, the file still comes up as untitled. I don't get that.
    When I want to rotate a page that is supposed to be landscape and do the rotation in Image Capture, all it does is cut the top and bottom out--it rotates the selection, not the image. I know I can do this in a PDF editor but why not have everything I need done in one application?
    When I do want to select A4 size, I don't see it unless I hide details. Seems a bit strange.
    Thanks,
    Tony
    Are you scanning into a program, or to a file? Either way, it seems to work for me with Preview. I didn’t try another app.
    I can’t replicate your other problems, either. Rotation works as expected and I have both Letter and A4 available on both interfaces.
    I have an Epson all-in-one, though.
    Perhaps if you listed your HP model number, others with that same printer/scanner could help.
    One thing to try, though. Log into another user on the Mac and try to scan. Same results?
    Boot into Safe Mode and try to scan. Same results?
    OS X: What is Safe Boot, Safe Mode?
    Those two steps will see if the problem is system-wide or caused by some additional software you have running at startup.

  • Win a Far Cry 4 game code!

    What do you think playing games on Cherry mechanical keyboard on a gaming notebook?
    Share your ideas & Guess which MSI gaming notebook will feature mechanical keyboard.
    We will randomly choose 5 lucky winners leaving comments on this thread and give 5 Far Cary 4 game codes by 15th Dec., 2014.
    Here are the lucky winners, congratulations!!
    Jpowers99
    Sushrut
    popoks
    LordRahl72
    sou11ripper
    We will send Far Cry 4 game code with private message to every lucky winner.
    Thank you for joining our activity. Hope you all had good time!!!

    I'm pretty sure almost every gamer over here support this great idea, no doubt, but I see a lil bit(or maybe not so small) problem here. It's about design. Even if MSI gaming notebooks are positioning for gaming, they're still remain stylish and well-designed. I'm talking about keys height - maybe there can be found an engeneering solution or some sort of modification to switches - to make them a lil bit undersized in height. Maybe MSI should try several modifications of keboards on their next models and look forward for gamers feedback on each kb modification.
    Anyway it's just a question of time - in the near future all MSI gaming notebooks will be complete with mechanical switches.

  • Flash game coder needed

    Hello everyone. I had planned on creating arcade games for iPhone and iPod Touch. I was good friends with a programmer who was willing to help me until he was recently recruited as a full-time programmer for an established company. I have changed my plans to creating free flash games for online play. I have enough money saved up to buy a domain name for my site but I am still in need of a Flash coder. If anyone on this forum has some free time and would be interested in helping me out in coding some simple games on a volunteer basis, reply to this thread and we can get in touch through email. I look forward to your responses. Thanks.
    UPDATE: Here's some additional art for reference. I have all art, music, and SFX completed for multiple games.

    Hello everyone. I had planned on creating arcade games for iPhone and iPod Touch. I was good friends with a programmer who was willing to help me until he was recently recruited as a full-time programmer for an established company. I have changed my plans to creating free flash games for online play. I have enough money saved up to buy a domain name for my site but I am still in need of a Flash coder. If anyone on this forum has some free time and would be interested in helping me out in coding some simple games on a volunteer basis, reply to this thread and we can get in touch through email. I look forward to your responses. Thanks.
    UPDATE: Here's some additional art for reference. I have all art, music, and SFX completed for multiple games.

  • Can Flex be used to create simple games?

    Hi. I'm thinking of creating some simple games for children 6 - 10 years of age.The games can be things such as drag-and-drop and multiple choice. I'd like to store the results on a database. Can I use Flex Builder to do this or do you recommend Flash? Can you point me to a resource on this?
    The reason I ask is that I've built web apps using Flex and have some basic experience with Flash. Will building games be very challenging if I have to use Flash? The project in question will start in January and have to be completed by the end of March 2010. Thank you.

    As per your description for games Flex should be fine. It also depends on the skills and experience you have in the technology.

  • Messy code problem while translating XString to String in OfficeControl

    Hi Expert,
        I have messy code problem while translating XString to String in XML-Format Word Doc in OfficeControl.
    I upload an XML-Format template Word Doc to server as a MIME Object.
    When OfficeControl is started in Web Dynpro, OfficeControl automatically open the XML-Format template.
    For the first time, I get the XString-type Context attribute bind to the content of the Word Doc,
    then translate it to string, I got the XML-format content, it's great!
    However, after the first time, when I input any new contents in MS Word in Web Dynpro,
    no matter I execute "Ctrl + S" or click the "savedocument" button,
    when I translate the XString Context attribute to String, I got messy code. (but the first time, it is good plain text)
    I use the function module: ECATT_CONV_XSTRING_TO_STRING (good for first time, dump after first time),
    SCMS_XSTRING_TO_BINARY, SCMS_BINARY_TO_STRING (good for first time, messy code after first time).
    My Demo source code is in: (system) SMV --> (local object) zhaode --> (Dynpro Component) ztest_office_control
    core source code is as:
    clear itab.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
    BUFFER = lv_datas
    IMPORTING
    OUTPUT_LENGTH = lv_length
    TABLES
    binary_tab = itab.
    CALL FUNCTION 'SCMS_BINARY_TO_STRING'
    EXPORTING
    input_length = lv_length
    mimetype = 'text/plain; charset=utf-8'
    IMPORTING
    text_buffer = lv_datas_string
    output_length = lv_data_len
    TABLES
    binary_tab = itab.
    Can you give me some advice?
    Many thanks in advance.
    Best Regards,

    You have already posted this same question several times (and some very similiar questions) within the forum.  Please do NOT multiple post your questions. This is against the forum rules of engagement. SAP employee or not, you will find yourself banned from the forums if you don't follow the rules.

  • What's wrong with my ipad2? I just can't bear it always restart again and again when I just play a simple game!

    What's wrong with my ipad2? I just can't bear it always restart again and again when I just play a simple game! What's wrong with the apple without Jobs?!

    Try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.

  • Daughter mostly plays simple games on iPad mini. Now reached stage where it says can't download not enough storage although showing 14.9 gbs of storage available. How can I overcome this ICloud,dropbox or what ?

    Daughter mostly plays simple games on iPad mini. Now reached stage where says "can't download not enough storage2 although showing 14.9 gbs storage available.How do I overcome this icloud,dropbox or what?
    Thank you in anticipation.

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps from the tray before doing the reset.

Maybe you are looking for