Looping symbol swap

I am a graphic designer and rudimentary coder at best, so I apologize in advance if this should be a no brainer.
My goal is to display random repeating tile patterns that overlap.  The original files are .png format with transparency.  I wish to show how they fit within a pattern building system that allows for multiple combination options.
To keep file sizes down, I tiled each of the small png files to fill my stage and converted them to symbols.  They fall into two symbol groups: Pos and Neg with a number sequence after.
What I'd like to do is have one Pos and one Neg display and change randomly on a loop. With the hundreds of different symbols, this would show a massive amount of possible combos.
I searched for a solution and the best I could find was this: "Call random symbol" https://forums.adobe.com/thread/1110407?start=0&tstart=0http://
Correct Answer by resdesign on Dec 5, 2012 12:28 PM
i am not sure how your composition is but let's assume that you have symbols named symbol_1, symbol_2 etc...
You can append them randomly to the stage as follows and play their timeline.
var myVar = Math.floor((Math.random()*6)+1);
     var stage = sym.$("Stage");
          var myAni = sym.createChildSymbol("Symbol_" + myVar, "stage");
          myAni.appendTo(stage);
This seems like a good starting point.  I tried it almost as is by adding the code to compositionready for my Stage.  I changed "Symbol_" to "Neg" and it didn't show anything in the browser.  As such I have a few questions:
1. This solution appends the Stage.  I eventually need to place two random symbols.  Should I be targeting something like place-keeper rectangles vs. the Stage?
2. The Math.random()*6:  I'm guessing the 6 is replaced with the number of symbols in each category and the +1 is because 0 could be generated?  Does that also mean that the total of 6 should be one less than the entire total?
3. When naming a symbol library that goes into double or triple digits, for coding purposes do you leave off the zeros in Neg01 or Neg001?
4. And finally, is there a better or easier solution than this for what I want to do?
Thank you, Michael

In CS4, navigate to: Edit > Keyboard Shortcuts > Modify > Symbol
You can then set up your shortcut.

