A Flash Developer Resource Site

Search:

Type: Posts; User: ericlin

Page 1 of 20 1 2 3 4

Search: Search took 1.78 seconds.

  1. Replies
    9
    Views
    715

    For my browser, the preloader seems to work well....

    For my browser, the preloader seems to work well. It did show percentage progressively till 100% before I see the yellow picture.
  2. Can you show the swf ? So that I can see the...

    Can you show the swf ? So that I can see the transition.
  3. Thread: Trigonometry

    by ericlin
    Replies
    6
    Views
    2,242

    If you dont insist on Math, and _parent is the...

    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);...
  4. Thread: Trigonometry

    by ericlin
    Replies
    6
    Views
    2,242

    Basically that approach should be correct. I...

    Basically that approach should be correct.
    I just fix some positve/negative things.
  5. Replies
    5
    Views
    1,407

    Becareful, the target center is not (0,0) but...

    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 =...
  6. Replies
    4
    Views
    784

    What data[2] and data[5] store are just reference...

    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];...
  7. Replies
    7
    Views
    713

    :) I guess you believe the x, y, z axis...

    :)
    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...
  8. Replies
    7
    Views
    713

    OK, for some reason the function make2DPoint, set...

    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...
  9. Replies
    7
    Views
    713

    I checked the fla you post. Seems nothing wrong....

    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...
  10. Replies
    7
    Views
    713

    fla here ?

    fla here ?
  11. Replies
    22
    Views
    6,104

    Thank you. So, the standard way to "Get two...

    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...
  12. Thread: drawing api ?

    by ericlin
    Replies
    5
    Views
    488

    First, you should forget about MC2. Just try...

    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...
  13. Replies
    22
    Views
    6,104

    :) That is great and very helpful. What I did...

    :) 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 =...
  14. Replies
    1
    Views
    585

    initialize an event dispatcher. add your mc's as...

    initialize an event dispatcher.
    add your mc's as listeners.
    watch that variable for change.
    if changed, dispatch event.
  15. Replies
    22
    Views
    6,104

    :) At least I proved that, by simple concepts of...

    :)
    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...
  16. My opinion: Study the one you understand. The...

    My opinion: Study the one you understand.

    The second one has other features that you might not need.
  17. http://www.flashkit.com/movies/3D/Engines/Real-Tim...

    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
  18. Replies
    3
    Views
    497

    These files are old. They can be improved....

    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
  19. Replies
    3
    Views
    1,334

    alpha3=alpha2+someFixAngleValue;

    alpha3=alpha2+someFixAngleValue;
  20. Replies
    3
    Views
    1,334

    _root.onEnterFrame = function() { //JOIN POINT...

    _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 =...
  21. Replies
    4
    Views
    806

    Be careful, you get to "use" or "mention" those...

    Be careful, you get to "use" or "mention" those classes somewhere in the fla so that class codes get compiled into SWF.
  22. Replies
    2
    Views
    1,120

    Math.random() ?

    Math.random() ?
  23. Replies
    4
    Views
    809

    class HomePlayer extends GamePlayer { public...

    class HomePlayer extends GamePlayer {
    public function HomePlayer() {
    }
    private function init():Void {
    trace("super init !");
    }
    }
  24. Replies
    5
    Views
    707

    32768 is 2^15; So, I guess Flash manipulate the...

    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.
  25. Replies
    4
    Views
    453

    When you declare a variable as "var flag", that...

    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...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center