Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
ufitzi #1
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
-
Bugs?
I had installed the Flash Communication Server, developer edition, with Flash Mx2004 Then I build a simpleconnect and Avpresence, but it is not... -
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,... -
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... -
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... -
Dreamweaver MX - BUGS BUGS BUGS *** HELP ***
DREAMWEAVER EXPERT !!! _________________ HELP ____________________ ON BEHALF OF MY FRIENDS AND TEAM AROUND THE GLOBE... IF WE HAVE AN UPDATE... -
SubGum #2
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



Reply With Quote

