Edge Animate CC :: Add 2 Variables That Are Entered Via Input Text / Number Type?

Oct 15, 2013

So I have created 2 text fields via composition ready
 
 $("<input type='text' value='' name='input1' id='input1' size='5'>").appendTo("#Stage");
sym.$("#input1").css({"position":"absolute","top":"70px", "left":"52px"});
$("<input type='text' value='' name='input2' id='input2' size='5'>").appendTo("#Stage");
sym.$("#input2").css({"position":"absolute","top":"90px", "left":"52px"});
  
input1 AND input2.
 
The user then puts a number in each field.
 
I have a 3rd field created to hold the answer. I also made a text field with the name "scorefield" to see if that would work, either will do.
 
Then on a button on the stage, the user clicks on it to add those first two numbers together and have the sum appear in the 3rd field or the text field that has the symbol name "scorefield".
 
However I can not seem to be able to add the 2 values of the text fields. On the submit button I have: 
 
var number1 = $("#input1").val();
var number2 = $("#input2").val();
var additionresult = number1 + number2;
sym.$('scorefield').html(additionresult);
answer1.value = additionresult;
 
The problem is that it is NOT adding number1 and number2 together!
 
If I substitute + for - or / or * it works using those symbols, but if I try to use the plus sign and add the two, it does not work and instead physically adds the numbers next to eachtoher.
 
So If I were to put a 5 in field one, and a 2 in field 2, the result comes out to be 52...instead of adding the two values, it places them next to eachother.
 
I know those ARE numeric values because any other mathamatical sign works. I can multiplay, subtract and divide those two numbers. I can even check to se if its higher or lower of a value using > or <.
 
But when I use the + sign, it breaks.
 
Is there some other sign I must use to add two values?

View 2 Replies


ADVERTISEMENT

Edge Animate CC :: Displaying Changing Variables As Text

Jan 15, 2013

I'm working on a game in Animate that tracks several scores at the same time – six, to be exact. There are six personalities in the game, and the player's actions determine the positive or negative score displayed to each personality.
 
The player is presented with a situation and their action effects their score with one or more of the personalities. I'd like to know how to set a text field to change by a negative or positive value (not just changing to a specific number), based on which button the player chooses. I've created symbols for each of the six score fields, each one has a uniquely named text field inside the symbol.

View 7 Replies View Related

Edge Animate CC :: Validating Value From A Input Text Field

Mar 18, 2014

I'm new to the Edge Animate and I have been working on a project that requires text input. The code does not 'recognise' the value entered into the input field. The action is quite straight forward, Correct Answer (360) play label 02, Wrong Answer play label 03. Ideally I would like allow three attempts. 

var answer = sym.$("answer");
answer.html("Answer 1");
inputAnswer = $('<input />').attr({'type':'text', 'value':'', 'id':'answer'});
inputAnswer .css ('font-size', 14);
inputAnswer .css ('width', 150);
inputAnswer .css ('background-color','#ffffff');
inputAnswer .appendTo(answer);
[code]....

View 10 Replies View Related

Edge Animate CC :: How To Put Input Text To Other Text Field With Same Format

Jul 19, 2013

I've created an input text inside a symbol called "Asks" in a timeline triger i use:
 
message = sym.$("texto");                                  // texto is a textfield
message.html("Write here: ");                             
inputMessage = $('<textarea />').attr({'type':'textarea','value':'', 'id':'message'});
inputMessage .css ('font-size', 18);
inputMessage .css ('box-shadow', '#0a81fb');

[Code] ......

View 7 Replies View Related

Edge Animate CC :: Cursor Position Offset For Input Fields Only On Apple IPad

Feb 21, 2014

I have made an animation that after it completes, it displays an iFrame which has some input fields.  The input fields behave great on a laptop pc or mac but when I use an Apple iPad, the cursor positions are way off outside of the input fields as I type.
 
Here is the website page: URL...Here I have the same iframe, one inside of edge and the other outside of edge.  Both work fine on a pc or mac but if you try to use an Ipad, you will see that the edge one shows the input field cursor down and outside of the input field.
 
You can see for yourself,   I have set this up for you to test and see this error.The animate oam file is:  URL....
 
Here is a link to the edge files, the .an and java files files: URL.....

View 7 Replies View Related

Edge Animate CC :: File Desktop To Browser - Drag Drop / Input Upload

Jul 22, 2013

I'm working on a project with drag and drop and im using jqeuryui for that.but i want the user to be able to drag a photo to the page and that it apears on the page in the browser ( no fancy upload but just client data)and also a button to "upload it" but just also using data ( i dont want to use node.js or any database for this project.)
 
so just a dragged photo from desktop to browser and let that attend a div, and a input button to upload a photo and let that attend a div.all simple local.

View 6 Replies View Related

