dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: glyd

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    2,211

    Indeed, it was a conflict between a variable name...

    Indeed, it was a conflict between a variable name and an instance name.
    Thanks!
  2. Replies
    5
    Views
    2,211

    it working with trace, but how can change dynamic...

    it working with trace, but how can change dynamic textfield value, d.text, with the value of the gpc?
  3. Replies
    5
    Views
    2,211

    How to display object value in a textbox?

    I make in the stage to input textfiled, with instance name x and y.
    After that a dynamic textfield to display the gpc(greatest common factor) of the a and b numbers.

    In a class, named gpc,I have...
  4. Thread: array - help

    by glyd
    Replies
    18
    Views
    3,583

    I change temp variable with the number in for...

    I change temp variable with the number in for statement, and now it's working for bigger prime factors also.
    I test more, hope for no more issues.
    Thanks.
  5. Thread: array - help

    by glyd
    Replies
    18
    Views
    3,583

    It is fine for 50. But I change dynamically...

    It is fine for 50.

    But I change dynamically the number.

    Lets explain:

    For 50 I need to get 50 = 2*2*5*5 = 2^2*5^2.
    For 24 for example, 24 = 2*2*2*3=2^3 *3.

    For 77, 77=7*11=7^1*11^1.
  6. Thread: array - help

    by glyd
    Replies
    18
    Views
    3,583

    Sorry, but I dont understand. With that script...

    Sorry, but I dont understand. With that script how can I get 50=2^1*5^2?
    I now learn the actionscript, I'm a beginner.


    with the updated script I get for 50:

    2, 5
    1, 2
    meaning prime factor...
  7. Thread: array - help

    by glyd
    Replies
    18
    Views
    3,583

    My updated class script: package { ...

    My updated class script:

    package
    {

    public class Decompose
    {
    public var number;
    public var fact:Array = new Array();
    public var exp:Array = new Array();
  8. Thread: array - help

    by glyd
    Replies
    18
    Views
    3,583

    an other issue

    I find an other issue.
    The script does not work if the prime factor is bigger then 103.

    It's too big for an array element?
  9. Thread: array - help

    by glyd
    Replies
    18
    Views
    3,583

    Thanks! I change the = sign with == and is work...

    Thanks!
    I change the = sign with == and is work perfectly.
  10. Thread: array - help

    by glyd
    Replies
    18
    Views
    3,583

    explain

    Thanks for reply.
    I try to change temp with the a number, the rezult it still blank output.
    I belive is a problem with the array, it not placing the elements.

    What I want to do is:
    Lets take de...
  11. Thread: array - help

    by glyd
    Replies
    18
    Views
    3,583

    array - help

    Hi!

    I make a class to decomposes a number in prime factors.

    package
    {

    public class Decomposes
    {
    // the number
Results 1 to 11 of 11




Click Here to Expand Forum to Full Width

HTML5 Development Center