Treceți la conținutul principal

obiecte 3d action script listing code

// Action script...

// [onClipEvent of sprite 2 in frame 1]
onClipEvent (load)
{
    var xi = 100;
    var yi = 100;
    var r = 50;
    var x1 = 0;
    var x2 = 0;
    var y1 = 0;
    var y2 = 0;
    var g = 4;
    var ux = 0;
    var uy = 0;
    var z = 1;
    var i = 0;
    var k = 0;
    x1 = _root.cosx(1, ux, xi, this);
    y1 = _root.sinx(1, uy, yi, this);
    x2 = _root.cosx(1, ux, xi, this);
    y2 = _root.sinx(1, uy, yi, this);
    var grouthy = 180;
    var j = 40;
    var A;
}

// [onClipEvent of sprite 2 in frame 1]
onClipEvent (load)
{
    var xi = 100;
    var yi = 100;
    var r = 50;
    var x1 = 0;
    var x2 = 0;
    var y1 = 0;
    var y2 = 0;
    var g = 4;
    var ux = 0;
    var uy = 0;
    var z = 1;
    var i = 0;
    var k = 0;
    x1 = _root.cosx(1, ux, xi, this);
    y1 = _root.sinx(1, uy, yi, this);
    x2 = _root.cosx(1, ux, xi, this);
    y2 = _root.sinx(1, uy, yi, this);
    var grouthy = 18;
    var j = 40;
    var A;
}

// [onClipEvent of sprite 2 in frame 1]
onClipEvent (load)
{
    var xi = 100;
    var yi = 100;
    var r = 50;
    var x1 = 0;
    var x2 = 0;
    var y1 = 0;
    var y2 = 0;
    var g = 4;
    var ux = 0;
    var uy = 0;
    var z = 1;
    var i = 0;
    var k = 0;
    x1 = _root.cosx(1, ux, xi, this);
    y1 = _root.sinx(1, uy, yi, this);
    x2 = _root.cosx(1, ux, xi, this);
    y2 = _root.sinx(1, uy, yi, this);
    var grouthy = 1.800000;
    var j = 40;
    var A;
}

// [Action in Frame 1]
function vals(ii, o, ot)
{
    switch (ii)
    {
        case 1:
        {
            o.patrat1.cx1 = o.x1;
            o.patrat1.cy1 = o.y1;
            break;
        } 
        case 2:
        {
            o.patrat1.cx2 = o.x1;
            o.patrat1.cy2 = o.y1;
            break;
        } 
        case 3:
        {
            o.patrat1.cx3 = o.x1;
            o.patrat1.cy3 = o.y1;
            break;
        } 
        case 4:
        {
            o.patrat1.cx4 = o.x1;
            o.patrat1.cy4 = o.y1;
            break;
        } 
        case 5:
        {
            o.patrat2.cx5 = o.x1;
            o.patrat2.cy5 = o.y1;
            break;
        } 
        case 6:
        {
            o.patrat2.cx6 = o.x1;
            o.patrat2.cy6 = o.y1;
            break;
        } 
        case 7:
        {
            o.patrat2.cx7 = o.x1;
            o.patrat2.cy7 = o.y1;
            break;
        } 
        case 8:
        {
            o.patrat2.cx8 = o.x1;
            o.patrat2.cy8 = o.y1;
            valsS(ot, o);
            break;
        } 
        default:
        {
            break;
        } 
    } // End of switch
} // End of the function
function valsS(ot, o)
{
    ot.text = "";
    ot.text = ot.text + o.patrat1.cx1;
    ot.text = ot.text + "\t";
    ot.text = ot.text + o.patrat1.cy1;
    ot.text = ot.text + "\n";
    ot.text = ot.text + o.patrat1.cx2;
    ot.text = ot.text + "\t";
    ot.text = ot.text + o.patrat1.cy2;
    ot.text = ot.text + "\n";
    ot.text = ot.text + o.patrat1.cx3;
    ot.text = ot.text + "\t";
    ot.text = ot.text + o.patrat1.cy3;
    ot.text = ot.text + "\n";
    ot.text = ot.text + o.patrat1.cx4;
    ot.text = ot.text + "\t";
    ot.text = ot.text + o.patrat1.cy4;
    ot.text = ot.text + "\n";
    ot.text = ot.text + o.patrat2.cx5;
    ot.text = ot.text + "\t";
    ot.text = ot.text + o.patrat2.cy5;
    ot.text = ot.text + "\n";
    ot.text = ot.text + o.patrat2.cx6;
    ot.text = ot.text + "\t";
    ot.text = ot.text + o.patrat2.cy6;
    ot.text = ot.text + "\n";
    ot.text = ot.text + o.patrat2.cx7;
    ot.text = ot.text + "\t";
    ot.text = ot.text + o.patrat2.cy7;
    ot.text = ot.text + "\n";
    ot.text = ot.text + o.patrat2.cx8;
    ot.text = ot.text + "\t";
    ot.text = ot.text + o.patrat2.cy8;
    ot.text = ot.text + "\n";
} // End of the function
function drawCube(o)
{
    _root.moveTo(o.patrat1.cx1, o.patrat1.cy1);
    _root.line(o.patrat1.cx1, o.patrat1.cy1, o.patrat1.cx2, o.patrat1.cy2);
    _root.line(o.patrat1.cx2, o.patrat1.cy2, o.patrat1.cx3, o.patrat1.cy3);
    _root.line(o.patrat1.cx3, o.patrat1.cy3, o.patrat1.cx4, o.patrat1.cy4);
    _root.line(o.patrat1.cx4, o.patrat1.cy4, o.patrat1.cx1, o.patrat1.cy1);
    _root.line(o.patrat1.cx1, o.patrat1.cy1, o.patrat2.cx5, o.patrat2.cy5);
    _root.line(o.patrat2.cx5, o.patrat2.cy5, o.patrat2.cx6, o.patrat2.cy6);
    _root.line(o.patrat2.cx6, o.patrat2.cy6, o.patrat2.cx7, o.patrat2.cy7);
    _root.line(o.patrat2.cx7, o.patrat2.cy7, o.patrat2.cx8, o.patrat2.cy8);
    _root.line(o.patrat2.cx8, o.patrat2.cy8, o.patrat2.cx5, o.patrat2.cy5);
    _root.moveTo(o.patrat1.cx2, o.patrat1.cy2);
    _root.line(o.patrat1.cx2, o.patrat1.cy2, o.patrat2.cx6, o.patrat2.cy6);
    _root.moveTo(o.patrat1.cx3, o.patrat1.cy3);
    _root.line(o.patrat1.cx3, o.patrat1.cy3, o.patrat2.cx7, o.patrat2.cy7);
    _root.moveTo(o.patrat1.cx4, o.patrat1.cy4);
    _root.line(o.patrat1.cx4, o.patrat1.cy4, o.patrat2.cx8, o.patrat2.cy8);
    fillCube(o);
} // End of the function
function calc(o, ot, xyz)
{
    o.xi = _root._ymouse;
    o.yi = _root._xmouse;
    _root.lineStyle(1, 0, 10);
    var _l3 = 1;
    while (_l3 <= 361)
    {
        o.x1 = _root.cosx(xyz, _l3 + o.z, o.ux, o) + xyz + 250;
        o.y1 = _root.sinx(xyz, _l3 + o.z, o.uy, o) + xyz + 250;
        o.x2 = o.x1;
        o.y2 = o.y1;
        o.i++;
        _root.vals(o.i, o, ot);
        _l3 = _l3 + 360 / o.g;
    } // end while
    o.i--;
} // End of the function
function calc2(o, ot, xyz)
{
    o.xi = _root._ymouse - (o.grouthy = o.grouthy + 1);
    o.yi = _root._xmouse;
    _root.lineStyle(1, 0, 10);
    var _l3 = 1;
    while (_l3 <= 361)
    {
        o.x1 = _root.cosx(xyz, _l3 + o.z, o.ux, o) + xyz + 250;
        o.y1 = _root.sinx(xyz, _l3 + o.z, o.uy, o) + xyz + 250;
        o.x2 = o.x1;
        o.y2 = o.y1;
        o.i++;
        _root.vals(o.i, o, ot);
        _l3 = _l3 + 360 / o.g;
    } // end while
} // End of the function
function sinx(a, U, z, o)
{
    var _l1 = Math.sin((a + U) / 57.400000) * o.r + o.xi;
    return(_l1);
} // End of the function
function cosx(b, U, z, o)
{
    var _l1 = Math.cos((b + U) / 57.400000) * o.r + o.yi;
    return(_l1);
} // End of the function
function fillCube(oo)
{
    _root.beginFill(0, oo.j);
    _root.moveTo(oo.patrat1.cx1, oo.patrat1.cy1);
    _root.lineTo(oo.patrat1.cx2, oo.patrat1.cy2);
    _root.lineTo(oo.patrat2.cx6, oo.patrat2.cy6);
    _root.lineTo(oo.patrat2.cx5, oo.patrat2.cy5);
    _root.lineTo(oo.patrat1.cx1, oo.patrat1.cy1);
    _root.endFill();
    _root.beginFill(4080, oo.j);
    _root.moveTo(oo.patrat1.cx1, oo.patrat1.cy1);
    _root.lineTo(oo.patrat1.cx2, oo.patrat1.cy2);
    _root.lineTo(oo.patrat1.cx3, oo.patrat1.cy3);
    _root.lineTo(oo.patrat1.cx4, oo.patrat1.cy4);
    _root.lineTo(oo.patrat1.cx1, oo.patrat1.cy1);
    _root.endFill();
    _root.beginFill(16711680, oo.j);
    _root.moveTo(oo.patrat2.cx5, oo.patrat2.cy5);
    _root.lineTo(oo.patrat2.cx6, oo.patrat2.cy6);
    _root.lineTo(oo.patrat2.cx7, oo.patrat2.cy7);
    _root.lineTo(oo.patrat2.cx8, oo.patrat2.cy8);
    _root.lineTo(oo.patrat2.cx5, oo.patrat2.cy5);
    _root.endFill();
    _root.beginFill(21760, oo.j);
    _root.moveTo(oo.patrat2.cx5, oo.patrat2.cy5);
    _root.lineTo(oo.patrat2.cx8, oo.patrat2.cy8);
    _root.lineTo(oo.patrat1.cx4, oo.patrat1.cy4);
    _root.lineTo(oo.patrat1.cx1, oo.patrat1.cy1);
    _root.lineTo(oo.patrat2.cx5, oo.patrat2.cy5);
    _root.endFill();
    _root.beginFill(17408, oo.j);
    _root.moveTo(oo.patrat2.cx7, oo.patrat2.cy7);
    _root.lineTo(oo.patrat2.cx8, oo.patrat2.cy8);
    _root.lineTo(oo.patrat1.cx4, oo.patrat1.cy4);
    _root.lineTo(oo.patrat1.cx3, oo.patrat1.cy3);
    _root.lineTo(oo.patrat2.cx7, oo.patrat2.cy7);
    _root.endFill();
    _root.beginFill(85, oo.j);
    _root.moveTo(oo.patrat2.cx7, oo.patrat2.cy7);
    _root.lineTo(oo.patrat2.cx6, oo.patrat2.cy6);
    _root.lineTo(oo.patrat1.cx2, oo.patrat1.cy2);
    _root.lineTo(oo.patrat1.cx3, oo.patrat1.cy3);
    _root.lineTo(oo.patrat2.cx7, oo.patrat2.cy7);
    _root.endFill();
} // End of the function
function line(x1, y1, x2, y2)
{
    _root.lineStyle(1, 85, 100);
    _root.moveTo(x1, y1);
    _root.lineTo(x2, y2);
} // End of the function
function resetvarI(o)
{
    if (o.i >= 8)
    {
        o.i = 0;
    } // end if
} // End of the function
function cubeExecution(o, ot, xyz)
{
    resetvarI(o);
    o.z = o.z + 2;
    calc(o, ot, xyz);
    calc2(o, ot, xyz);
    drawCube(o, xyz);
    clearInterval(o.A);
} // End of the function
function DOALL3()
{
    cubeExecution(_root.cub3, _root.txtC, 180);
} // End of the function
function DOALL1()
{
    clearAll();
    cubeExecution(_root.cub1, _root.txtA, 0);
} // End of the function
function DOALL2()
{
    cubeExecution(_root.cub2, _root.txtB, 360);
} // End of the function
function clearAll()
{
    _root.clear();
} // End of the function
function drawPoint(px, py)
{
    _root.lineStyle(1, 0, 100);
    _root.moveTo(px - 2, py);
    _root.lineTo(px + 2, py);
    _root.moveTo(px, py - 2);
    _root.lineTo(px, py + 2);
} // End of the function
function drawLine(px1, py1, px2, py2)
{
    _root.lineStyle(1, 0, 100);
    _root.moveTo(px1, py1);
    _root.lineTo(px2, py2);
} // End of the function
function drawPointsSquare(px1, py1, px2, py2, px3, py3, px4, py4)
{
    _root.drawPoint(px1, py1);
    _root.drawPoint(px2, py2);
    _root.drawPoint(px3, py3);
    _root.drawPoint(px4, py4);
} // End of the function
function drawSquare(px1, py1, px2, py2, px3, py3, px4, py4)
{
    _root.drawLine(px1, py1, px2, py2);
    _root.drawLine(px2, py2, px3, py3);
    _root.drawLine(px3, py3, px4, py4);
    _root.drawLine(px4, py4, px1, py1);
} // End of the function
function drawPointsnGone(n, s, px, py)
{
    _root.drawnGone(n, s, px, py, "points");
} // End of the function
function drawnGone(n, s, px, py, tip)
{
    var _l4 = Math.cos(px / 57.400000) * s + px;
    var _l3 = Math.sin(py / 57.400000) * s + py;
    var _l7 = Math.cos(px / 57.400000) * s + px;
    var _l6 = Math.sin(py / 57.400000) * s + py;
    _root.lineStyle(1, 0, 100);
    var _l2 = 1;
    while (_l2 <= 361)
    {
        _l4 = Math.cos(_l2 / 57.400000) * s + px;
        _l3 = Math.sin(_l2 / 57.400000) * s + py;
        if (tip == "points")
        {
            _root.drawPoint(_l4, _l3);
        } // end if
        if (tip != "points")
        {
            if (_l2 > 1)
            {
                _root.moveTo(_l4, _l3);
                _root.lineTo(_l7, _l6);
            } // end if
        } // end if
        _l7 = _l4;
        _l6 = _l3;
        _l2 = _l2 + 360 / n;
    } // end while
} // End of the function
function drawPointsPolyGone()
{
} // End of the function
function drawPolyGone()
{
} // End of the function
function drawCircle(n, s, px, py, tip)
{
    _root.drawnGone(n, s, px, py, tip);
} // End of the function
function drawElipse()
{
} // End of the function
function fillArea3Points(px1, py1, px2, py2, px3, py3, colorx, alfa)
{
    _root.beginFill(colorx, alfa);
    _root.moveTo(px1, py1);
    _root.lineTo(px2, py2);
    _root.lineTo(px3, py3);
    _root.lineTo(px1, py1);
    _root.endFill();
} // End of the function
function fillArea4Points(px1, py1, px2, py2, px3, py3, px4, py4, colorx, alfa)
{
    _root.beginFill(colorx, alfa);
    _root.moveTo(px1, py1);
    _root.lineTo(px2, py2);
    _root.lineTo(px3, py3);
    _root.lineTo(px4, py4);
    _root.lineTo(px1, py1);
    _root.endFill();
} // End of the function
_quality = "low";
_root.onMouseMove = function ()
{
    _root.cub1.z = _root.cub1.z + 1;
    _root.cub2.z = _root.cub2.z - 1;
    _root.cub3.z = _root.cub3.z - 0.100000;
};
_root.onMouseDown = function ()
{
    _root.cub1.grouthy = 1;
    _root.cub1.z = _root.cub1.z + 2;
    _root.cub2.grouthy = 10;
    _root.cub2.z = _root.cub2.z - 2;
    _root.cub3.grouthy = -1;
    _root.cub3.z = _root.cub3.z - 30;
    _root.drawPoint(_xmouse, _ymouse);
    _root.drawnGone(5, 100, _xmouse, _ymouse, "notpoints");
    _root.drawCircle(60, 200, _xmouse, _ymouse, "notpoints");
    _root.drawPointsnGone(5, 100, _xmouse, _ymouse);
    _root.fillArea3Points(0, 0, 0, 100, 100, 0, 17, 5);
    _root.fillArea4Points(100, 100, 200, 100, 200, 200, 100, 200, 17, 5);
};
_root.onEnterFrame = function ()
{
};