Edge Animate CC :: Count Up To A Particular Number?

Apr 17, 2014

I'd like to create a numerical animation that counts up to %100 in Edge Animate. Is this possible? I'm brand new to the program.

View 3 Replies View Related

Edge Animate CC :: Turning XML Imported Data To A Number

Apr 14, 2013

I am trying to turn XML data into a number that I can use in formulas in Animate. I have successfully retrieved the info from the xml file into the text on the stage. My problem is that I need to have the value of the imported data to be a number so that I can do future calculations with it, like add the two numbers together to make a new variable total. I have racked my brain reading about XML, spent several days trying obvious solutions to no avail, and yes I am new to coding although I have thoroughly tried many options.

-----IMPORTING AN XML FILE "textimport.xml"
<?xml version="1.0" encoding="UTF-8"?>
<mediansaleschart>
<figureone>20</figureone>
<figuretwo>10</figuretwo>
[code]....

View 6 Replies View Related

Edge Animate CC :: Have Reached The Maximum Number Of Elements In Timeline

Aug 12, 2013

What is the maximum number of elements I can have in the timeline? I believe I have about 92 elements now and when trying to add another element it shows up at the top of the elements panel, but isn't showing up at all in the timeline?
 
I have tried converting some elements to symbols or grouping elements but still the new element I've added to the stage is not showing up in the timeline. I am not EVEN done adding more elements.

View 11 Replies View Related

Edge Animate CC :: Add A ClickTag Type Function?

Feb 26, 2014

I need to add a clickTag type function to a banner I made so that it can be tracked. I read the thread on clickTag() and it tried swapping clickTag() with EB.clickthrough(). but that didnt work.
 
The media company has us put this code on a click through layer in the flash banners I've been making
 
EB.clickthrough();
 
how do I get this to work? The publisher gave me this code that ive added to the index file but the part where it says "onclick" I think needs to happen in edge?
 
