3d Tween inside a movieclip symbol

Hi everyone,
There is probably a quick answer to this.   Here is the situation,  I have an .FLV in one layer of a movieclip symbol and on a different layer have some dynamic text that I am trying to rotate with an obect in the .FLV.   I figured this would be a great use of the 3d tween for this text.   The problem is that when I bring this MovieClip Symbol (with the 3d tween and .FLV which works in the symbol editor)   depending on where I place this clip on the stage I get different results from the 3d tween negating the desired effect.   For various reasons I must have the effect in the same MC with the .FLV.   Any ideas on why this happens, or how I can bypass it?

you must publish for fp 10 to use this class.  check the flash help files to read about it.
usage is not difficult.  so, if you want 3d transforms of yourobj to be relative to yourobj's center, use:
var pProjection:PerspectiveProjection=new PerspectiveProjection();
pProjection.projectionCenter = new Point(yourobj.width/2,yourobj.height/2);
yourobj.transform.perspectiveProjection = pProjection;

Similar Messages

  • SimpleButton inside MovieClip Symbol

    I want to create various button panels contained in separate
    MovieClip(symbols) created and laid out in a movie clip. I want to
    use flash button objects on each panel. Then swap panels at will
    that bring the buttons along with the panel so all I have to do is
    call..panel1 = new panelOne; panel2 = new PanelTwo, etc...If I
    create a class for each button with its functionally built in how
    can I access the button from the panel? I figure I have to import
    the buttons in the panel class before it will work? I tried
    panel1.getChildAt(x) but that didn't seem to work. Do I have to
    dynamically add the buttons as children to be able to access them
    with actionscript.
    Thanks!

    From inside a movieclip you can talk to the _parent object/timeline using "_parent" to target it.  So if you wanted to tell the _parent to move to a certain frame, inside the movieclip you could use...
    _parent.gotoAndStop(some frame);
    Or if there was a function in the _parent you could use...
    _parent.someFunction();
    or maybe...
    _parent.someFunction(RoXYZ); // passing the RoXYZ variable as an argument
    And if you needed to target the main timeline from inside some buried movieclip, you can use _root instead of _parent.

  • 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.

  • Calling a variable from inside a movieclip AS3 in Flash CS4

    I am trying to trace a variable string from inside a movieclip which is inside another movieclip on the main timeline using:
    trace(VariableString);
    and also
    trace(stage.VariableString);
    Neither work
    The variable is an input textfield and traces fine when it is on the main timeline but will not work from inside the movieclip. I am using Actionscript 3 in Flash CS4.
    I appreciate this has probably been discussed previously on this forum but I cannot find a difinitve answer that seems to work.
    Thanks

    Thanks for the reply. However this did not seem to work.
    I think I had better explain a little better.
    On Keyfrme1 I have a MovieClip1 containing a text input component. I have created a variable on keyframe 1 using:
    var VariableString1:String = new String();
    When clicking on a seperate button this happens:
    VariableString1 = MovieClip1.text;
    I can trace this correctly on the main timeline using:
    trace(VariableString1);
    However, if I try to trace this from  another keyframe inside a movieclip2 which is inside another movieclip3 using:
    trace(MovieClip1(root).VariableString1);
    I just get the error 1180 call to a possibly undefined method MovieClip1
    Sorry if this is not very clear but I am getting very confused with this.
    Thanks again

  • Loading an external image (from file system) to fla library as MovieClip symbol using ActionScript.

    Hi everyone,
    I am new to actionscript and Flash.
    I have been working on code updation project wherein initially we had an image and text as movieclips in fla library. The image and the text are read by the actionscript program which then creates an animation.
    For Example:
    // Picture
    // _imageMC: Name of the Movie Clip in the libary which
    // contains the picture.
    var _imageMC:String = "polaroid";
    This is later on used by another actionscript class as follows to finally create the animation.
    var _mcPolaroid:MovieClip = this._mcBg.attachMovie(this._polaroid, "polaroid_mc", this._mcBg.getNextHighestDepth());
    Now the problem here is when one needs to update the image or text, one needs to go and open the fla file andmanually change the image attached to the movieClip (polaroid).
    I want to ease the updation process by giving the url of the image in an XML file. Read the image url from the xml and load this image in the library of the fla as movieclip. This, i think, will result in less code change and improve the updation of the final animation image.
    The problem i am facing is not been able to figure out how can i change the image (after fetching its URL) to a movieclip and then load it in the library?
    Thank you kindly in advance,
    Varun

    The following was my attempt: (i created a new MovieClip)
    this.createEmptyMovieClip("polaroidTest", this.getNextHighestDepth());
    loadMovie("imagefile.jpg", polaroidTest)
    var _imageMC:String = "polaroidTest";
    This mentioned variable _imageMC is read by a MovieClip class(self created as follows)
    /////////////////////////////// CODE STARTS //////////////////////////////////////
    class as.MovieClip.MovieClipPolaroid {
    private var _mcTarget:MovieClip;
    private var _polaroid:String;
    private var _mcBg:MovieClip;
    private var _rmcBg:MovieClip;
    private var _w:Number;
    private var _h:Number;
    private var _xPosition:Number;
    private var _yPosition:Number;
    private var _border:Number;
    * Constructor
        function MovieClipPolaroid(mcTarget:MovieClip, polaroid:String) {
    this._mcTarget = mcTarget;
    this._polaroid = polaroid;
    init();
    * initialise the polaroid movieclip and reflecting it
        private function init():Void {
    this._border = 10;
    this.initSize();
    this.setPosition(48,35);
    this.createBackground();
    var _mcPolaroid:MovieClip = this._mcBg.attachMovie(this._polaroid, "polaroid_mc", this._mcBg.getNextHighestDepth());
    _mcPolaroid._x = _border;
    _mcPolaroid._y = _border;
    var _rmcPolaroid:MovieClip=this._rmcBg.attachMovie(this._polaroid,"rpolaroid_mc", this._rmcBg.getNextHighestDepth());
    _rmcPolaroid._yscale *=-1;
    _rmcPolaroid._y = _rmcPolaroid._y + _h + _border ;
    _rmcPolaroid._x =_border;
    * create the background for the polaroid
    private function createBackground():Void {
    this._mcBg = _mcTarget.createEmptyMovieClip("target_mc",_mcTarget.getNextHighestDepth());
    this._rmcBg = _mcTarget.createEmptyMovieClip("rTarget_mc", _mcTarget.getNextHighestDepth());
    fill(_mcBg,_w+2*_border,_h+2*_border,100);
    fill(_rmcBg,_w+2*_border,_h+2*_border,10);
    placeBg(_mcBg,_w+2*_border,_yPosition);
    placeBg(_rmcBg,_w+2*_border,_h+2*_border+_yPosition);
    * position the background
    private function placeBg(mc:MovieClip,w:Number,h:Number) : Void {  
        mc._x = Stage.width - w - _xPosition;
    mc._y = h;
    * paint the backgound
    private function fill(mc:MovieClip,w:Number,h:Number, a:Number): Void {
    mc.beginFill(0xFFFFFF);
    mc.moveTo(0, 0);
    mc.lineTo(w, 0);
    mc.lineTo(w, h);
    mc.lineTo(0, h);
    mc.lineTo(0, 0);
    mc.endFill();
    mc._alpha=a;
    * init the size of the polaroid
    private function initSize():Void {
    var mc:MovieClip =_mcTarget.createEmptyMovieClip("mc",_mcTarget.getNextHighestDepth());
    mc.attachMovie(this._polaroid,"polaroid_mc", _mcTarget.getNextHighestDepth());
    this._h = mc._height;
    this._w = mc._width;
    removeMovieClip(mc);
    mc = null;
    * sets the position of the polaroid
    public function setPosition(xPos:Number,yPos:Number):Void {
    this._xPosition = xPos;
    this._yPosition = yPos;
    * moving in
    public function moveIn():Tween {
    var mc:MovieClip = this._mcTarget;
    mc._visible=true;
    var tween:Tween = new Tween(mc, "_x", Strong.easeOut, 0, 0, 1, true);
    var tween:Tween = new Tween(mc, "_y", Strong.easeOut, 200, 0, 1, true);
    var tween:Tween = new Tween(mc, "_xscale", Strong.easeOut, 30, 100, 1, true);
    var tween:Tween = new Tween(mc, "_yscale", Strong.easeOut, 30, 100, 1, true);
    var tween:Tween = new Tween(mc, "_alpha", Strong.easeOut, 0, 100, 1, true);
    return tween;
    * moving in
    public function moveOut():Tween {
    var mc:MovieClip = this._mcTarget;
    var tween:Tween = new Tween(mc, "_alpha", Strong.easeIn, 99, 0, 1, true);
    var tween:Tween = new Tween(mc, "_x", Strong.easeIn,0, 1000, 1, true);
    var tween:Tween = new Tween(mc, "_y", Strong.easeIn, 0, -50, 1, true);
    var tween:Tween = new Tween(mc, "_xscale", Strong.easeIn, 100, 50, 1, true);
    var tween:Tween = new Tween(mc, "_yscale", Strong.easeIn, 100, 50, 1, true);
    return tween;
    /////////////////////////////// CODE ENDS ///////////////////////////////////////
    As in the current case, the name of the movieclip which has the image (originally polaroid) is being read through the variable _imageMC which we hadd given the value "polaroidTest".
    The animation shows no image even when i have inserted the correct url (i m sure this step isn't wrong).
    Any clues?

  • AS3 loading external swf files with buttons from inside a movieclip

    In my main .swf I have labels on the timeline, navs for those btns are on the first frame of the AS layer and each button sends the playhead to a different frame.
    On one frame called fr1 there is an mc called mc_1 that appears on stage when the playhead stops there. Inside mc_1 are a set of navigation buttons that need to call external .swfs.
    Do I add event listeners on the last frame of mc_1 for each button?
    how do I call the loaders for the swfs on the buttons since the swfs will load on the main timeline NOT the mc_1 timeline?
    So label on main timeline called fr1 will load external1 swf , on fr10 external 2.swf will load and so on.
    any help?

    The code for that button's event listener needs to be placed wherever it has direct access to the button.  Not necessarily on the same timeline, but in a place where both the button and the code are present at the same time.
    The code could be placed at the frame in the main timeline where the movieclip with the button(s) is, targeting the buttons via the movieclip (mc.button.addEvemtListener...) , unless the buttons are somewhere down the timeline of that movieclip.
    If they are down the timeline of that movieclip, then you would need to have the event listener also inside the movieclip, down its timeline where the buttons are finally settled in... being sure to assign instance names to the buttons at every keyframe.

  • Referencing a button on main stage from inside a movieclip

    I am banging my head against the wall on this.
    On the main stage I have a button that I have made invisible once the file is loaded.  Inside a movieclip I have on frame 15 the following actionscript 3 code
    button_mc.visible = true;
    I want the button to become visible at the end of this movieclip.  I am not using an external as3 file, I am putting the as3 code in its own layer on the first frame.
    I know it has something to do with the path to the button, but I cannot figure it out.  If there is anyone who can point me in the right direction for referencing instances by instance name that reside on the main satge from inside a movieclip I would be very grateful.
    Thanks
    Thepopguy

    Try:
    MovieClip(this.parent).button_mc.visible = true;

  • Issues integrating niceScroll inside of nested symbol

    So I have to produce a custom scrollbar for a client. Which means going to one of the JQuery scripts to create it. I saw a couple of posts about niceScroll, so I downloaded it. It works fine for a text area div that's on the main timeline. But my issue is my text field will be nested inside of a symbol and none of my various attempts to get to said symbol work. In fact, when I tried it in the example, I'm uploading, the scrollbar completely dissappears. And no errors in Console. So I'm stuck. Anyone know how I might make this work? Here's the example from Dropbox:
    https://www.dropbox.com/s/mndqt2gd4z8uaj5/niceScroll.zip

    Hi ladobeugm,
    1) More precisely, instead of WB = 0 and
    buttons = {
                    reset:function(){
                    sym.getSymbol("btnCommunication").$("back").css({"opacity":"0"})
    you write
    buttons = {
                    focus: 0, // replaces WB
                    reset:function(){
                    sym.getSymbol("btnCommunication").$("back").css({"opacity":"0"})
    2) I had a quick look at your source. As you write in your first post "The other three buttons are basically the same.". Indeed, they differ only by the focus value (1, 2, 3 or 4) and by the name of the symbol. In such a situation, it's time for abstacting in a global function.
    First, rename the four instances : btnCommunication => btn1, btnIndividuality => btn2, btnCreativity => btn3, btnInclusivity => btn4.
    Then you define a global function in the compositionReady event handler :
    sym.overButton = function( numBtn)
      if ( NAV_BAR.focus != numBtn)
        sym.getSymbol("btn" +numBtn).$("back").stop().animate({opacity: 1}, { duration: 500 });
    The btn1 > mouseover event handler reduces to :
    sym.getComposition().getStage().overButton( 1);
    btn2 > mouseover event handler :
    sym.getComposition().getStage().overButton( 2);
    etc. Proceed similarly with a outButton function and a clickButton function.
    3)

  • Is it possible to convert characters to movieclip symbols?

    I want to do something like when ppl type in some texts, the
    program will convert every character of the text to a movieclip
    symbol, so I can animate individual characters. Is there a way to
    do something like that?
    Thx in advance~

    yes, you can create (in the authoring or with a.s.) a
    movieclip that contains a textfield and you can assign a linkage id
    to the textfield.
    you can then use the flash string methods to assign each
    letter to its own movieclip/textfield (that you created in the
    first paragraph) using attachMovie(). position your letters and
    animate or animate the movieclip in the first paragraph in the
    authoring environment by putting that movieclip into a timeline and
    use a frame based animation. remove the linkage id on the
    non-animated movieclip with a textfield and assign a linkage id to
    the animated movieclip (that contains your movieclip that contains
    your textfield).

  • Why can't I use this class inside my MovieClip?

    Hi,
    The attached SlideshowExample.as file works quite nice when I use it on stage directly. But when I tried to use it in Gallery_mc movie clip, it doesn't work, Please help me out in resolving this problem.
    Sorry, I think there is no file attachment option here.
    Thanks.

    What you need to do is to attach this class "SlideshowExample" to your MovieClip symbol in the Library, then instantiate it and add it to the display list. (If you want to use the name "Gallery_mc" then you can rename the class to 'Gallery_mc".)
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • AS3: Tween from one MovieClip to Another

    Hi!
    As the title implies, I'm trying to use ActionScript 3 to tween from one movieclip to another based on an external event.
    I'm currently using two "Tween" objects to adjust alpha values. The first tweens-out the previous movieclip, and the second tweens-in the current movieclip. Code follows, with headers included for completeness:
    // headers
         import fl.transitions.Tween;
         import fl.transitions.easing.*;
    // tweens
         var MOVIECLIP1_out:Tween = new Tween(MOVIECLIP1, "alpha", Regular.easeOut, 1, 0, 3, true);
              var MOVIECLIP2_in:Tween = new Tween(MOVIECLIP2, "alpha", Regular.easeIn, 0, 1, 3, true);
    My issue, as you might suspect, is that the transition doesn't look right. The previous clip tweens to a blank white screen, and then the second is brought in. I need the tweens to overlap, as they would with a timeline-based tween.
    How do I remedy this? My solution was to create a loop, from 0 to 1 incrementing by 0.2, and setting the respective alpha values to increase and decrease. I also planned to set the time for each tween to one-tenth (0.1) of a second:
        var _out1: 1
        var _out2: 0.8
        var _in1: 0
        var _in2: 0.2
    while (_in1 <= 1)
        var MOVIECLIP1_out:Tween = new Tween(MOVIECLIP1, "alpha", Regular.easeout, _out1, _out2, 0.1, true);
        var MOVIECLIP2_in:Tween = new Tween(MOVIECLIP2, "alpha", Regular.easeIn, _in1, _in2, 0.1, true);
        _out1 = _out1 - 0.2;
        _out2 = _out2 - 0.2;
        _in1 = _in1 + 0.2;
        _in2 = _in2 + 0.2;
    This would result in ten total tweens, over one full second, as follows:
    time : Clip : alpha change
    0.1 : MOVIECLIP1 : 1 to 0.8
    0.1 : MOVIECLIP2 : 0 to 0.2
    0.1 : MOVIECLIP1 : 0.8 to 0.6
    0.1 : MOVIECLIP2 : 0.2 to 0.4
    0.1 : MOVIECLIP1 : 0.6 to 0.4
    0.1 : MOVIECLIP2 : 0.4 to 0.6
    0.1 : MOVIECLIP1 : 0.4 to 0.2
    0.1 : MOVIECLIP2 : 0.6 to 0.8
    0.1 : MOVIECLIP1 : 0.2 to 0
    0.1 : MOVIECLIP2 : 0.8 to 1
    And the transition is complete.
    I feel that there must be a smarter way to accomplish this task. Do I have my head screwed on right here? Any suggestions?

    I think that I posted this in the wrong forum... maybe an admin can move this to the AS3 section?
    Anyway, in the absence of an answer, I coded the following, and it works pretty well. I had to round the alpha values to the tenths place.
    YOURBUTTON.addEventListener
      MouseEvent.MOUSE_OVER,
      function(evt:MouseEvent):void
        var _out1:Number = 1;
        var _out2:Number = 0.8;
        var _in1:Number = 0;
        var _in2:Number = 0.2;
    while (_in2 <= 1)
        var MOVIECLIP1_out:Tween = new Tween(MOVIECLIP1, "alpha", Regular.easeOut, _out1, _out2, 1, true);
        var MOVIECLIP2_in:Tween = new Tween(MOVIECLIP2, "alpha", Regular.easeIn, _in1, _in2, 1, true);
        _out1 = int((_out1 - 0.2 + 0.05)*10)/10;
        _out2 = int((_out2 - 0.2 + 0.05)*10)/10;
        _in1 = int((_in1 + 0.2 + 0.05)*10)/10;
        _in2 = int((_in2 + 0.2 + 0.05)*10)/10;

  • Access a button inside a movieclip

    Hey...
    Im pretty new to flash, I have a problem that have taken hours, only not to getting sorted out, so i'll try my luck here...
    I've basicly made a rollover menu which is nested inside a movieclip. the movieclip is put on 1 st. frame on the main timeline and I want the buttons inside the movie clip to take the user to a different frame on the main timeline, but no matter what I do it's just not working...
    here is some of he solutions i have tried to do:
    function work1(e:Event)
    //MovieClip(parent.parent).gotoAndStop("work1")
    //gotoAndStop("work1")
    //this.gotoAndStop("work1")
    //parent(gotoAndStop("work1"))
    //MovieClip(this.parent).gotoAndStop("work1")
    //MovieClip(parent.gotoAndStop("work1"))
    //this(gotoAndStop("work1"))
    //main.gotoAndStop("work1")
    //root.gotoAndStop("work1")
    //MovieClip(root).gotoAndPlay("work1")
    //MovieClip(stage).gotoAndPlay("work1")
    //MovieClip(root.parent.parent).gotoAndStop("work1");
    work1_btn.addEventListener(MouseEvent.CLICK, work1);
    hope someone can help...

    sure, there are a zillion ways, that timeout function was more to demonstrate the problem than offer a valid solution...
    Personally, with what you're doing, here's my first inclination for handling it:
    Just add this bit, dumping that other stuff:
    stage.addEventListener(MouseEvent.CLICK, clickHandler);
    function clickHandler(event:MouseEvent):void{
         if (event.target is SimpleButton&&event.target.name!=null){
              gotoAndPlay(event.target.name);
    That assumes you've given those buttons the same name as the frame you want them to go to. In your example, rename that first button as work1, and that code will send you to the frame with that name on click. That code will handle all the buttons, assuming you name the frame and button instances the same (like button work2 would take you to a frame named work2 etc).
    Since it's a stage click handler, it can handle any click. Here's the breakdown:
    //adding a global click listener.
    stage.addEventListener(MouseEvent.CLICK, clickHandler);
    //what to do with the click
    function clickHandler(event:MouseEvent):void{
         //here we're just checking to see what's clicked (from your example, they are SimpleButtons)
         //and then the && means 'and'  we're making sure that button has a name.
         if (event.target is SimpleButton&&event.target.name!=null){
              //goto the frame with the same name as the button
              gotoAndPlay(event.target.name);
    HTH,
    -Ted

  • Help (retrieving image name from xml then will be echoed inside the movieclip

    Hello guys, I just want to ask sometihng on how to show the image inside the movieclip by pulling the image name inside the xml file.
    this is my xml file.
    <?php
    header("Content-type: text/xml");
    $host = "localhost";
    $user = "root";
    $pass = "";
    $database = "test";
    $gelo= "image1.jpg";
    /*xml output*/
    $xml_output = "<?xml version=\"1.0\" ?>";
          $xml_output .= "<GALLERY>";
              $xml_output .="<IMAGE>" . $gelo . "</IMAGE>";
         $xml_output .= "</GALLERY>";
    echo $xml_output;
    ?>
    //this is the code inside my actionscript
    stage.scaleMode = StageScaleMode.NO_SCALE;
    var loader:URLLoader = new URLLoader();
    loader.dataFormat = URLLoaderDataFormat.TEXT
    loader.addEventListener(Event.COMPLETE, loadCompleteHandler);
    loader.load(new URLRequest("http://localhost/loadimagefromxmlAS3/data.php"));
    function loadCompleteHandler(event:Event):void {
    var xml:XML = new XML(event.target.data);
    //txt.text = xml.toXMLString();
    trace(xml.IMAGE[0]);
    var list:XMLList = xml.data.title
    var loader:Loader = new Loader()
    this["holder_mc"+0].addChild(loader)
    loader.load(new URLRequest(list[0].IMAGE))    
    When I run it in flash, I got the error
    image1.jpg
    TypeError: Error #1010: A term is undefined and has no properties.
        at xml_fla::MainTimeline/loadCompleteHandler()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at flash.net::URLLoader/onComplete()
    I hope you will consider my ignorance since im a beginner using the actionscript. Thank you

    1) You should have "Permit debugging" enabled in Publish settings so you could tell exactly witch line is wrong
    2) This line makes no sense to me: var list:XMLList = xml.data.title
         Change it to var list:XMLList = xml.IMAGE;
    3) loader.load(new URLRequest(list[0].toString()));
    4) Also this line is suspicious: this["holder_mc"+0].addChild(loader)
         Why don't just say: holder_mc0.addChild(loader)?

  • Calling a variable inside a movieClip.

    Hi. I'm having problems in calling my variable score which I assigned inside a movieClip. What I want to happen is when my score reaches my desired value(e.g. 10), I want the congratulations screen to be visible. The congratulations screen is placed in the main timeline. Is there a way I can access the variable that I created inside a movieClip?
    I tried using:
    if (score == 10)
    MovieClip(root).screen_1.visible = true;
    // this code snippet is placed inside the movieClip where the variable score is declared. But it doesn't seem to work.
    I also tried:
    if (MovieClip(root).score == 1)
    screen_1.visible = true;
    //this code snippet is placed in the main timeline.  It also didn't work. I didn't get any errors in this codes but it doesn't give me the result that I wanted. Thank you.

    i assume the congratulations screen is on the same timeline as the code you showed.
    in that situation, you should be using MovieClip(root).score to reference score defined on the main timeline.  in addition, that code needs to execute everything score is updated so put that code in a function and call that function each time score is updated.

  • How to update the value inside a field symbol ?

    ASSIGN COMPONENT 'MENGE' OF STRUCTURE <fs_line> TO <fs_field>.
    <fs_field> = itab_stpo-menge.
    COLLECT <fs_line> INTO <fs_table>.
    .processing some code......
    ASSIGN COMPONENT 'MENGE' OF STRUCTURE <fs_line> TO  <fs_field>.
    <fs_field> = ( itab_stpo-menge * itab_plpo-vgw03 ).
    COLLECT <fs_line> INTO <fs_table>.
    Hi, guys,
    May i know is there a way to update the value in inside a field symbol?
    I feel hard to figure out the way to solve this situation. Kindly give me some help or perhaos tell me other altenative way to do it also can.
    Thanks in advance.
    Edited by: Jiansi Lim on Apr 25, 2008 8:09 PM

    hi check this...
    For a structured data object s, you can use the statement
    ASSIGN COMPONENT comp OF STRUCTURE s TO FS.
    Here the comp is the component name or its index number in the structure.
    Find the following sample code -
    DATA: BEGIN OF LINE,
    COL1 TYPE I VALUE '11',
    COL2 TYPE I VALUE '22',
    COL3 TYPE I VALUE '33',
    END OF LINE.
    DATA COMP(5) VALUE 'COL3'.
    FIELD-SYMBOLS: <F1>, <F2>, <F3>.
    ASSIGN LINE TO <F1>.
    ASSIGN COMP TO <F2>.
    DO 3 TIMES.
    ASSIGN COMPONENT SY-INDEX OF STRUCTURE <F1> TO <F3>.
    WRITE <F3>.
    ENDDO.
    ASSIGN COMPONENT <F2> OF STRUCTURE <F1> TO <F3>.
    WRITE / <F3>.
    The output is:
    11 22 33
    33
    I need to update one field in Internal table
    regards,
    venkat

Maybe you are looking for