Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default AS 2.0 ?bugs?

    I'm not sure I want to classify this as a bug or not, maybe just an oversite by
    the 2004 developers.

    Within a class definition, we have properties and methods.
    These can be declared as public, and as private.

    Issue 1
    I am able to access private variables of a class (say X) in the following
    manner:

    var classX = new X();
    ...

    _root.classX.private1 = true;
    trace(_root.classX.private1);

    *****Anyone who has even the slightest idea behind OOP knows this is not
    acceptable******


    Issue 2This goes aliong w/ issue1.
    From within the class definition, we can define public and private methods.
    In the code for these methods, we SHOULD have access to any variables(public
    or private) that belong to the defined class.
    So, when I attempt to do this...

    public function setX(num:Number):Void
    {
    privatex = num;
    }

    .....x should take the value of num.
    This is not always the case. I have had trouble accessing class attributes.
    Not all the time, mind you, but enough to make me take this time to present
    the issue.

    In any case, these problems need to be addressed....
    Thanks for listening to me complain.


    ufitzi Guest

  2. Similar Questions and Discussions

    1. Bugs?
      I had installed the Flash Communication Server, developer edition, with Flash Mx2004 Then I build a simpleconnect and Avpresence, but it is not...
    2. Bugs
      I was doing a book, and pasted some graphics from illustrator. Flipped through some pages, and when i get back to the page with the pasted graphics,...
    3. Bugs, I think.
      1. After "Filter -> Overprint Black..." with selected objects not all of black objects have "overprint" in Illustrator CS (Win). 2. I working with...
    4. bugs.php.net
      Can anyone tell me where I can download the bug tracking system used for bugs.php.net? I don't see any links on the PHP site (or i'm probably...
    5. Dreamweaver MX - BUGS BUGS BUGS *** HELP ***
      DREAMWEAVER EXPERT !!! _________________ HELP ____________________ ON BEHALF OF MY FRIENDS AND TEAM AROUND THE GLOBE... IF WE HAVE AN UPDATE...
  3. #2

    Default Re: AS 2.0 ?bugs?

    I have the same problem I believe with this:

    onClipEvent(enterFrame){
    this._x=_root.aimer._x/2+350
    this._y=_root.aimer._y/5+300
    dx= 80-this._x;
    dy= 80-this._y;
    if (dx<0){
    nom=-1*dx
    } else {
    nom=dx
    }
    if (dy<0){
    nom + (-1*dy)
    } else {
    nom+dy
    }
    dir=90*(dy/nom)+45
    this._rotation=dir;
    }

    I have no clue how to fix it though, I'm trying to get a turret to follow the
    mouse for a school project.

    SubGum Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139