<script type="text/javascript">
    function initEB(){
        if (!EB.isInitialized()){[code]....

how in edge to tell it to do this "onclick="javascript:handleUserActionButtonClick();"

View 4 Replies View Related

Edge Animate CC :: Scroll Certain Number Of Pixel Up / Down Based On Button Click?

Jul 21, 2013

I believe ScrollTop jquery works for scrolling certain number of pixels but how to use it in edge?

View 1 Replies View Related

Edge Animate CC :: Text Colour To Animate With The Lines Of Code?

Nov 22, 2013

Is it possible to get the text color to FadeIn or the opacity of the text color to animate with the lines of code below? I simply want the color to fade in when the mouse rolls over the text.

Symbol.bindElementAction(compId, symbolName, "${_writing_btn}", "mouseover", function(sym, e) sym.$("writing_btn").css("color","#88ACBE");
});
[Code].....

View 1 Replies View Related

Edge Animate CC :: Insert Text Field Into Animate?

Dec 17, 2013

So I created my own subscription form, I have it appear and disapear when you are on the button. And when you click on it, it stays. But how can a put in an action to add text to it?

View 5 Replies View Related

AutoCAD Inventor :: Part Number Automatically Be Entered With ILogic?

Sep 21, 2011

I would like to have the part number automatically be entered with ilogic.

Normally I know how to do this but this time I'm trying to have a couple constant letters with numbers to be filled in.

Example 

MGR72

MGR is constant and the 72 will change with the width

What I thought would work but doesn't is   

iProperties.Value('Project", "Part Number")="MGR" Width

View 2 Replies View Related

AutoCAD 2013 :: Serial Number Entered Is Not Valid - Error 2

Nov 8, 2012

I keep getting the following message when activating:

The serial number you entered is not valid. Try again. (Error 2)

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Get Separate Block To Load If Third Number Entered When Prompted

Aug 23, 2011

I am wanting to get a separate block to load if a third number is entered when prompted. If enter is hit or only 2 of the numbers are entered, load the other block. I couldn't even get it to do right by even equaling a specific number.

View 8 Replies View Related

Edge Animate CC :: How To Adjust The Position Of Text In Order For Animation Text To Be Visible

Mar 3, 2013

I have created my Animation:

The stage size you see above is H: 400px, W: 550px.
 
I would like for the stage to be smaller, say H:50px./W:400px
 
Ok so if I change the size of the stage the animation text will not show, so I need to adjust the position of the text in order for the animation text to be visible, but in doing that, I am disrupting the timeline and the animation goes all funny, is there another way of doing this without disrputing the timeline?

View 1 Replies View Related

Photoshop :: Type Display Is Smaller Than Actual Type Input

Dec 17, 2012

The font size shown should be double the actual display 36pt, but it's showing as 18pt. Do you know why it's happening?

View 9 Replies View Related

AutoCAD Inventor :: ILogic Changes Custom IProperties Type From Number To Text

Nov 2, 2011

I am using ilogic in Inventor 2011 to update my iproperties when I save a .dwg file. I am having problems with some custom iProperties I have created that are of the type 'number' and are initially set to 0 (zero). After the iLogic rule has run and the user has entered a numeric value the type of the custom iproperty has changed to 'text'.

The ilogic code I am using is:

 If iProperties.Value("Custom", "Nominal ID") = 0 Then 
    iProperties.Value("Custom", "Nominal ID") = InputBox("Enter The Nominal ID (Enter 0 if no value is available)", "Nominal ID", 0)
    Custom_iProp_Nom_ID = iProperties.Value("Custom", "Nominal ID")
 End If

I am using Vault 2011 and would like to map this property to a numeric property so I can perform <= and >= searches.

View 2 Replies View Related

Edge Animate CC :: Can Put Different Color In One Text Box

Jun 17, 2013

I am facing one problem to adding color in one text box.
 
For Ex i am writing a text in one text box - "Adobe edge is the best tool for creating html 5 animation".
 
 i need adobe edge red color and html 5 animation blue color and other text color will be black.
 
Is it possible for adding mutilple color in same text box.

View 6 Replies View Related

Edge Animate CC :: Get Text From Text Field?

Mar 17, 2014

What way can i read text from a text field on stage then put this value into a variable?
 
I can easily write text to a text field via:
 
sym.$("my_text_field").html("Some text..."); 
 
But I want to read this text into a vairable? For example:
 
var theText = my_text_field.text

View 1 Replies View Related

Edge Animate CC :: Text Within A Box Giving Action?

Mar 26, 2013

I'm using Animate to create a lesson/course and I would like to be able to click on a word in the text and have a new text box open with a definition/explanation of the word clicked.  Is there a way to do that in Animate?  I haven't been able to figure it out.

View 3 Replies View Related

Edge Animate CC :: Part Of Text Is Missing In FF And IE

Jun 14, 2013

This is the first time I have used Edge Animate..I have created a simple line of text that fades in from left to right. In chrome, the HTML file looks great. I FF and IE, the last part of the line of text is missing!

View 1 Replies View Related

Edge Animate CC :: Cannot Select Text In SVG File

Oct 17, 2013

I have an SVG file with text inside, if I open the file in the browser I can select the text, but when I import the file to Edge Animate and then exported as html I lose the ability to select the text with the web browser.

View 1 Replies View Related

Edge Animate CC :: Multiple Links Within Text?

Jan 16, 2014

I am working on my first Animate project.  The project has several screens with short paragraphs of text on each screen.  Within several of the paragraphs, I need to set up multiple links rather than linking the entire text box to one URL. 
 
If it can't be done, I can set up transparent boxes with the links to sit on top of the text - not the best way to do this but it seems to work.  In that case, is there an easy way to "stop" the link just before the user moves to a different place in the timeline?

View 3 Replies View Related

Edge Animate CC :: Dynamic Values For Text?

Sep 17, 2013

I just need to create a simple animation to be dropped into a MUSE creation and I think Edge Animate is the right way to do it.  For the life of me I cannot figure out how.
 
Basically, I want to create a simple animation to explain the dimensions of a product.  A line with arrows on both ends would grow to the length of a line drawing symbolizing its height for example.
 
Accompanying that would be a text box that I would like to simply count up from 0.0" to 3.5" for instance. how do I dynamically update the text from 0.0 to 3.5 across a 2 second animation in Edge Animate?

View 8 Replies View Related

Edge Animate CC :: How To Create Text Field

Dec 13, 2012

I can create symbols on the stage using "sym.createChildSymbol" command. But how can I cretare textFields with script?

View 2 Replies View Related

Edge Animate CC :: Visibility Of A Text Over Animation?

Oct 30, 2013

when I import a project .oam in InDesign, and over the project, into a higher level, there is text, the text is covered from the animation when it run in folio.

View 1 Replies View Related

Edge Animate CC :: Text As Inline Block?

May 19, 2013

I'm having a bit of a problem getting my text to behave the way I want. In Straight HTML (CSS) I can create a inline block div, place text in it and the text stays in the div, returns when it needs to at the end of the DIV, and expands the bottom/height of the div to fit text.
 
I can't figure out how a to get that same effect in animate. Can you do this with settings or do I need to code the Css into the div?

View 2 Replies View Related

Edge Animate CC :: Can Make Text Non Interactive

Jul 31, 2013

Is it possible for text or an object to overlay another object that is interactive but not inturupt the interactivity of the object below? As if the the text interactivity was trasparent.

View 2 Replies View Related

Edge Animate CC :: Adding To Link Text

Aug 28, 2013

I published my Animate composition and inserted it into DW. Animate added "edgeanimate_assets/menu" to all of my button links so they don't work. How can I prevent that from happening?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved