Flash - Displaying Quadratic Equation With Format Like (4x2)
Jul 17, 2010I want to display a Quadratic equation with format like (4x2). I want to display 2 as superscript automatically after typing x in the textbox.
View 1 RepliesI want to display a Quadratic equation with format like (4x2). I want to display 2 as superscript automatically after typing x in the textbox.
View 1 RepliesI am very new to action script, and using action script 2.0, I am having a problem getting an input textbox to read in mathematical formulas. To enter 5x^2, the key sequence to be used is {5}{x}{2}. i.e., the characters must be formatted as it is being typed.
Ultimately, I want to enter equations like 5x^2-4x-2.
The textbox should not allow non-numerical characters other than x.
I have one input textbox.To enter 5x^2 ,key sequence used are "5" "x" "2" ie.,the characters must be formatted as it is being typed.I want to enter equations like "5x^2-4x-2".It should not allow other characters other than "x", using action script 2.0 .
View 4 RepliesPossible to program to gaph quadratic or exponential equations uisng flash.
View 1 RepliesThere's an variable in my swf I want to receive XML. It's an integer value in the form of an equation. How do I receive the XML value for 'formatcount'?
[Code]...
I would like to know if theirs a way where you can type in a text field something like "5*5".
And then on enter, the document would take the database and be able to return 25.
I am quite confused due to the fact that content that you input into a textfield must be a String and when you use the Number() converter the system gets confused.
I'm reading text from a text file and displaying it into a text field. The problem is when i read it doesn't display the text as it is in a text file. For ex - See below imageNow , as you can see, second line in the text file starts right where first line ends.But flash doesn't display it like that. I have hundreds of lines and in most cases flash spaces consumes less space then a text file. The font in both text field in Flash and notpad is to Arial so the font shouldn't be a problem.
View 8 Replieshow to publish live video feed from webcam in h.264 format non VP6 format with FMS 3.5.2 without using Flash Media Live Encoder, and how to set all parametersto have a good quality and smooth video without interruption, i have a server with 50Mbit bandwidth output enough for a publisher and 10 clients meunderstand this thing's been months since I try but the quality ugly
View 1 RepliesHas anybody gone through a chemical equation balancer using AS2
View 2 Repliesjust download my project and look at the missile code. I need to find out the equation make it so that the fire that is attached in the mc moves as if it didn't inherit the missile's coordinates(i.e make it so the fire moves like it was outside the missile's mc, and doesn't move with it) I know it has something to do with the circular rotation code found in the tutorials but i just need someone to write out the code.
View 1 RepliesIs there an easy way or some kind of function that can turn a string into an equation? Say I have:
var string = "4 + 5";
is there something that can get it so it will be counted as 9?
if anyone has any info on animating a point around a "sphere" with actionscript. If anyone has an actionscript equation defining this motion
View 4 RepliesI have 3 balls and i want them to turn around a center point.The physics is right but I'm finding confusing how to apply the equation to any object of my array.
Here it goes the code:
Code:
var movies = ["ball_mc", "ball2_mc", "ball3_mc"];
var angle:Number = 0;
var centerX:Number = center_mc._x;
[code]....
do you know of a WYSIWYG equation editor, like DragMath, implemented in javascript/mathml or Flash? I could embed DragMath as well, but I was wondering if there's a way to have a good WYSIWYG formula editor without requiring the users to run a Java applet.
View 2 RepliesIm trying to make a simple addition, like 2 plus 2 and send it to my dynamic box. I show u guys how im doing.
[Code]....
The project I'm working on requires a text field that the user can input an equation and the result is passed on to a variable. The problem is whenever you put in an equation it always comes out zero. If you just put in a number it passes it on properly. Below is a simplified example of what I'm trying to do.[code]...
View 9 RepliesIs there any actionscript that can draw a line after formal y = a*x+b;
Where a and b is given in an input textfield.
I have 3 balls and I want them to turn around a center point. The physics is right but I'm finding confusing how to apply the equation to any object of my array.
Here it goes the code:
var movies = ["ball_mc", "ball2_mc", "ball3_mc"];
var angle:Number = 0;
var centerX:Number = center_mc._x;
var centerY:Number = center_mc._y;
var radius:Number = 100;
[Code] .....
Im trying to do a simple addition, like 2 plus 2, adn then send it to my dynamic textbox.
Im sending the value to the box wrong.
[code]
somar (40);
function somar(numero1:Number){
soma = soma + numero1;
trace(soma);
btn_somar.value = soma;
}
I want to make a textinput where a person can type in a price. I used "restrict" to only allow numbers and decimal. But the person can type in several decimals and create numbers like 11.1.1.1 or 11...11 or 1.11111
i want to restrict the entry to only one use of a decimal and only two numbers after the decimal.
any other way to format a textinput to a currency format?
I want to format a number in indian format.
for example,
x= 123456 should be formatted as 1,23,456.
How can i do it in flex?
Is there any library in Action Script that be able to convert any video format to .FLV?
I've been looking for it with no success. I thought that as3 had functions for that purposes but not found.
I want to give the possibility that in my site, users can upload any video, so I need to convert it to a standard and compress it to a fixed resolution.
I have a simple silly question that I've seen posted here a million times but now I can't seem to come across. Whats a good equation to keep aspect ratios on resize?
View 4 RepliesI was wondering if there was a way to convert a string containing math symbols such as +,-,*,/ and numbers. I am building a calculator.I have a string variable that I keep appending the value of the button.In the end the string looks something like this 8+3+3-4*9.I was wondering if there was a way to solve the equation just using the information in the string. I tried setting a Number to the string and I would get NaN. The hard part about this is trying to count for the math oop i.e Multiplying before adding.
View 1 RepliesIn the scene there is a star and an AI player.what equation would take the AI player on the most direct route to the star...i.e guide it into the path of the star...just to make things clear, the star is static and the ai plaer is controlled by the computer. i think you have to make two variables distx and disty and use some sort of trigonometry on them but i'm not entirely sure on how to go along doing this.
View 9 Replieshow would you go about creating a random equation? i would like to randomly generate two individual numbers, a random operator (out of +, -, *, /) between these numbers and then the user would input a number to answer the equation... any thoughts on this?
View 4 RepliesI wrote it through the equation (n, k) = n!/(k!(n-k)!).But I found it will loose precision quickly after 12th row.So I change the way. I tried to use the properties of triangle(each row is the sum of previous row)Than I get slow in running when function reach higher degree.
I just keep changing a little and a little... try to make it run faster.
Quote:Function binCoef(70) :
1,70,2415,54740,916895,12103014,131115985,11987747 [code]..
I am trying to create a script, where the user inputs a maths equation (something simple like 5 + 2 * 10), I have managed to break down the text into an array and have the numbers in one array and the symbols in another, I wanted the computer to then work it out, however I cant seem to think of how to do this and the methods that I have tried have failed.there is one dynamic box and the value of that is then broken down by an array split(" "), however this leaves the values in an array and it is percieved as a string not a number and so when i try to work it outit just displays 5 * 10, how would i get it to work that out?
View 1 RepliesI have series of data which is stored in Array
eg :
Code: dateArray:Array = [["user1","1-5-2007"],["user1","13-5-2007"],["user10","21-5-2007"]];
then I loop the array to search the data I want to return to another function...my problem is how to format the date value in array to become this format before I can make a comparison with this value....
5/21/2007--> this value got from this current date
so the problem is how to convert the value in array from this format
21-5-2007 to this 5/21/2007 for all the values....the data I load from dtbase actually that's why it store that kind of format....
"mc.graphics.moveTo"and...mc.graphics.curveTo....to draw out some dynamic lines.What I need is some sort of equation that sets the "controlX" and "controlY"depending on how long the line is and in what position it is.The below is a pile of pap and doesnt actually work... but thats me trying to figure out some set equation for it...
Code:
lineForItem.graphics.moveTo(childDisplay.x, childDisplay.y);
var newB:int = familyData.mumsY - childDisplay.y / 2
[code].....