// Action script...

// [onClipEvent of sprite 1 in frame 1]
onClipEvent (load)
{
    var cx1;
    var cx2;
    var cx3;
    var cx4;
    var cy1;
    var cy2;
    var cy3;
    var cy4;
}

// [onClipEvent of sprite 1 in frame 1]
onClipEvent (load)
{
    var cx5;
    var cx6;
    var cx7;
    var cx8;
    var cy5;
    var cy6;
    var cy7;
    var cy8;
}










// Action script...

on (press)
{
    _root.clear();
}

Comentarii

Postări populare de pe acest blog

WINDOWS 10 COMPUTER FREEZING PROBLEM SOLVED

good news : a BIOS UPDATE can resolve the problem but just for a Windows 7 on 64 bits o.s. and the system is not stable all the time. even after  bios update the system can freeze.
new info : u can try to low the screen brightness and see if this error appear so often after 
news: last info !!! maybe a virus. scann our system now with an antivirus i generate this error using other device ( a tablet pc) connected in the same network and the laptop i have this problem just freeze  http://thehackernews.com/2013/10/backdoor-found-in-chinese-tenda.html

news : if u use a tenda router this make couse all this problems



what i discover so far :
1.the electric company have many failure and affect the main ISP router/switch for building  also the router/switch installed by the ISP may be affected by overheating and will crash after a long utilisation on heat conditions 2.the router/switch of ISP affect any router of the user between this router and pc/laptop of client 3.the router and any other device of t…

