Search:
Type: Posts; User: ericlin
Search:
Search took 0.26 seconds.
-
For my browser, the preloader seems to work well. It did show percentage progressively till 100% before I see the yellow picture.
-
Can you show the swf ? So that I can see the transition.
-
If you dont insist on Math, and _parent is the _root, then use localToGlobal make the script very simple.
this.onEnterFrame = function() {
_parent._yscale = 10000/(this._yscale);...
-
Basically that approach should be correct.
I just fix some positve/negative things.
-
Becareful, the target center is not (0,0) but where _root.crosshair is; So,
changeX = offsetX*((changeScale+originalScale)/100)*-1-originalX+_root.crosshair._x;
changeY =...
-
What data[2] and data[5] store are just reference of arrays.
So, in this case, swap the reference should be enough. Create a new copy is not necessary.
var temp=data[2];
data[2]=data[5];...
-
:)
I guess you believe the x, y, z axis represents the direction passing through the center of sideFace, topFace and frontFace. You believe those axis should change following cube rotation.
In...
-
OK, for some reason the function make2DPoint, set the scaleRatio universarily 0.5 , I set the point.scaleRatio=scaleRatio; Then the 3d transform effect appear. Need correct the swapDepths.
Well, I...
-
I checked the fla you post. Seems nothing wrong.
The z rotation is control by 'control' key and 'shift' key.
I do see the cube rotates around the z axis.
There is no line between the balls, It...
-
-
Thank you.
So, the standard way to "Get two directional vectors from the points on the plane.", is to pick B then C point in counter-clockwise order.
If we just pick B and C randomly, the...
-
First, you should forget about MC2.
Just try to create animated drawing about a line. After you finish your work, move the MC2 to the point you draw.
The difficult part is: sometime, you need...
-
:) That is great and very helpful.
What I did to get the axis perpendicular to two vectors is through solving two equations.
a1*x+b1*y+c1*z=0;
a2*x+b2*y+c2*z=0;
I assume z=1 and get y =...
-
initialize an event dispatcher.
add your mc's as listeners.
watch that variable for change.
if changed, dispatch event.
-
:)
At least I proved that, by simple concepts of sin, cos and Pythagon theory, I can go very far.
I know vector represent a thing about one point pointing to another point, and they can be added...
-
My opinion: Study the one you understand.
The second one has other features that you might not need.
-
http://www.flashkit.com/movies/3D/Engines/Real-Tim-Ryan_Whe-1937/index.php
http://www.flashkit.com/movies/3D/Engines/3D-cube-Anton_A-2088/index.php
-
These files are old. They can be improved. Anyway, you can see them to get some idea
http://ericlin2.tripod.com/pie/pieAn3dNewPri.html
http://ericlin2.tripod.com/pie/pieAn3dNewPrit.html
-
alpha3=alpha2+someFixAngleValue;
-
_root.onEnterFrame = function() {
//JOIN POINT B WITH POINT A
d = 100;
alpha2 = Math.atan2(_root.pt_B._y-_root.pt_A._y, _root.pt_B._x-_root.pt_A._x);
_root.pt_B._x =...
-
Be careful, you get to "use" or "mention" those classes somewhere in the fla so that class codes get compiled into SWF.
-
-
class HomePlayer extends GamePlayer {
public function HomePlayer() {
}
private function init():Void {
trace("super init !");
}
}
-
32768 is 2^15; So, I guess Flash manipulate the _rotation by a memory of 16 bits storage. Maybe it is something like overflow error.
-
When you declare a variable as "var flag", that flag is a "local" variable or what we say "temporary" variable. It only exists in this function. It is different from the "flag" outside of this...
|
Click Here to Expand Forum to Full Width
|