Solve mathematical equations in Action Script 2.0

Hello surfers.

We have a problem in Action Script 2.0 to solve the math equation given below:

write a code in Action Script 2.0 to solve these two equations.

Objective: Know the value of 'a' in the two different equations.

1. 2A + 5 = 3 a + 1

2. 4A + 3 = 11

Thanks in advance.

Thanks to give me as soon as POSSIBLE, I struggle here.

:

function solveLinearEquationF (b1:Number, m2:Number, m1:Number, b2:Number) {}

{if(M1!=M2)}

return (b2 - b1) /(m1-m2);

} else {}

if(B1 == B2) {}

return "all the number."

} else {}

don't return "no number";

}

}

}

Tags: Adobe Animate

Similar Questions

  • Just me, or is the 50g low in solving differential equations?

    Hi all

    I used Ti-89 s widely in the past, as well as the Ti-NSpire CX CASE and now the 50 g for about 1.5 years. I love some aspects of the 50g (sensation of keys, ease of unit, RPN conversion), but I can't help but notice some areas where it reallllly hangs out of the competition.

    It is an example that I really noticed recently in solving differential equations. So far, several examples I've tried (all immediately resolved by my Ti - 89 and Nspire CX CASE), the 50g smothered on each.

    A very simple example: solve y "= - 9.8, with boundary conditions y (0) = 2.9 and y'(0) = 3.8.  This can be solved by hand in about one minute, but the 50g can't do. If I input ['d1d1Y (X) =-9.8' ' Y (0) = 2.9 ' ' d1Y (0) = 3.8 '] in level 2 on the stack, then 'Y' on a level and then run desolve, it returns "Error: Undefined result.

    I missing something here, or is - this really unable to resolve such a differential equation based? I thought that advanced and 'better' mathematical capacity HP CASE was meant to be one of the reasons why it takes precedence over offers from Ti, but I must say, so far I do not see that.

    Josh

    Hello!

    Try with the exact numbers:

    ["d1d1Y (X) =-49/5 ' ' Y (0) = 29/10 ' ' d1Y (0) = 19/5 '"]

    « Y »

    DESOLVE

    (after SIMPLIFICATION) You'll get years:

    {Y (X) =-(49*X^2-38*X-29)/10}

  • Action Script 3 Drag & Drop

    Hello

    I've been following a Lynda tutorial to generate a simple drag and drop game in Flash CS5, using ActionScript 3 and met with what I'm sure that someone will be a simple problem to solve. I got to the stadium where I have video clips 10 and 10 on _target areas to drop these clips, they then snap into the right area.

    My problem is that I have a meter running in the background that counts the number of correct conversions; what I want is when all 10 points fell in the right zone (_target relative), a line of Action Script will be executed, now for this example, I would like to bring the Alpha of a textfield/clip on 0-1 scene, showing a message of victory.

    Here is my code so far, I use external classes for the process of what drag / move.

    The grid class:

    package
    {

    import flash.display. *;
    import flash.events. *;


    Grid/public class extends MovieClip
    {
    var dragdrops:Array;
    var numOfMatches:uint = 0;


    public void Grid()
    {
    the constructor code
    dragdrops = [moneya moneyb, moneyc, moneyd, moneye, moneyf, moneyg, moneyh, Anil, moneyj];
    var currentObject:DragDrop;
    for (var i: uint = 0; i < dragdrops.length; i ++)
    {
    currentObject = dragdrops [i];
    currentObject.target = getChildByName (currentObject.name + "_target");

    }
    }

    public void match (): void

    {
    numOfMatches ++;
    if(numOfMatches == dragdrops.) Length)
    {
    HERE, it IS WHERE I want TO PUT the ALPHA CODE
    }
    }

    }

    }

    Class DradDrop:

    package
    {
    import flash.display. *;
    import flash.events. *;

    SerializableAttribute public class DragDrop extends Sprite
    {

    var origX:Number;
    var origY:Number;
    var target: DisplayObject;

    public void DragDrop()
    {
    the constructor code
    origX = x;
    origY = y;
    addEventListener (MouseEvent.MOUSE_DOWN, drag);
    buttonMode = true;
    }

    function drag(evt:MouseEvent):void
    {
    stage.addEventListener (MouseEvent.MOUSE_UP, drop);
    startDrag();
    parent.addChild (this);
    }

    function drop(evt:MouseEvent):void
    {
    stage.removeEventListener (MouseEvent.MOUSE_UP, drop);

    stopDrag();

    If (hitTestObject (target))
    {
    Visible = false;
    Target.Alpha = 1;
    Object (parent) match ();
    }

    x = origX;
    y = origY;
    }

    }

    }

    Any help would be great.

    use:

    package
    {

    import flash.display. *;
    import flash.events. *;

    Grid/public class extends MovieClip
    {
    var dragdrops:Array;
    var numOfMatches:uint = 0;

    public void Grid()
    {
    the constructor code


    dragdrops = [moneya, moneyb, moneyc, moneyd, moneye, moneyf, moneyg moneyh, Anil, money j];
    var currentObject:DragDrop;
    for (var i: uint = 0; i< dragdrops.length;="">
    {
    currentObject = dragdrops [i];
    currentObject.target = getChildByName (currentObject.name + "_target");
       
    }
    }
     
    public void match (): void
     
    {
    numOfMatches ++;
    if(numOfMatches == dragdrops.) Length)
    {

    Use a dynamic textfield you can assign an instance name (for example, tf) and use:
    TF.alpha = 1;
    }
    }
     
    }

    }

    Class DradDrop:

    package
    {
    import flash.display. *;
    import flash.events. *;

    SerializableAttribute public class DragDrop extends Sprite
    {
     
    var origX:Number;
    var origY:Number;
    var target: DisplayObject;

    public void DragDrop()
    {
    the constructor code
    origX = x;
    origY = y;
    addEventListener (MouseEvent.MOUSE_DOWN, drag);
    buttonMode = true;
    }
     
    function drag(evt:MouseEvent):void
    {
    stage.addEventListener (MouseEvent.MOUSE_UP, drop);
    startDrag();
    parent.addChild (this);
    }
     
    function drop(evt:MouseEvent):void
    {
    stage.removeEventListener (MouseEvent.MOUSE_UP, drop);
      
    stopDrag();
      
    If (hitTestObject (target))
    {
    Visible = false;
    Target.Alpha = 1;
    Object (parent) match ();
    }
      
    x = origX;
    y = origY;
    }

    }

    }

  • I would like to quickly create many mathematical equations png files

    Hi all

    I am creating about 4608 images jpg or gif, mathematical equations.

    I created a spreadsheet excel equations, like "24 + 24 = 48".

    I want to format the above equation as:

    "24 24 plus"

    "... 48 "

    with the two lines centered on a canvas of 660 x 440 with color #CC0000.

    I want to make the font Comic Sans MS size 96 and have each text centered in the canvas box. I would like the option to change the font of Arial, if you wish.

    I've been creating these images, one at a time :-(and it is very time consuming.

    Is there a way I can import the text file or spreadsheet that has equations on them and quickly save files named as the equation itself?

    I've attached an example of what I'm looking for.

    Thanks for your time.

    Diana M.

    [email protected]

    This would require script within Fireworks.

    If you are familiar with Javascript, it should not be terribly difficult.

    The steps that I would recommend would be:

    1. Configure the data so that "2 + 2 =" is in a column of the spreadsheet and "...". 5 "is in another
    2. Export your Excel document in a CSV file
    3. Convert this CSV file to a JSON object (handy converter here: http://www.cparker15.com/utilities/csv-to-json/)
    4. Write javascript to consume this JSON object and iterate over the child elements
    5. Use the FW API for each child element to create the new document, draw text, name/save/close the file object and repeat

    In the end, the execution of a loop of 4 608 element that creates and stores the files in a system could take up to a ridiculous amount of memory during execution.

    Have you thought about each of your students make a few hundred to do their homework?

    Good luck!

    Doug

  • How to create the object rectangular box with a pure action script.

    How to create the object rectangular box with a pure action script?

    I think, it can be done through the clip library, but I'm not sure. Please, I want to take the suggestion to create a rectangular box as a script through

    Take a new file and write about the first image the code below, it works fine:

    var rect = new Shape();
    rect.graphics.beginFill (0xFF0000);
    rect.graphics.drawRect (0, 0, 100,50);
    rect.graphics.endFill ();

    var MC = new MovieClip();
    mc.addChild (rect);
    addChild (mc);

    If this doesn't solve your problem then paste the error you get

  • iOS 10 Spotlight can't solve mathematical problems

    Hi people,

    I have an iPhone with iOS 10.0.2 7 and an iPad with IOS 10.0.2 2 Air one unfortunately my Spotlight search cannot solve mathematical problems and it is not to convert currencies, other things on any of my devices. This feature allows to work very well with iOS9.

    Could you please tell me how can I solve the problem?

    same thing here!

  • I try to install an air 320u sierra wireless card and I get an error message "could not access vb run time for custom action script. Cannot install the Manager of mobile broadband services.

    could not access vb run time for custom action script

    I try to install an air 320u sierra wireless card and I get an error message "could not access vb run time for custom action script.  Cannot install the Manager of mobile broadband services.  Any ideas?

    Hello

    I suggest you run the fixit and see if it helps:

    http://support.Microsoft.com/mats/Program_Install_and_Uninstall

    Also check out this link:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_programs/error-2738-could-not-access-VBScript-run-time-for/1a4499ae-8bc1-4534-9c6f-4d399ac70d9a

    It will be useful.

  • Display of mathematical equations in App

    I'm a newbie here. Is there a way to display mathematical equations (including the integral sign, its fractions, root etc.) in Blackberry. What is the best way to do it?

    The other way you could do this is set up or find a TeX picture converter (these things exist) and then make your Blackberry download the images necessary to display mathematical symbols made.

  • After you create the action script for the creation of user Oracle DB - connector DBUM

    Hello

    After we have set up a user of IOM in the database on the target system, you must insert the same user in the RLS_USER_GROUPS table. (INSERT INTO CAMPDB. The VALUES of RLS_USER_GROUPS ('DV < user name >', RLS_DEV');  )

    The requirement is available to the user of multiple databases (different values of SID). But, the user to insert in a table to a database (DB1).

    If I write an after create a file of Action with action script, it will fire for all databases?  How to trigger this script only on the DB1 database?

    (2) in the literature, it is mentioned as below

    (Q) I installed the connector only in IOM (there is no connector server). Thus, in the 3rd and 5th stage, what should I mention

    Key code?

    Decode?

    Please suggest

    Thank you

    This query has worked well.

    INSERT INTO CAMPDB. RLS_USER_GROUPS (USERNAME, GROUPNAME) VALUES ({__NAME__}, "RLS_DEV")

  • I need help on the matrix of action script 3.0

    I need help on the matrix of action script 3.0

    [Ask in the correct forum allows... Left non-technical Forum Lounge for forum specific program... MOD]

    to apply a matrix for mc mat oppose:

    var mat: Matrix = new Matrix;

    mat.a = Whatever;

    mat.b =

    mat.c =

    mat.d =

    mast. TX =

    mat.Ty =

    MC. Transform.Matrix = Matt;

  • Action Script to add a node value parent for the top node

    I need to add a new value of the node parent to a hierarchy to the top node.  The script parameters to add a node is "Add | Version | Hierarchy | Node | Parent Node. Property sheet. "  I am at a loss on what to do for the top node because there is no node Parent above this level, but the settings ask him.  I have reviewed the manual and the manual of admin, but did not help.  Can someone help me?

    Thank you!

    You have the answer with you, do not be confused between the Parent node and the top node context, when adding a new node, the node of your Top will become your Parent node.

    ' Add | Version | Hierarchy | Node | Parent Node. Property of the worksheet.

    If you're still confused, just do the following.

    1. right click on the node of your top and add a new worksheet or node branch manually

    2. Once added, go back to the homepage-> Script

    3. Select the Type of Source in the paper transactions, and then select the newly added node and load

    4. in the lower part select Script-> download-> Download Action Script.

    5. open in a Notepad and use to create your new script.

  • How can I build mathematical equations in Illustrator?

    I have Ai 2015, and I want to use it to write mathematical equations which would include fractions (numerator/denominator) and square roots, clues and exhibitors.

    Is there a way to do this in artificial intelligence?  I was able to find appropriate under the glyphs symbols, but do not see how to move them for specialized functions, that I mentioned above.

    If it is not possible to do in artificial intelligence, I know that MathType is a good program for the construction of these types of equations.   But I was not able to understand how to import the equations in here.  Maybe someone out there knows?

    If you know how to do that using these or other methods, please let me know.  Thank you!

    Drag a rectangle around all the characters seelction and then transform it! You may need to activate the bounding box on the view menu.

  • Convert a HTML5 canvas 3.0 action script?

    Hello world

    I made an animation in HTML5 to realize now that I should have used action script 3.0. Is there a way to convert the document or move all my layers and images to a new document action script 3.0?

    Thank you.

    Copy / paste works, but also look at the menu of commands. Here, you can change other document formats.

  • Is it possible to group objects, which are placed in the project and then hide them with line a single action-script? THX in advance, Philip

    I work in CP 9 and I'm going to try the following: the user must be able to make ALL invisible or visible to highlight boxes by clicking on the corresponding button on the first page layout. Thus, for example, if the user does not want the highlight boxes appear, click on "Hide the boxes" and boxes are hidden for the rest of the project. I managed to get to this point for help... but it is still a lot of work for me to manually enter all the different names of these boxes in the action-script. So my question is: is it possible to group objects, which are placed in the project and then hide them with line a single action-script? THX in advance, Philip

    Actually... releasing the CpExtra HTML5 widget, it will be possible.

    It has a function called @syntax that allows you to perform an action (for example HIDE) automatically on any object throughout a project of Cp9 simply based on the name of the object.

    So for example, if you named all the boxes to highlight you want hidden this way to have the suffix _HideMe and you say CpExtra you want all of them hidden if a user variable is assigned to a certain value, then that is what will happen.

    That's the good news.  The bad news is that the widget is still in BETA final tests at the moment, so you may need to wait a bit before you can realize your idea.

  • the path to import actions (script)

    I received a few actions (scripts) extencion .atn to a join a friend the old version of Ps, there was a simple way to import them in Ps, but Ps cc version in 2014 no way. But in my opinion they must be a way with the finder to search for the folder where to put them.

    Y at - there someone who can help me with this problem.

    THX.

    Actions or Scripts?

    The files are clearly named "Actions" and "Scripts" in the English installation at least.

Maybe you are looking for