Similar Messages

  • CS4 bug -  trouble with looping symbols

    I really really need help with this. I am in the middle of a job and although this has happened many times before this is happening with more regularity recently.
    When I simply select a symbol in CS4 and change the looping from 'loop' to 'single frame' or 'play once' it will sometimes change the symbols colour and give it a transparency (as if you have changed the alpha and tint of that symbol). I cannot get around this and if it happens and I haven't noticed it ruins that bit of animation and I have to delete it all.
    if I go into the symbol the colours are restored but as soon as I leave it again it reverts to some kind of neon translucent version.
    I am so desperate for help, it happens on other computers and with other files.
    This is always a totally unreliable programme it has given me such stress!

    Bumping this isn't going to gain it any attention... it will actually reduce your chances because postings with replies tend to be skipped over in favor of those with 0 replies.  In any case, you are not likely to find anyone from Adobe waiting to hear from you here since these are user-to-user forums and are not monitored by Adobe.  You might get lucky and have the one employee that sometimes visits catch your posting, but don't cross your fingers.
    If you think there is a bug in the program, then what you should do is report it using the link below.
    Adobe - Wishlist & Bug Report
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Though it sounds more like something that might be an installation or system-related problem specific to you since it hasn't come up here before as far as I can remember.  And since you seem to only have posts regarding issues with using the program, it looks more like the problem is probably something in the installation and not the program's design.

  • Custom Command for Swap Symbol?

    Hey Everyone,
    I have a question about swap symbol. I work at an animation company, and the project we're currently working on requires that we do a lot of symbol swapping for new mouth shapes, body shapes etc. Usually, a quick solution to this would be to make a mouth symbol, for example, and put all the mouths inside one symbol, then use a custom command, firstframe_next/previous. It allows you to quickly scroll through the different frames inside a symbol.On this show, however, we need to do swapping and I lose a lot of time doing so.
    I'm wondering, since all the symbols are very well organized, is there a custom command similar to firstframe_next/previous, except for swapping between symbols? That would make work so much faster for me. Any help is greatly appreciated.

    First of all, you will probably save some compilation time by using an "inteligent" script such as latexmk. You should look into it if you have not done so already.
    Second of all, AUCTeX will also suggest the "correct" next step when using C-c C-c. Also, you should consider just adding latexmk or your own script to the C-c C-c cycle. Here are some examples from my .emacs
    (eval-after-load "tex"
    '(progn
    (add-to-list 'TeX-command-list
    (list "View in Acrobat Reader" "acroread %o"
    'TeX-run-command nil t))
    (add-to-list 'TeX-command-list
    (list "Count Words" "texcount -inc %s.tex"
    'TeX-run-command nil t))
    (add-to-list 'TeX-command-list
    '("Synctex" "/home/rasmus/.scripts/synctex-emacs %t %b %n" TeX-run-TeX nil t) t)
    If you want to use a script as the one suggested by yourself you would want to look into the last exampe ("Synctex").
    --Rasmus

  • Copying or duplicating a movieclip symbol

    I ran into a problem, I have a movieclip symbol which is on the maintimeline in a scene. In the next scene I need the exact same elelments in the previous movieclip but in this scene I need to animate the location back anfd forth.
    I figured I would copy the mc and rename then rename the elements that made the clip.
    No good as it changes the names elements from the orignal mc.
    Then I tried to duplicate the mc and when I tried to rename the elements inside I get the same problem.
    Just dso I'm clear here is a for instance:
    original mc is called handOne, inside that clip is an image of a hand  on one line and a blinking number looping on another line.
    this clip is stationary in the scene on the main timeline.
    Now
    I need the same exact clip in the next scene but this time it needs to move across the stage.
    Any help?
    R

    If you want another instance of the symbol it will get another name since you need a different ID for 2 elements in the DOM.
    But if you want to duplicate the symbol to make another one slighlty different, then you duplicate in the library - not the elements panel.
    If you have 2 instances of the same symbol you should be able to make them do different things without affecting the first instance.
    When a symbol is played entirtely you need to reset it to the beginning if you want to use it again unless it is a looping symbol. you reset with stop(0);
    Since I am not sure what you are doing, I am not sure how to advise you but I hope this helps.

  • Please help me with a simple flash game problem

    I am trying to learn how to make flash games with Adobe flash 5.5. I am doing a tutorial from a book and am stuck.
    The game is called concentration and you are suppose to match 2 tiles of the same shape. there are 10 shape tiles
    and 1 question mark tile. These tiles are held in an array. 20 tiles are suppose to be displayed 5 to a row with 4 rows
    and the question mark is suppose to be up on all 20. My problem is I get a blank screen when I test the movie. I
    think the code is good but I beleive I have not uploaded the tiles right. I did upload the 11 tiles to the library and have
    those 11 tiles and tile_movieclip in the library. Here is the code:
    package {
    // importing classes
    import flash.display.Sprite;
    // end of importing classes
    public class Main extends Sprite {
    public function Main() {
    // variables and constants
    const NUMBER_OF_TILES:uint=20;
    const TILES_PER_ROW:uint=5;
    var tiles:Array=new Array();
    var tile:tile_movieclip;
    // end of variables and constants
    // tiles creation loop
    for (var i:uint=0; i<NUMBER_OF_TILES; i++) {
    tiles.push(Math.floor(i/2));
    trace("My tiles: "+tiles);
    // end of tiles creation loop
    // shuffling loop
    var swap,tmp:uint;
    for (i=NUMBER_OF_TILES-1; i>0; i--) {
    swap=Math.floor(Math.random()*i);
    tmp=tiles[i];
    tiles[i]=tiles[swap];
    tiles[swap]=tmp;
    trace("My shuffled tiles: "+tiles);
    // end of shuffling loop
    // tile placing loop
    for (i=0; i<NUMBER_OF_TILES; i++) {
    tile=new tile_movieclip();
    addChild(tile);
    tile.cardType=tiles[i];
    tile.x=5+(tile.width+5)*(i%TILES_PER_ROW);
    tile.y=5+(tile.height+5)*(Math.floor(i/TILES_PER_ROW));
    tile.gotoAndStop(NUMBER_OF_TILES/2+1);
    // end of tile placing loop
    Can someone please explain to me what I am suppose to do to make the this work? I beleive the problem is it doesnt know where the tiles are.
    Thanks.

    To create the tiles, draw 10 distinct shapes in the first 10 frames of your symbol, and
    the back of the tile in the 11th frame. You are free to draw them as you want, but I suggest you make them as 90 pixels squares with registration point (starting x and y position) at 0, because these are the properties of the tiles used in this chapter's
    examples. At least, they should all be the same size.
    It didnt say put in a library. It is saying to draw them in frames of symbol but it didnt walk me through that. Can you guide me through this? I also was looking at how to add the link identifier but it said I need a popup window but I cant see one. I thought that was done
    when I went to insert new symbol. It said something about actionscript linkage. I am familliar with perl, java and c++ so I can follow the code so far but I dont have much understanding of the flash interface. I made the 10 shape tiles and the 1 question mark tile
    in paint. They are .jpeg images.

  • Select Query info req for ZMKPFMSEG: View of MSEG and MKPF table

    Hi
    I am fetching 7-8 records frm ZMKPFMSEG: View of MSEG and MKPF table,which based on matnr,werks & budut,which is taking a large time,there is no index in the table,so can nay one tell me how to fetch the data,to make code more effictient.
    SELECT  budat
              matnr
              menge
              bwart
              meins
              bwtar
              waers
              dmbtr
              shkzg
              matkl
              FROM  zmkpfmseg
              INTO  CORRESPONDING FIELDS OF TABLE it_mseg
              WHERE budat GE r_ytd-low
                AND matnr IN so_matnr
                AND werks = p_werks
                AND lgort IN so_lgort
                AND matkl IN so_matkl.
    plz tell me what changes have to be done in where condtion to make it run fast.
    regds

    Hi,
    Try the alternate Methods,
    ACCESS VIA SUBQUERY.
    SELECT * FROM MKPF AS M INTO CORRESPONDING FIELDS OF SWAP
                                        WHERE  BUDAT IN BUDAT AND
                                               MBLNR IN MBLNR AND
                                               VGART = 'WA' AND
                                               EXISTS ( SELECT * FROM MSEG
                                                        WHERE MBLNR = M~MBLNR
                                                        AND   MJAHR = M~MJAHR
                                                       AND   WERKS = P_WERKS
    AND matnr IN so_matnr
    AND lgort IN so_lgort
    AND matkl IN so_matkl.
        APPEND SWAP.CLEAR SWAP.
      ENDSELECT.
      LOOP AT SWAP.
        SELECT  * FROM MSEG
                                 WHERE MBLNR = SWAP-MBLNR AND
                                        MJAHR = SWAP-MJAHR AND
          IF SY-SUBRC EQ 0.
            MOVE-CORRESPONDING SWAP TO ITAB.
            MOVE-CORRESPONDING MSEG TO ITAB.
            APPEND ITAB.CLEAR ITAB.
            CLEAR MSEG.
          ENDIF.
        ENDSELECT.
        CLEAR : SWAP,ITAB.
      ENDLOOP.
    Try this,
    SELECT budat
    matnr
    menge
    bwart
    meins
    bwtar
    waers
    dmbtr
    shkzg
    matkl
    FROM zmkpfmseg
    INTO CORRESPONDING FIELDS OF TABLE it_mseg
    WHERE budat GE r_ytd-low
    AND matnr IN so_matnr
    AND lgort IN so_lgort
    AND matkl IN so_matkl.
    delete it_mseg where WERKS NE p_WERKS .
    Reward Points if helpful.
    Regards,
    Balakumar.G

  • How to align Objects to a path while scattering the objects in even spaces with decreasing size?

    Hello
    I am facing following trouble:
    I am suppose to draw a spiral and on this path i want to align a symbol to it (in my case a circle).
    Now i have found two ways how to to it.
    First i can use the Brush palette and then apply my symbol to it. but then the problem is the size of the circles are all same but i need the circle to get smaller towards the center of the spiral
    Second approche i took, i used the blending options between two objects that i also attach to a path. So i could resolve the issue about the decreasing size but now another problem has appear: The gaps between the circles are not same. I would like to have even spaces.
    So now my question is: How can I resolve this my problem?
    For better visualising my problem, you can check out this screenshot here: http://goo.gl/PEvZI
    If anyone can give me a hint or a tip i would be very appreciating it.
    Thanks in advance...
    Regards,
    Natla

    Before you apply the Transform Effect, store the circle as a Symbol. Then, after finding a set of Transform settings you like, drag the resulting object to the Graphic Styles palette. The resulting Graphic Style will not include the basic Appearances (stroke, fill) of the circle; it only stores the Transform Effect. In the palette, the Graphic Style will appear to be blank, but it will contain the Transform Effect. That way, you can apply the Graphic Style to any other object with one click.
    Same thing works if you first merely Group the circle and apply the Transform Effect to the Group. But storing the circle as a Symbol also lets you use the Replace Symbol command to instantly swap in/out any other Symbol.
    Symbol swapped for one containing an isometric cube:
    Symbol swapped for one containing a Lens Flare object:
    JET

  • Go to next label or previous label

    Is there an action in Animate to play next label or stop at  previous label?
    Thanks for any support.
    Att.,
    Edwin

    Hi, guys.
    It's not a formal , but there is also such a way.
    The label information, can be accessed in the "Default Timeline" via.
    console.log(sym.timelines['Default Timeline'].labels);
    So, use this, We can extend the Edge-Symbol. like this.
    //document.compositionReady
    //get label index for the time
    Symbol.prototype.getLabelID = function(time){
      time = time||this.getPosition();
      time = Math.max(time,1);
      //mapping the label name & time
      var ex = this.ex = this.ex||{};
      if(!ex.labels){
        ex.labels = [{time:0,name:'start'}];
        if(this.timelines['Default Timeline'].labels){
          $.each(
            this.timelines['Default Timeline'].labels,
            function(key,val){ex.labels.push({time:val,name:key});}
        //sort by time
        ex.labels.sort(function(a,b){return (a.time<b.time)?-1:(a.time>b.time)?1:0});
      //serch the label index
      for(var i=1;i<ex.labels.length;i++){
        if(time<ex.labels[i].time)break;
      return i-1;
    Symbol.prototype.getNextLabelTime= function(time){
      var id =this.getLabelID(time);
      var labels = this.ex.labels;
      //return labels[Math.min(++id,labels.length-1)].time;
      return labels[++id%labels.length].time; // case loop
    Symbol.prototype.getPrevLabelTime= function(time){
      var id =this.getLabelID(time);
      var labels = this.ex.labels;
      //return labels[Math.max(--id,0)].time;
      return labels[(--id+labels.length)%labels.length].time; // case loop
    Symbol.prototype.nextLabel=function(play){
      var func =(play)?this.play:this.stop;
      func.call(this,this.getNextLabelTime());
    Symbol.prototype.prevLabel=function(play){
      var func =(play)?this.play:this.stop;
      func.call(this,this.getPrevLabelTime());
    In this. We can use prevLabel/nextLabel method.
    //move to next label
    sym.nextLabel();
    sym.getSymbol("Symbol_1").nextLabel();
    //move to prev label and play
    sym.prevLabel(true);
    etc..
    Because it extends the Edge-Symbol on its own, It's not the way "well-behaved".
    If you are interested, try .
    thanks.
    Ume.

  • Increasing lag with jQuery's attr?

    Hi,
    I'm working on a project in Animate that's much bigger than what I've done in the past, and I'm noticing some weird issues with lag. I have multiple instances where I change an <img> tag's src with jQuery's attr() method, for example: sym.getSymbol("answer-circles").$(answer+"circle").attr("src","images/question-circle-cor rect.png");
    As my project goes on (after roughly 25-30 seconds) there starts to be a noticeable delay in when the method is called, and when the image actually changes. This gap seems to get linearly longer and longer. An old post here suggested that animation lag can be born out of rapidly looping symbols. I tested this by extending the length of my symbols (just copy-pasting their animation out multiple times), and then turning off the symbols altogether when that didn't seem to have an effect. What really confuses me is that there's no framerate hitching to speak of, and the rest of my code seems to execute right when it's called. attr() is the only thing that's getting tripped up. I don't think my code is THAT inefficient, so I can't think of what else might be causing this. Thanks

    Developments:
    I ran my project on a local Apache webserver, instead of testing it through Edge Animate (using cmd-enter). The lag completely dissipated! Not totally sure what's at work here, but I suspect that XAMPP, the server I'm using, is more efficient about grabbing and caching images than what is built into Edge (my understanding of http serving is pre-e-etty sparse, so I'm totally pulling this out of the air). If you encounter similar issues with loading lots of images, I recommend trying out the same, to start.

  • Problem in cosimulation

    I am using a vi in which am giving sine wave as input and the output is rectified waveform. Am getting output for the fs value 999 and not for 1000. can any one clear this? i have attached the vi and multisim design for reference.
    When ever i change the fs value to 1000 output goes constant.
    Attachments:
    HALF WAVE.vi ‏182 KB
    HF.ms12 ‏43 KB

    Hi jega28,
    My recommendation is to view the simulation loop from a point-by-point perspective. With every iteration of the simulation loop, a time step is taken, an internal "simulation time" variable is updated, and new inputs (scalars, not vectors) are passed into the models, including the Multisim model. In your case, one of these inputs goes to Multisim. It should be the updated sinusoidal value according to the general formula Asin(2pi*f*TIME), where TIME is the simulation time. 
    But the way you set up the simulation, the simulation loop has no knowledge of your sinusoid generation. In fact, with every simulation iteration, you are simply producing a vector of points; the simulation loop doesn't know where to take a sample which should be passed to the rectifer model in Multisim.
    In the LabVIEW, under Control Design & Simulation - >Simulation - >Signal Generation, you will find a variety of special elements which the simulation loop knows about! You should use the Sine Signal generator instead of the waveform generator method your were using. This is shown in the attached file. 
    Note that in the simulation loop environment, sampling is done automatically by the simulator, which is configured through the little simulation loop symbol attached to the top left corner of the loop. So, if you are simulating sinusoids with 1kHz, you may want to set the Maximum Time Step size to something like 100e-6s, which would sample at no less than 10 times per period.
    Hope that helps.
    Max
    National Instruments
    Attachments:
    HALF WAVE_modified.vi ‏214 KB

  • Loop at  field-symbol  (any table) into string ?

    Hi Everyone,
    I need little help, I have a requirement to extract table content with columns names as the header.
    After doing some search I figured out the best way to this since table name will be only avaialbe at runtime through
    a selection field . my problem is to loop through field-symbol and convert a structure to string value so that I can
    write to the file.
    REPORT  zlab_tbl_export.
    DATA table_name(30) VALUE 'ZSMARTTS_HTML'.
    DATA v_file(100) VALUE 'c:\sap_export.txt'.
    DATA line(1000).
    DATA: o_data TYPE REF TO data.
    CREATE DATA o_data TYPE TABLE OF (table_name).
    FIELD-SYMBOLS: <table> TYPE ANY TABLE.
    ASSIGN o_data->* TO <table>.
    SELECT * UP TO 100 ROWS FROM (table_name) INTO TABLE <table>.
    OPEN DATASET v_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    >>>>>>> LOOP at <table> into line.   >>>>>>>>>>>>  " Here the code breaks and fail
      TRANSFER line to v_file. 
      WRITE :/ line.          
    ENDLOOP.
    CLOSE DATASET v_file.
    Exception Message
    |Error analysis                                                                                |
    |    You attempted to move one data object to another.                                             |
    |    This is not possible here because the conversion of a data object                             |
    |    of type "v" to type "C" is not supported.                                                     |
    |                                                                                |
    |      List of internal ABAP types:                                                                |
    |                                                                                |
    |      C    Text (Character)                                                                       |
    |      N    Numerical text                                                                         |
    |      D    Date (YYYYMMDD)                                                                        |
    |      T    Time (HHMMSS)                                                                          |
    |      X    Hexadecimal                                                                            |
    |      I    Integer                                                                                |
    |      P    Packed number                                                                          |
    |      F    Floating point number                                                                  |
    |                                                                                |
    |      h    Internal table                                                                         |
    |      r    Object reference                                                                       |
    |      l    Data reference                                                                         |
    |      g    String of type C                                                                       |
    |      y    String of type X                                                                       |
    |      s    2-byte integer with plus/minus sign                                                    |
    |      b    1-byte integer without plus/minus sign                                                 |
    |      u    Structure (flat structure)                                                             |
    |      v    Structure (deep structure)                                                             |

    Hi Everyone, I need little help, I have a requirement to extract table content with columns names as the header. After doing some search I figured out the best way to this since table name will be only avaialbe at runtime through a selection field . my problem is to loop through field-symbol and convert a structure to string value so that I can write to the file.
    thie is the code
    REPORT  zlab_tbl_export.
    DATA table_name(30) VALUE 'ZSMARTTS_HTML'.
    DATA v_file(100) VALUE 'c:\sap_export.txt'.
    DATA line(1000).
    DATA: o_data TYPE REF TO data.
    CREATE DATA o_data TYPE TABLE OF (table_name).
    FIELD-SYMBOLS: <table> TYPE ANY TABLE.
    ASSIGN o_data->* TO <table>.
    SELECT * UP TO 100 ROWS FROM (table_name) INTO TABLE <table>.
    OPEN DATASET v_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    LOOP at <table> into line.   " Fail here
      TRANSFER line to v_file. 
      WRITE :/ line.           
    ENDLOOP.
    CLOSE DATASET v_file.
    and this is the exception:
    Error analysis                                                                               
    You attempted to move one data object to another.                                            
        This is not possible here because the conversion of a data object                            
        of type v to type C is not supported.                                                    
    Edited by: Misbah on Jan 7, 2010 11:50 PM

  • How to use different field symbols to append data in a loop

    Hi experts!
    I have to loop over a itab and I want to save different  into one table.
    See my code below:
    DATA: l_hours        TYPE i,
          grfk_ok_code    TYPE sy-ucomm,
          grfk_values     TYPE TABLE OF GPRVAL WITH HEADER LINE,
          grfk_coltxt     TYPE TABLE OF GPRTXT WITH HEADER LINE,
          wa_ztab         TYPE zqm_chq_prueflos,
          l_index      TYPE n,
          l_field      TYPE string,
          l_line_check TYPE string
    FIELD-SYMBOLS:
          <fs_0102>   TYPE ANY,
          <fs_0304>   TYPE ANY,
          <fs_0506>   TYPE ANY,
          <fs_grenze> TYPE ANY
    REFRESH: grfk_values.
    CLEAR:   l_hours.
      LOOP AT ztab INTO wa_ztab.
      AT NEW qase_serialnr.
        CLEAR: l_line_check.
        IF wa_ztab-qase_serialnr CS '-01'
        OR wa_ztab-qase_serialnr CS '-02'.
            grfk_values-rowtxt = 'gelötet'.
            l_line_check = '0102'.
        ELSEIF wa_ztab-qase_serialnr CS '-03'
        OR     wa_ztab-qase_serialnr CS '-04'.
            grfk_values-rowtxt = 'geglüht'.
            l_line_check = '0304'.
        ELSEIF wa_ztab-qase_serialnr CS '-05'
        OR     wa_ztab-qase_serialnr CS '-06'.
            grfk_values-rowtxt = 'unbehandelt'.
            l_line_check = '0506'.
        ELSE.
          grfk_values-rowtxt = 'serialnr_wrong'.
        ENDIF.
      ENDAT.
    ***---------------------------------------------------->
      AT NEW qapp_usern1.
    *   X-axis: values are:0,50,100,...,400
        grfk_coltxt-coltxt = wa_ztab-qapp_usern1.
        SHIFT grfk_coltxt-coltxt LEFT DELETING LEADING '0'.
        APPEND grfk_coltxt.
        UNASSIGN <fs_grenze>.
        CLEAR: l_index, l_field.
        l_index = sy-tabix.
        CONCATENATE 'grfk_values-val' l_index INTO l_field.
        ASSIGN (l_field) TO <fs_grenze>.
        IF sy-subrc <> 0.
          EXIT.
        ENDIF.
        <fs_grenze> = 10.
        APPEND grfk_values.
      ENDAT.
      IF l_line_check = '0102'.
          UNASSIGN <fs_0102>.
          CLEAR: l_index, l_field.
          l_index = sy-tabix.
          CONCATENATE 'grfk_values-val' l_index INTO l_field.
          ASSIGN (l_field) TO <fs_0102>.
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
          <fs_0102> = wa_ztab-cf_dgp.
      ELSEIF l_line_check = '0304'.
          UNASSIGN <fs_0304>.
          CLEAR: l_index, l_field.
          l_index = sy-tabix.
          CONCATENATE 'grfk_values-val' l_index INTO l_field.
          ASSIGN (l_field) TO <fs_0304>.
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
          <fs_0304> = wa_ztab-cf_dgp.
      ELSEIF l_line_check = '0506'.
          UNASSIGN <fs_0506>.
          CLEAR: l_index, l_field.
          l_index = sy-tabix.
          CONCATENATE 'grfk_values-val' l_index INTO l_field.
          ASSIGN (l_field) TO <fs_0506>.
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
          <fs_0506> = wa_ztab-cf_dgp.
      ENDIF.
    ENDLOOP.
    My goal should be to fill the graphic with 4 Lines:
    1 is boarderline.
    2-3 are the lines with the looped values in "ztab"
    Do I have to use references to write the values in  into different rows of internal table "grfk_values"????
    With this code I want to fill the itab which I need for the GFW_PRES_SHOW function.
    The table I have to commit has the following structure:
    -rowtxt
    -val1
    -val2
    -val31
    EDIT:
    My current output are 2 lines the first has value 0 for each point and the second shows the correct values... The boarder which always should have value 10 is completly not shown.

    hopen this will help
    report zrich_0001 .
    data: begin of itab1 occurs 0,
          fld1(10) type c,
          fld2(10) type c,
          fld3(10) type c,
          end of itab1.
    data: begin of itab2 occurs 0,
        flda(10) type c,
        fldb(10) type c,
        fldc(10) type c,
        end of itab2.
    field-symbols: <fs_table> type table,
                   <fs_wa>,
                   <fs>.
    data: mod_field(10) type c.
    itab1-fld1 = '1'. itab1-fld2 = '2'. itab1-fld3 = '3'. append itab1.
    itab1-fld1 = '4'. itab1-fld2 = '5'. itab1-fld3 = '6'. append itab1.
    itab2-flda = 'A'. itab2-fldb = 'B'. itab2-fldc = 'C'. append itab2.
    itab2-flda = 'D'. itab2-fldb = 'E'. itab2-fldc = 'F'. append itab2.
    assign itab1[] to <fs_table>.
    assign itab1 to <fs_wa>.
    mod_field = 'FLD2'.
    perform modify_table.
    perform write_table.
    assign itab2[] to <fs_table>.
    assign itab2 to <fs_wa>.
    mod_field = 'FLDC'.
    perform modify_table.
    perform write_table.
          FORM modify_table                                             *
    form modify_table.
      loop at <fs_table> into <fs_wa>.
        assign component mod_field of structure <fs_wa> to <fs>.
        <fs> = 'Modified'.
        modify <fs_table> from <fs_wa>.
      endloop.
    endform.
          FORM write_table                                             *
    form write_table.
      loop at <fs_table> into <fs_wa>.
        do.
          assign component sy-index of structure <fs_wa> to <fs>.
          if sy-subrc <> 0.
            exit.
          endif.
          if sy-index = 1.
            write:/ <fs>.
          else.
            write: <fs>.
          endif.
        enddo.
      endloop.
    endform.
    regards
    navjot
    reward points if helpfull

  • How do I swap a symbol on each keyframe of my animation ?

    Hello,
    I have a VERY big animation, with a huge amount of keyframes, and I like to swap a symbol in this animation with another one.
    If I just use the swap button on the first frame, Flash only swaps the symbol for the first tween, whereas I have hundreds of tweens in my file...
    So how do I do this for every keyframe in every tween ?
    Thank you !

    Never mind, I eventually came up with a simple trick to do it
    Thanks for nothing

  • Field symbols in loop

    Hi,
    I need to change this code using Field symbols. Can anybody help me?
      DATA: i_history  TYPE STANDARD TABLE OF mmreq_history INITIAL SIZE 0,
            wa_history TYPE mmreq_history,
            l_menge    LIKE eban-menge.
        LOOP AT i_history INTO wa_history.
          IF wa_history-bstyp EQ dc_plan.
            ADD wa_history-menge TO l_menge.
          ELSEIF wa_history-bstyp EQ dc_abierto.
            CLEAR: wa_history-menge, wa_history-meins.
            SELECT SINGLE ktmng meins
              FROM ekpo
              INTO (wa_history-menge, wa_history-meins)
              WHERE ebeln EQ wa_history-ebeln
                AND ebelp EQ wa_history-ebelp.
            MODIFY i_history FROM wa_history.
            ADD wa_history-menge TO l_menge.
          ENDIF.
        ENDLOOP.
    Thanks!!!
    Carles

    Hi
    Hope it will help you,
    Reward if help.
    Field Symbols
    Field symbols are placeholders or symbolic names for other fields. They do not physically reserve space for a field, but point to its contents. A field symbol cam point to any data object. The data object to which a field symbol points is assigned to it after it has been declared in the program.
    Whenever you address a field symbol in a program, you are addressing the field that is assigned to the field symbol. After successful assignment, there is no difference in ABAP whether you reference the field symbol or the field itself. You must assign a field to each field symbol before you can address the latter in programs.
    Field symbols are similar to dereferenced pointers in C (that is, pointers to which the content operator * is applied). However, the only real equivalent of pointers in ABAP, that is, variables that contain a memory address (reference) and that can be used without the contents operator, are reference variables in ABAP Objects.
    All operations programmed with field symbols are applied to the field assigned to it. For example, a MOVE statement between two field symbols moves the contents of the field assigned to the first field symbol to the field assigned to the second field symbol. The field symbols themselves point to the same fields after the MOVE statement as they did before.
    You can create field symbols either without or with type specifications. If you do not specify a type, the field symbol inherits all of the technical attributes of the field assigned to it. If you do specify a type, the system checks the compatibility of the field symbol and the field you are assigning to it during the ASSIGN statement.
    Field symbols provide greater flexibility when you address data objects:
    If you want to process sections of fields, you can specify the offset and length of the field dynamically.
    You can assign one field symbol to another, which allows you to address parts of fields.
    Assignments to field symbols may extend beyond field boundaries. This allows you to address regular sequences of fields in memory efficiently.
    You can also force a field symbol to take different technical attributes from those of the field assigned to it.
    The flexibility of field symbols provides elegant solutions to certain problems. On the other hand, it does mean that errors can easily occur. Since fields are not assigned to field symbols until runtime, the effectiveness of syntax and security checks is very limited for operations involving field symbols. This can lead to runtime errors or incorrect data assignments.
    While runtime errors indicate an obvious problem, incorrect data assignments are dangerous because they can be very difficult to detect. For this reason, you should only use field symbols if you cannot achieve the same result using other ABAP statements.
    For example, you may want to process part of a string where the offset and length depend on the contents of the field. You could use field symbols in this case. However, since the MOVE statement also supports variable offset and length specifications, you should use it instead. The MOVE statement (with your own auxiliary variables if required) is much safer than using field symbols, since it cannot address memory beyond the boundary of a field. However, field symbols may improve performance in some cases.
    check the below links u will get the answers for your questions
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3860358411d1829f0000e829fbfe/content.htm
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/field_sy.htm
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci920484,00.html
    Syntax Diagram
    FIELD-SYMBOLS
    Basic form
    FIELD-SYMBOLS <fs>.
    Extras:
    1. ... TYPE type
    2. ... TYPE REF TO cif
    3. ... TYPE REF TO DATA
    4. ... TYPE LINE OF type
    5. ... LIKE s
    6. ... LIKE LINE OF s
    7. ... TYPE tabkind
    8. ... STRUCTURE s DEFAULT wa
    The syntax check performed in an ABAP Objects context is stricter than in other ABAP areas. See Cannot Use Untyped Field Symbols ad Cannot Use Field Symbols as Components of Classes.
    Effect
    This statement declares a symbolic field called <fs>. At runtime, you can assign a concrete field to the field symbol using ASSIGN. All operations performed with the field symbol then directly affect the field assigned to it.
    You can only use one of the additions.
    Example
    Output aircraft type from the table SFLIGHT using a field symbol:
    FIELD-SYMBOLS <PT> TYPE ANY.
    DATA SFLIGHT_WA TYPE SFLIGHT.
    ASSIGN SFLIGHT_WA-PLANETYPE TO <PT>.
    WRITE <PT>.
    Addition 1
    ... TYPE type
    Addition 2
    ... TYPE REF TO cif
    Addition 3
    ... TYPE REF TO DATA
    Addition 4
    ... TYPE LINE OF type
    Addition 5
    ... LIKE s
    Addition 6
    ... LIKE LINE OF s
    Addition 7
    ... TYPE tabkind
    Effect
    You can define the type of the field symbol using additions 2 to 7 (just as you can for FORM parameters (compare Defining the Type of Subroutine Parameters). When you use the ASSIGN statement, the system carries out the same type checks as for USING parameters of FORMs.
    This addition is not allowed in an ABAP Objects context. See Cannot Use Obsolete Casting for FIELD SYMBOLS.
    In some cases, the syntax rules that apply to Unicode programs are different than those for non-Unicode programs. See Defining Types Using STRUCTURE.
    Effect
    Assigns any (internal) field string or structure to the field symbol from the ABAP Dictionary (s). All fields of the structure can be addressed by name: <fs>-fieldname. The structured field symbol points initially to the work area wa specified after DEFAULT.
    The work area wa must be at least as long as the structure s. If s contains fields of the type I or F, wa should have the structure s or at least begin in that way, since otherwise alignment problems may occur.
    Example
    Address components of the flight bookings table SBOOK using a field symbol:
    DATA SBOOK_WA LIKE SBOOK.
    FIELD-SYMBOLS <SB> STRUCTURE SBOOK
    DEFAULT SBOOK_WA.
    WRITE: <SB>-BOOKID, <SB>-FLDATE.
    Related
    ASSIGN, DATA
    Additional help
    Declaring Field Symbols

  • Cannot swap symbols at all in CS3?

    Flash CS3 on Mac OSX 10.4.11
    Extremely simple timeline. Simply want to fade one image to another.
    Created a keyframe, added a bitmap, converted it to a symbol, set the alpha of 1st frame to 100%, 2nd frame to 0% & tweened.
    Image fades to white -perfect.
    Create a new keyframe, set the alpha to 100%, try to swap the symbol to another bitmap I'd converted to a symbol.
    Doesn't work.
    Inspector always says "instance of symbol 1". Cannot use any other symbols except for this one??
    Hoping I'm missing something basic, but I've never seen anything like this happen before.

    Here's the code that won't appear in a web browser:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>banner test</title>
    <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    </head>
    <body>
    <p> </p>
    <p> </p>
    <p align="center">
      <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','600','height','200','src','bannertest.fla','quality','high','pluginspage','http://www .adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','banner test.fla' ); //end AC code
    </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="600" height="200">
        <param name="movie" value="bannertest.fla" />
        <param name="quality" value="high" />
        <embed src="bannertest.fla" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="600" height="200"></embed>
      </object></noscript>
    </p>
    </body>
    </html>

Maybe you are looking for

  • Error stopping tomcat 5.5 from eclipse?

    Hi, I installed Tomcat 5.5 in my WinXP Pro and i am using eclipse wtp 3.1 to create JSP pages. I created a server in eclipse and the tomcat start normally by eclipse, but when i stop the tomcat I get the follow message in console: 8690 [main] INFO ht

  • Message "data was copied" on FB01 via substitution

    Dear gurus On FB01, when I insert "invoice ref." manually and change the "baseline date" manually, the message showed that "data was copied". This is what I want. However, when I insert "invoice ref." via substitution(GGB1), the message "data was cop

  • ISA550 permit HTTPS inbound, error that SSLVPN is already using port

    I'm trying to permit HTTPS from anywhere to an internal web server. The ISA is running SSLVPN on one IP address. I am trying to create an ACL and NAT that allows HTTPS on a totally different IP address than the SSLVPN runs on. If I go to Firewall>NAT

  • Time Machine backups seem to be being randomly deleted

    I was away in May-June and my time capsule was disconnected. When I left I had daily backups for most but not all the days in the previous month (a few days were missing due to absences from home). The first backup since my return was on Saturday 16t

  • Moving entire library from shuffle to nano

    I currently have a Shuffle but I'm looking to upgrade to a 4gb Nano. How do I move all of my songs to the new Nano? How will this affect the songs I've purchased on iTunes? I have tried saving my library before (for back-up) and it didn't work. Thank