Flash :: Get Equation From XML?
Mar 23, 2010There'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]...
There'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 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 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 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 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]....
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 RepliesThe 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 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 Replies"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].....
School Project with the following actionscript in Flash 8, I want to show a slope graph? What code to add to make slope graph work?
/*var orig_x:Number;
var orig_y:Number;
orig_x = (plane_mc._x)+(plane_mc._width/2);
[code].....
I'm working through Dreamweaver fairly well, and I'm now wanted to import Flash buttons I've created myself into Dreamweaver for a website I'm currently building, and it's here that I'm finding the problem. I have been to the 'get URL Function', but it says something about needing to link to a web page? But my problem is how can I link Flash Buttons to a web page, when my site is still being developed and not published? Do I have to publish first?
View 3 Replies:confused:Does anybody know is Flash mx 2004 compatible with flash CS3 and flash 8?? I can not open flash cs3 on my laptop with flash mx2004 also can actionscript 3.0 be used with flash mx2004 and flash 8 because when I save my flash cs3 document as a flash 8 document it does not work? I am awful confused with all this. If you created a flash website in flash 8 or Flash mx2004 you can not open in in flash cs3 it dosent make sence?
View 3 RepliesAre there any programs or features in flash that can simplify flash vector art?
I just realized that one of the reasons why my program might be running so slow is that I made the images out of lots and lots of circles. When things didn't look right I often just put larger circles over smaller ones. I didn't think that flash might still be drawing the invisible circles underneath-
When I call a .php file from flash and then echo a value back to flash from said .php file flash does not read it. My code is like this:
[Code]....
Note that there is a successful connection to a database using xampp as a server.
We've got a green screened video playing in a flash movie over top of our html content.when the movie ends, flash uses external interface .api to call a javascript function which swaps the flash movie out with a 5 x 5 pixel flash movie (rewrites the <div>).this works and you can interact with the html content after the flash movie in all browsers except firefox.anyone know of any work-arounds or is there a better way of handling flash over html in this fashion?
View 1 RepliesI have absolutely no idea where to post about this, please move if necessary.So, I've just installed flash player 10 and now my flash tracer plugin (in firefox) won't work. do i have to switch back to flash player 9 or is there a solution to this?
i have the correct path in Flash Tracer's settings (C:Documents and SettingsAdministratorApplication DataMacromediaFlash PlayerLogsflashlog.txt) as well as the mm.cfg file in C:Documents and SettingsAdministrator.