dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: Dickee

Page 1 of 19 1 2 3 4

Search: Search took 0.35 seconds.

  1. Replies
    8
    Views
    1,514

    My apologies ... I must have entered o's instead...

    My apologies ... I must have entered o's instead of 0's. Indeed, Flash is still allowing loose typecasting in AS2 and your app's calculations induce the implicit casting (... trace(typeof(l2x1)); ......
  2. Replies
    8
    Views
    1,514

    Hey Eager Beaver and thomas41546! 1. Your...

    Hey Eager Beaver and thomas41546!



    1. Your fla implicitly casts the line coordinate variables as 'String' and returns 'NaN' for the intersection coordinates. Further manipulation is required...
  3. Replies
    8
    Views
    2,316

    Hey Brian! If that code snippet is pasted...

    Hey Brian!


    If that code snippet is pasted from your code, you are missing the * operator for var_a, thus returning a flat line.

    The equation you are using is just a factored version of the...
  4. Replies
    8
    Views
    2,316

    Sorry ... I had updated to v1.3 without changing...

    Sorry ... I had updated to v1.3 without changing the link. All links are fixed now, but if you have a cache problem use ../index1.4.html. I don't have any time right now to explore further, but I...
  5. Replies
    8
    Views
    2,316

    Hey flashpipe1! OK ... here's an attempt to...

    Hey flashpipe1!

    OK ... here's an attempt to assist you :)

    I compared your code in gridParabola and parabolaX with the Flashkit example graphplotter_10, where a quadratic equation is populated...
  6. Replies
    4
    Views
    1,601

    I forgot to answer your question! No, still no...

    I forgot to answer your question! No, still no hyperbolic functions for the Math object in Flash 8 :)
  7. Replies
    4
    Views
    1,601

    Hey Tormenter! Checkout my AS2 class:...

    Hey Tormenter!

    Checkout my AS2 class: http://members.shaw.ca/flashprogramming/wisASLibrary/wis/math/geom/trig/Hyperbolic.as

    My library houses a Hyperbolic test app in the 'view' column of the...
  8. Replies
    8
    Views
    1,996

    Admin: I suggest you extend edit time a bit...

    Admin: I suggest you extend edit time a bit please.

    DeMarHc:

    I'll walk you through the 4 step 'i' cycle ... open the calculator:

    Press C to clear memory ...
    The left field is the real part...
  9. Replies
    8
    Views
    1,996

    Ooops! I meant to include source links for the 3...

    Ooops! I meant to include source links for the 3 examples above, but forgot to edit before posting.

    Complex Number Calculator: Source
    Cubic Polynomial Equation - Cardan: Source
    Quartic...
  10. Replies
    8
    Views
    1,996

    Hey DeMarHc! I have some information on your...

    Hey DeMarHc!

    I have some information on your query ... checkout my dated-but-still-relevant AS2 Library for the class com.wis math.alg.Complex.as to explore a multitude of complex number methods....
  11. Replies
    8
    Views
    7,529

    Hey OpethRockr55! Your post creates the...

    Hey OpethRockr55!

    Your post creates the opportunity to explore the functionality of an angle mapping algorithm, and may help Aditya with his quest!

    Although your ragdoll app performs as...
  12. Replies
    8
    Views
    7,529

    Hey Aditya! Checkout my AS2Library...

    Hey Aditya!

    Checkout my AS2Library to explore examples of your quest:

    com.wis.math.geom.util.Graphic ... mainly 2D

    Angle computation:

    1. distance(p1,p2)
    2. angle(p1,p2)
  13. Replies
    4
    Views
    2,218

    Hmmm ... it sounds like you're confusing the...

    Hmmm ... it sounds like you're confusing the 8Ball 'flash.geom' object with my 'com.wis.math.geom' package ... my library's language is FMX2004 AS2. After downloading and placing the 'com.wis'...
  14. Replies
    4
    Views
    2,218

    Hey UnknownGuy ... you asked for it! :) I...

    Hey UnknownGuy ... you asked for it! :)

    I present this to you with the intent for you to simplify the algorithm to suit your needs:

    I ported Andres Duran's original F5 quadratic bezier app to...
  15. Replies
    4
    Views
    731

    Hey blablabla05! Here's a solution for you ......

    Hey blablabla05!

    Here's a solution for you ... you may have to add an extra step to check for input format ... if the first character in the array element is a '0', the number will be treated as...
  16. Replies
    2
    Views
    1,106

    Hey zlatan! Math.sin(rad) takes radians as a...

    Hey zlatan!

    Math.sin(rad) takes radians as a parameter, so you first need to convert degrees to radians, multiplying by Math.PI/180:

    trace (Math.sin(62)); // -0.739180696649223
    trace...
  17. Replies
    5
    Views
    1,034

    The Bitwise class object is only available for...

    The Bitwise class object is only available for AS2, but the built-in Number and String methods support AS1:

    binToDec: parseInt(bin_str,2);
    decToBin: dec_num.toString(2);

    The 'binPad' method...
  18. Replies
    5
    Views
    1,034

    Although the valid math provided by Beatcow above...

    Although the valid math provided by Beatcow above can provide the basis for working out a new algorithm, Flash already provides methods for what you seek:

    binToDec: parseInt(bin_str,2);
    decToBin:...
  19. Replies
    2
    Views
    842

    Hey halflifedarknes! Math.cos takes radians...

    Hey halflifedarknes!

    Math.cos takes radians for an argument .. you are using degrees:

    90 = Math.PI/2

    trace(Math.cos(Math.PI/2)*180/Math.PI);
    //3.50823878194633e-15 .. virtually 0 .. cause:...
  20. Replies
    3
    Views
    871

    Hey janiv! Well, this isn't pretty, but it...

    Hey janiv!


    Well, this isn't pretty, but it works .. I'll bet there's an algorithm or two out there that will handle this using logs or bitwise operations, but I was on a roll with String...
  21. Replies
    20
    Views
    1,957

    OK .. I think this will do it for now! :D This...

    OK .. I think this will do it for now! :D

    This try returns verbatum, except for the formatting escape characters (\n, \t, \", and \u002c), however, they display when the string requires them in...
  22. Replies
    20
    Views
    1,957

    Here's a try that is more in tune with the spirit...

    Here's a try that is more in tune with the spirit of the challenge .. escaped characters don't get traced, but everything else is in place:



    var mirror_arr:Array = [
    "var mirror_arr:Array...
  23. Replies
    20
    Views
    1,957

    Hmmm .. double-posted .. owel, I'll edit this...

    Hmmm .. double-posted .. owel, I'll edit this with another attempt that returns 1 line short as well. I can't twist my brain enough to see a recursive algorithm for it yet:



    var str:String =...
  24. Replies
    20
    Views
    1,957

    Ok .. no matter how hard I try, I can't seem to...

    Ok .. no matter how hard I try, I can't seem to "trace-my-steps":



    trace("trace(\"trace\");");
    trace("trace(\"trace(\\\"trace\\\");\");");...
  25. Replies
    4
    Views
    762

    These are edited excerpts from Brandon Williams'...

    These are edited excerpts from Brandon Williams' Matrices Tutorial .. I've included the class functions' commented code below and an attempt at portraying the matrix manipulation for both determinant...
Results 1 to 25 of 472
Page 1 of 19 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center