Inserting dynamic calculation in javascript to the stage

I'm working with a partner on calculating the area of a rectangle, as a user changes its size. We're using javascript and so far have:
function calculateArea() {
var width = +document.getElementById("width").value;
var height =+document.getElementById("height").value;
var area = width * height;
document.getElementById("area").value = area;
Width <input type="Text" name="width" id="width" size="4"> 
Height <input type="Text" id="height" name="height" size="4" onkeyup=""> <br><br>
Area <input type="Text" name="area" id="area" size="4"> <br><br>
<input type="button" name="calculate" id="area" size="4" onclick="calculateArea()" value="calculate">
The main problem is that we're having difficulty getting the result of the calculation to show up in a textbox on the stage. 
The subproblem is that because we can't see the result, we don't know whether the code is calculating correctly!
Any help would be appreciated!

You can use the command console.log() to post the info to the console, and see that in your browser's console.  If you want to have it show up in your textbox, you can refer to it like this:
Assuming the name of the element is "myTextBox":
sym.$("myTextBox").html(area.toString()); // use toString() because area is a numeric value
Hope that helps!
-Elaine

Similar Messages

  • How to dynamically duplicate an item on the stage

    Hello,
    I have a box (lets call it 'xBox') on the stage that contains
    a couple comboboxes and buttons.
    One of the buttons (labelled 'add new search feature') when
    clicked will duplicate the whole box 'xbox' and give it a new
    unique name that can be referenced. So, now there would be two
    boxes on the stage that look exactly the same.
    You can click the 'add new search feature' button repeatedly
    and each time a new 'xbox' will appear at the bottom below the
    previously created 'xbox's....
    I have played with states some, but am unsure how that would
    apply to an infinite amount of new 'xbox's being created.
    Is this possible? Any help is greatly appreciated.
    here is the code:
    <mx:Box direction="horizontal" borderStyle="solid"
    paddingTop="10" paddingBottom="10" paddingLeft="10"
    paddingRight="10">
    <mx:ComboBox id="xField" width="100%">
    <!-- An inline data provider -->
    <mx:Array>
    <mx:Object data="0" label="Yards gained" />
    <mx:Object data="1" label="Shotgun" />
    <mx:Object data="2" label="TD" />
    <mx:Object data="3" label="Down" />
    <mx:Object data="4" label="Leading" />
    <mx:Object data="5" label="Quarter" />
    <mx:Object data="6" label="Turf/grass" />
    <mx:Object data="7" label="Stadium type" />
    <mx:Object data="8" label="Home" />
    <mx:Object data="9" label="Opponent" />
    <mx:Object data="10" label="Month" />
    <mx:Object data="11" label="Season" />
    </mx:Array>
    </mx:ComboBox>
    <mx:ComboBox id="argument" width="100%">
    <!-- An inline data provider -->
    <mx:Array>
    <mx:Object data="0" label="Equals" />
    <mx:Object data="1" label="is greater" />
    <mx:Object data="2" label="is less" />
    <mx:Object data="3" label="is not" />
    </mx:Array>
    </mx:ComboBox>
    <mx:TextInput id="enter_data"/>
    <mx:Button label="Search"/>
    <mx:Button label="Add new Search Feature"/>
    </mx:Box>

    Okay, what you want to do is, make a custom component out of
    the xBox. Then in your main application you wan to make an array of
    objects. Every time the button (to add xBoxes) is clicked add one
    to the array, then also add it to the main app's list of children.
    You want to add it to the array so that you can still reference it.
    Try something like this:
    import xBox;
    import mx.collections.ArrayCollection;
    private var xBoxArray : ArrayCollection = new
    ArrayCollection();
    private var location : int = 1;
    private function buttonClickHandler() : void
    var temp : xBox = new xBox ();
    xBoxArray.addItemAt ( location, temp );
    whereYouWantTheXBoxesToGo.addChildAt ( location,
    xBoxArray.getItemAt ( location ) );
    <mx:Button click="buttonClickHandler()"
    label="More xBoxes" id="360" />
    <mx:Box id="whereYouWantTheXBoxesToGo"/>
    <!--
    -->
    This is just a rough guide of what to try. But something like
    this should work.

  • How to implement the javascript and the  insert process ?

    Hi,
    In my application I have created one region with one text box and one button.
    On click of the button , first a javascript should run to validate the textbox value , if there is an error it should alert the user ,otherwise the insert process (I have written a PL/SQL block under processes in page processing) should get executed.
    when i tried to implement this only javascript is getting executed but the insert process is not executed...
    so how I should implement the above case?
    here i invoke the javascript in the URL Target as
    javascript:myfunction();

    hey hiiii,
    i have also tha same problem as mentioned by ANOO.
    and the button on which i m applying the javascript is "Create"
    i have written doSubmit('Create'); in my javascript code ,
    but after doing this the process named "Create" which is conditioned by this button is not being called...
    so what can i do now...

  • Dynamically adding multiple instances of a movie clip to the stage with one button

    hello,
    I was wondering if there was a way to add several instances
    of the same movie clip to the stage dynamically utilizing one
    button.
    I can do one with the following code placed on the button...
    on (release) {
    attachMovie ("filledCircle", "filled1", 5);
    filled1._x = 370;
    filled1._y = 225;
    But I want the user to be able to hit the button again and
    get yet another instance of "filledCircle" on the stage.
    I also want the user to be able to drag these instances
    around...
    Any help would be appreciated...
    Thanks,
    Muhl

    Muhl,
    > I was wondering if there was a way to add several
    > instances of the same movie clip to the stage
    > dynamically utilizing one button.
    Sure thing.
    > I can do one with the following code placed on the
    > button...
    >
    > on (release) {
    > attachMovie ("filledCircle", "filled1", 5);
    > filled1._x = 370;
    > filled1._y = 225;
    > }
    Gotcha.
    > But I want the user to be able to hit the button again
    > and get yet another instance of "filledCircle" on the
    > stage.
    You're in luck, because this isn't very hard to do. The main
    thing to
    keep in mind is that each instance must have A) its own
    unique instance name
    and B) its own unique depth. In your example, the instance
    name is filled1
    and the depth is 5. The next clip's instance name should be
    filled2 at a
    depth of 6. Then filled3, depth 7, and so on. You can use a
    single
    variable to handle the incrementation.
    // code in a frame
    var counter:Number = 1;
    // code on your button
    on (release) {
    attachMovie ("filledCircle", "filled" + counter, counter +
    4);
    With me so far? The variable counter contains the numeric
    value 1. The
    second parameter of attachMovie() is provided with a
    concatenation of
    "filled" + 1, which makes "filled1". The third parameter is
    provided with
    the sum of counter plus 4, which makes 5. Obviously, we need
    a bit more.
    The button must, in addition, increment the value of counter.
    The ++
    operator handles this perfectly.
    on (release) {
    attachMovie ("filledCircle", "filled" + counter, counter +
    4);
    counter++;
    Now, it seems you also want to position the attached movie
    clip to (370,
    225). Are they call supposed to go to the same place? If so,
    you may use a
    second variable to hold a reference to the newly attached
    clip. Look up
    MovieClip.attachMovie(), and you'll see that the method
    returns the exact
    reference you need.
    // code in a frame
    var counter:Number = 1;
    var mc:MovieClip;
    // code on your button
    on (release) {
    mc = attachMovie ("filledCircle", "filled" + counter,
    counter + 4);
    counter++;
    mc._x = 370;
    mc._y = 225;
    Make sense?
    > I also want the user to be able to drag these instances
    > around...
    Then you need to handle a few events. You're dealing with
    movie clips
    here, so your best bet is to study up on the MovieClip class,
    which defines
    all movie clips. (Note, also, that the TextField class
    defines all input
    and dynamic text fields; the Sound class defines all sounds,
    etc. This is a
    very handy arrangement of the ActionScript 2.0 Language
    Reference.)
    // code in a frame
    var counter:Number = 1;
    var mc:MovieClip;
    // code on your button
    on (release) {
    mc = attachMovie ("filledCircle", "filled" + counter,
    counter + 4);
    counter++;
    mc._x = 370;
    mc._y = 225;
    mc.onPress = function() {
    this.startDrag();
    mc.onRelease = function() {
    this.stopDrag();
    Easy as that. You're simply assigning a function literal to
    the event
    of each new MovieClip instance as you create it. Take a look
    and you'll see
    each of these class members available to you -- that is, to
    all movie clips.
    MovieClip.onPress, MovieClip.startDrag(), MovieClip._x, etc.
    Wherever it shows the term MovieClip in the Language
    Reference, just
    replace that with the instance name of your clip -- or a
    reference to that
    clip (which even includes the global "this" property).
    David
    stiller (at) quip (dot) net
    Dev essays:
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • How to remove a dynamic symbol from the stage?

    I'm loading dynamically copies of a Library symbol with a button click. Question is, when I move around in the timeline, I don't want to see the symbols at certain points. Can I loop through the json file and remove each symbol from the stage? Or is there a better way of accomplishing this?
    Being new to Edge Animate, I'm also unsure as to the names of the symbols as they are placed on the stage. If I use the browser's developer tools, I can see that the divs are named Stage_90, Stage_91, Stage_92 etc. However doing something like the following does not seem to work:
    sym.$("Stage_90").hide();
    I appreciate the help. Thanks again.

    I got it. It should be:
    $("#region1").remove();  
    // # was missing.
    I actually added that to time 0 on the main timeline so when I got back there it removes the image.
    It's not working from the symbol yet but I guess I should eventually get it working from there instead.
    Thanks for your time.

  • Why does Edge increase the size of the stage when I insert .oam via Dreamweaver?

    I am creating a slider for a site's Home Page, and specified a Stage size of 960 x 255 pixels in my Edge Animate document. When I inserted the .oam file from Dreamweaver (Insert > Media), the dimensions grew to 980 x 275 pixels. Manually correcting the dimensions does not correct the problem. The width remains wider, and a gap exists between the bottom edge of my animate object and the border graphic that overlays the object.
    How do I correctly specify the stage size so it remains at the size I specify once I insert the .oam file in my page?
    Thanks,
    Kevin

    Provided feedback in this thread - http://forums.adobe.com/thread/1126857?tstart=0
    Darrell

  • Unknown calculation type [0] during the dynamic calculation

    Dear Experts,
    I've received the following error when I try to run a business rule (Run on save) attached to a data form:
    "Unknown calculation type [0] during the dynamic calculation. Only default agg/formula/time balance operations are handled"
    Thanks in advance..

    Log into Oracle Support and have a read of
    "Error "1012703 Unknown calculation type [0] during the dynamic calculation. Only default agg/formula/time balance operations are handled" During Calculation [ID 744529.1]"
    "Error: "Unknown calculation type [0] during the dynamic calculation. Only default agg/formula/time balance operations are handled." [ID 593227.1]"
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Dynamically loaded swf to communicate with MovieClip on the stage

    I have a heck of time here with an issue. I have an xml document that when a certain button on the stage is clicked it loads it's corresponding external swf into an empty movieclip on the stage. This empty movie clip is a holder for all external swfs.
    So what I'm trying to do is when an external swf is loaded that has buttons on it, I need those buttons to communicate with the main timeline and remove a mc that is on the Stage. I need the currently loaded swf(s) to be able to do this. So whatever the currently loaded external swf is that's loaded, I need it to talk to the main timeline. (I have quite a few external swfs that need to do this) So I imagine I need to somehow target the currently loaded external swf to get it to talk to the main timeline.
    The code below in summary doesn't work but it doesn't give errors either. I don't pretend to know what I'm doing and I haven't been successful in searching for a solution to this particular issue. If someone could give me guidance or direct me to a solution. I'd so much appreciate it.
    // main timeline object
    var index:Object=this;
    function loadComplete (e:Event) {
            TweenMax.to(index.mcholder,1, {alpha: .5});
    // add the current module to the mcholder movieclip by using addChild
            index.mcholder.addChild(e.currentTarget.content);
           (e.currentTarget.content as MovieClip).addEventListener("eventTriggered", startListener);
    function startListener(e:Event):void {
    var ext_swf:MovieClip;
    ext_swf = e.currentTarget.content as MovieClip;
    trace("external swf");
    ext_swf.button1.addEventListener(MouseEvent.CLICK, talktomainswf);
    function talktomainswf():void {
    TweenMax.to(index.mc_thatsonthestage, 1, {x:1000});
    // now we have the first load we set firstLoad to false
            index.firstLoad = false;
        function loadError (e:Event) {
            trace("error");

    You can use the event dispatcher to communicate between external swfs and a main timeline,
    like so:
    //in an external swf
    //Once loaded
    function onLoadComplete(event:Event):void
         //dispatch an event in the form of a string
         dispatchEvent(new Event("Talk to Main Timeline")); 
    //On the Main timeline
    //listen for "Talk to Main Timeline"
    stage.addEventListener("Talk to Main Timeline", listenForCallsFromExternalFiles, true);
    //if the event is heard, do this:
    function listenForCallsFromExternalFiles(e:Event):void
         trace("I heard ya, now do stuff...");
    That's the basic idea anyways, I use it all the time.
    hope that helps,
    ~chipleh

  • Calculation in Javascript or FormCalc "to the power"

    Hi,
    How can I caculate the following expression using either formcalc or javascript. The Expression pow(x,y) doesn't seem to be recognized.
    Expression: BSA.rawValue = pow(height.rawValue,0.45) * weight(weight.raxValue,0.72)
    or BSA = x^0.45 * y^0.72
    I couldn't find the answer in the forum.
    Thank you for your help,
    Olivio

    In Javascript the command should be:
    Math.pow(x,y);

  • How to refer to a Label on the Stage from within a Symbol

    Hi Edgefriends,
    I'm working on a project in Edge Animate, however I have about zero experience with JavaScript and I can't seem to get this working without it so I hope someone can help me to get this done.
    Below you see the code I need help with. It's part of a Symbol situated on the Stage. What I need it to do is to play from a Label ('subFontsTitels') situated on the Stage-level. I've tried a lot of posibilities but with no (satisfying) results. Could you please help me?
    Part of the code:
    Symbol.bindElementAction(compId, symbolName, "${_Button}", "click", function(sym, e) {
    // play the timeline from the given position (ms or label)
    sym.getComposition().getStage().sym.play('subFontsTitels');
    // insert code for mouse click here
    //Edge binding end

    hmmm it doesn't seem to solve the problem yet. I'll paste the full code attached to the symbol, maybe there's a problem with the whole combination of the code:
    Code
    Symbol.bindElementAction(compId, symbolName, "${_Button}", "mouseover", function(sym, e) {
    sym.stop("over");
    //Edge binding end
    Symbol.bindElementAction(compId, symbolName, "${_Button}", "mousedown", function(sym, e) {
    sym.stop("down");
    //Edge binding end
    Symbol.bindElementAction(compId, symbolName, "${_Button}", "mouseup", function(sym, e) {
    sym.stop("up");
    //Edge binding end
    Symbol.bindElementAction(compId, symbolName, "${_Button}", "mouseout", function(sym, e) {
    sym.stop("normal");
    //Edge binding end
    Symbol.bindElementAction(compId, symbolName, "${_Button}", "click", function(sym, e) {
    // play the timeline from the given position (ms or label)
    sym.play("subFontsTitels");
    //Edge binding end
    The symbol's name is SubTekstTitels and it's located directly on the Stage. The label "subFontsTitels" is located on the Stage aswell. I hope this will help getting this done.

  • Inserting Dynamic Images in to a Crystal Report 10

    Hi all,
    I am trying to insert dynamic pictures into my report from repository, by getting the path for the picture from database fields. The version that I am using is Crystal Reports 10.
    Here is what I have done.
    I inserted an OLE object into the report, went to "Format Graphics" by right clicking on the OLE object, then to "Hyperlink" Tab (as I didn't see anything other than "Reset" button and picture dimension options under the "Picture" tab), and selected "File" Radio button (as I didn't want to display the picture as Hyperlink) and gave the @Filepath as the formula there. @Filepath is the formula that gives me the complete path for the JPEG that I need to insert in the report.
    filepath = field A + field B
    where field A is the location for the image and field B is the actual image name.
    the actual image is located in repository folder.
    I am not able to see the image in the report "Preview" section as it is showing it has an empty box and when I click on that empty OLE object, I am able to view the image in a separate window where as my requirement is to view the image within the report (not in a separate window).
    I didn't find anything useful under Format Graphics -> Picture tab.
    I appreciate any kind of help from you all.
    Thanks!

    That feature wasn't available nor was it supported in CR 10. You'll have to upgrade to CR Xi R2 or 2008 to allow using a database field as the location of the file.
    CR 10 would only load the picture when the report is opened, it will never update when clicking on the refresh button.

  • Displaying the value of an variable on the stage

    I have managed to display the values contained in string variables on stage, and I am happy with that, however when I wish to display the value of an int and convert it to a string as one is supposed to do the output to the stage just calls it [class int] and does not give its value. any suggestions?
    My rogram contains a stage at frame 1 which displays a word. The user must input a word. Frame 30 then displays the word which was displayed and the word input by the user. That all works fine. But the value of the variable NumberRight, which has been assigned to that variable will only display as [class int] without showing its value. (even though I have converet it to a string using the .to string function you see below).
    My code is as follows;
    trace( "The number correct was" + NumberRight); //This works fine in the output window and shows the value of the variable as NumberRight [class int]1 (showing the value to be 1)
    outputText.appendText("in/"+textAtIN); //this works fine displaying the word presented and word input by user as in/in
    outputText.appendText( NumberRight.toString(     )); //here lies the problem as it just displays [class int] and nothing else.
    Yes I have managed to overcome that problem it was some code on the first frame, please excuse, however, now, is there any way to remove the [class int] bit from the displays, I wish to have the results as a clear copy of the results so that they can be printed out, without [class int] all over the place?

    Hi Ned thanks for that. Yes I had accidently created blank spaces in the String() argument. (wanted to check if there was a subsequent difference in display and forgot to return them to normal ...Sorted )
    Your next suggestion has eliminated the [class int] but I get a value now of 0.
    My code on the first frame for a correct response for example is;
    function keyPressedIN(event:KeyboardEvent):void
              if (event.keyCode == 13)/*Normally,this will move straight on to the next frame-
              recording a correct response and all that that implies in terms of scores etc. But now I have re directed it to Frame 30 to check are the variables working properly*/
                        //insert code for correct responses vowels etc.
                        VowelI = VowelI+1;
                        NumberRight = NumberRight +1;
                        stage.focus = stage;
                        //There is no need to display the text box as this is a correct response.
                        pupilsResponseIN.visible = false;
                        mainText.visible = false;
                        gotoAndPlay(30);//at the moment this takes me to the display frame to check if all is ok
    On the first frame when the user say hits the Return key my code assigns the value of +1 to the variable; eg
    NumberRight=NumberRight+1;
    and the value of +1 to the value of VowelI
    VowelI=VowelI+1
    At Frame 30 the code is as follows;
    stop();
    trace( "The number correct was"+ NumberRight);
    outputText.appendText("in/"+textAtIN);
    outputText.appendText( "\n");
    outputText.appendText("Vowels Correct ="+(int(VowelI).toString()));
    outputText.appendText( "\n");
    outputText.appendText("TotalCorrect="+(int(NumberRight).toString()));
    //outputText.appendText( VowelI.toString());
    Now what I am getting  is
    in/in
    Vowels Correct = O
    Total Correct = O
    Yet the trace (output box) records the Number correct as [class int]1 
    many years ago I wrote this same program in Authorware using similar code. I am trying to re write it in FlashCS5 using ActionScript 3 and It take days to solve small problems. I notice also that If for example the user of the program makes an error and I record the error as NumberRight =NumberRight -1 the program records it as Total Correct = NaN .
    I gave up on this a few months back but I am trying again. I think there must be a better way to do this. Variables do not seem to add up or subtract for me at present. no doubt its me thats got it wrong.

  • How do I show multiple rollover images on a page inserted dynamically (pulled out of a sql database

    How do I show multiple rollover images on a page inserted dynamically (pulled out of a sql database table) using Dreamweaver’s Repeat Region. Example: I have different products each one associated (through their productID) with two images (one that’s showing in the page and one for the rollover effect) that are pulled from a database using Dreamweaver’s Recordset. So I want to end up with a page containing row after row of images(one for every product).When moused over each image will reveal the second (rollover) image for the same product which in turn can be a link(the image itself ) that when clicked leads to a detailed page with more information about the product the image is associated with. To show row after row with images for the different products in the database table I am using Dreamweaver’s Insert Rollover Image command and then the  Repeat Region – I have no problem to complete the steps, to insert the image and the rollover one at once and set the paths so they are pulled dynamically depending on the productID they are associated with .I have also no problem to apply the Repeat Region so not only the first image associated with the first product in the table is shown but all of them-a routine and standard procedure when using the Repeat Region to dynamically generate and display multiple rows of data. However, when I preview the page the rollover effect is lost –the images are shown but when moused over the second  image does not  show. The problem is caused when the Repeat Region is applied-once again I am allowed to apply it but the rollover stops working, a kind of interference. ANY SOLLUTION PLEASE, ANY WORK AROUND.

    I gotta tell you, using multiple images for rollover effects is going to be a big challenge in your dynamic scenario. 
    If this were my product page, I would use thumbnails with a bit of CSS opacity or filters to desaturate and make them full opacity/color on mouse over.  Nice effect with much less bandwidth. Easily done globally with CSS code.
    Two examples:
    http://alt-web.com/GALLERY/GalleryTest.php
    http://alt-web.com/TEMPLATES/CSS-Semi-liq-photo-sheet.shtml
    Nancy O.

  • Inserting dynamic image doesn't work for range of records

    Hi,
    I'm using BI Publisher 5.6.3 and E-business Suite 12.1.3.
    I have set up my RTF template so that it brings in a logo image dynamically onto an invoice.
    The code in the "alt text" field behind my dummy image is: url:{concat('${OA_MEDIA}/',//CF_LOGO)} 
    The image is within a repeating loop that loops around the invoices chosen.
    It works fine if I run the concurrent request for a single invoice - the correct logo image is shown.
    However if I run the concurrent request for a range of invoices which should contain a mixture of both logos it doesn't work and prints the same logo for each invoice regardless of what it should be displaying.
    For testing purposes I also output the name of the image, field CF_LOGO (which is calculated in a formula in the RDF file) just before the actual image, and this always displays the correct value even for a range of invoices. As you can see above this is the field that I include in the code to obtain the image.
    Does anyone have any idea why a range of invoices will only display one logo image?
    Many thanks for any suggestions.
    Regards,
    Hazel

    It's a bug in MDM 5.5 SP04.  The fix is in MDM 5.5 SP05.

  • SCN document: 'Insert Image' greyed out at a certain stage/size

    I noticed  a similar issue likeTammy has reported in discussion/thread .Cannot insert or upload an image
    After having inserted text and several images to a draft document, the 'Insert Image' icon became greyed out at a certain stage/size.
    I did some tests following document Solution for Error: Cannot Insert Images on SCN Content, but the the behavior remained the same. Only after having deleted the last inserted image in the document > Save Draft > Edit again the 'Insert Image' icon was not greyed out anymore which is argueing for a size restriction.
    The same html coding as in the document put into a blog does not grey out the ‘Insert Image’ icon. But I found out that after clicking on the ‘Insert Image’ icon > ‘From your Computer’  tab ‘Browse’ is greyed out. Strange and argueing against a size limit is, when I choose ‘Uploaded Images’ I can select images and still  insert them into the blog.
    Does someone have similar experiences / can assist.
    Thank you, Barbara

    We have a recent discussion in SCN support.
    He has same problem. Have a look into the discussion Issue with 'Insert Image' button while creating document in SCN
    I suggest to split you document into two part as part 1 and part 2.

Maybe you are looking for

  • Can't record video or audio with my MBP's isghit

    Everytime I try to record a video or a sound using quicktime and the isght in my MBP an error message saying the "recording could not create a file" disk may be full or not writeable". my disk is not full for sure... any ideas? Thanks

  • Variable field in Header for every new page

    Hi Friends. I am printing a new page on every new material no encountered . At the same time the HEADER has a field called Container name which is different for each  material so this header field needs to be update each time when a new page is calle

  • Services missing in SharePoint Central Administration

    Hi, In SharePoint Central Administration -> Application Management -> Manage Service Application. I could see only the following services - Application Discovery and Load Balancer Service Application - Security Token Service Application - Usage and H

  • Getting  sync failed error

    Hi All, i am extermely new to Mobile developement. I created one device in the DOE, assigned the SWCV. Now i have created the UI component for Handheld,Service comp and app in the studio. I run the application and SAP netweaver mobile client is launc

  • Nokia lumia 521 equalizer update

    So yesterday got real excited when i got this notification from the windows store. Downloaded the updaate and i stilo cant get it to work. I got to my settings and hit music it loads for a couple seconds, and for a fraction of a scond i can see the e