program principal cpp

#include "clasa.h" #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <string.h> #define DELAY 9000000 void delay() { for(long i=0;i<DELAY;i++); } //constructor cu initializare de la tastatura BigInt::BigInt() {char x; signed char t[400]; int i; printf("\nNumarul cu semn "); do s=getche(); while((s!='+')&&(s!='-')); n=0; do {x=getche(); t[n]=x-'0'; n++; } while((x>='0')&&(x<='9')); n--; for(i=0;i<n;i++) nr[i]=t[n-i-1]; } //constructor cu initializare prin parametri BigInt::BigInt(char semn,signed char numar[],int dim) {int i; s=semn; n=dim; for(i=0;i<n;i++) nr[i]=numar[n-i-1]; } //transform un int negativ in pozitiv int BigInt::Pozitiv(int x) {int a,vb; a=0; vb=0; while(vb==0) if((x+a)==0) vb=1; else a=a+1; x=a; return x; } //constructor dintr-un nr int obisnuit BigInt::BigInt(int x) {int i; if(x>=0) s='+'…

o aplicatie php localitati romania

//APLICATIA SE REFERA LA BAZA DE DATE SIRUTA

//dragtable.js


/* dragtable v1.0 June 26, 2008 Dan Vanderkam, http://danvk.org/dragtable/ http://code.google.com/p/dragtable/ \Bsortabledraggable\B Instructions: - Download this file - Add <script src="dragtable.js"></script> to your HTML. - Add class="draggable" to any table you might like to reorder. - Drag the headers around to reorder them. This is code was based on: - Stuart Langridge's SortTable (kryogenix.org/code/browser/sorttable) - Mike Hall's draggable class (http://www.brainjar.com/dhtml/drag/) - A discussion of permuting table columns on comp.lang.javascript Licensed under the MIT license. */ // Here's the notice from Mike Hall's draggable script: //***************************************************************************** // Do not remove this notice. // // Copyright 2001 by Mike Hall. // See http…