Macromedia flash mx программалау технологиясында электронды оқулықты құру


Обучение Macromedia Flash MX. СD. 2003



бет7/7
Дата07.01.2022
өлшемі3,14 Mb.
#19790
түріПрограмма
1   2   3   4   5   6   7
Обучение Macromedia Flash MX. СD. 2003.

  • Роберт Рейхардт, Джой Лотт. Macromedia Flash MX 2004. ActionScript. –Москва –Санкт-Петербург –Киев, 2006.

  • Роберт Рейхардт, Сноу Дауд. Macromedia Flash MX 2004. для начинаюших. –СПб.:Питер, 2006.

  • С.И.Переверзев. Macromedia Flash вшколе. Информатика и образование. 2003.

  • Этан Уотролл, Норберт Гербес. Flash MX.- Санкт-Петербург, 2003.

  • К.З. Халықова, С.М. Кеңесбаев, Р.М. Мафухаев. Macromedia Flash MX технологиясы. Алматы, 2006.

  • Компания Macromedia, Inc. Macromedia Flash MX 2004 Action Script 2.0. справочник разработчика. 2006.

  • Эллен Финкельштейн, Гарди Лит. Macromedia Flash MX 2004. для «чайников» СПб.:Питер, 2005.

  • www.flashsupport.com

  • www.dialektika.com

  • www.williamspublishing.com

  • И.Г.Захарова. Информационные технологии в образовании: Учеб. пособие для студ. высш. пед. учеб. заведений. – М: Издательский центр «Академия», 2003

  • Христочевский С.А. Электронные мультимедийные учебники и энциклопедии// Информатика и образование. - 2000. - №2. – С.70-77.

    25. Гасов В. М., Цыганенко А. М. Методы и средства подготовки электронных изданий: Учебное пособие. - М.: МГУП, 2001.

    26. Нургалиева Г.К. Состояние и перспективы информатизации образования на основе информационно-коммуникационных технологий //Информатизация образования Казахстана и стран СНГ: Сб. научных статей 4-международного форума. - Алматы: РЦИО, 2006.


    ҚОСЫМША

    Қосымша А. Бағдарламалар листингі

    Негізгі беттер мен батырмаларға жасалған сілтемелерге келесі кодтар жазылған:
    on (release) {
    // GoTo Screen behavior

    if((_root.presentation.slide2 != undefined) && (_root.presentation.slide2 != null))

    {

    var screen = null;



    var target = this;

    while((screen == null) && (target != undefined) && (target != null))

    {

    if(target instanceof mx.screens.Screen)



    {

    screen = target;

    }

    else


    {

    target = target._parent;

    }

    }

    if(screen instanceof mx.screens.Slide)



    {

    screen.gotoSlide(_root.presentation.slide2);

    }

    }

    // End GoTo Screen behavior



    }
    onClipEvent (load) {

    // declare and set speed variable

    speed = 5;

    }

    onClipEvent (enterFrame) {



    // move up, down, left, or right

    if (Key.isDown(Key.LEFT) && !Key.isDown(Key.RIGHT)) {

    _x -= speed;

    _rotation = 270;

    }

    if (Key.isDown(Key.RIGHT) && !Key.isDown(Key.LEFT)) {



    _x += speed;

    _rotation = 90;

    }

    if (Key.isDown(Key.UP) && !Key.isDown(Key.DOWN)) {



    _y -= speed;

    _rotation = 0;

    }

    if (Key.isDown(Key.DOWN) && !Key.isDown(Key.UP)) {



    _y += speed;

    _rotation = 180;

    }

    //


    // move diagonally

    if (Key.isDown(Key.LEFT) && Key.isDown(Key.UP) && !Key.isDown(Key.RIGHT) && !Key.isDown(Key.DOWN)) {

    _rotation = 315;

    }

    if (Key.isDown(Key.RIGHT) && Key.isDown(Key.UP) && !Key.isDown(Key.LEFT) && !Key.isDown(Key.DOWN)) {



    _rotation = 45;

    }

    if (Key.isDown(Key.LEFT) && Key.isDown(Key.DOWN) && !Key.isDown(Key.RIGHT) && !Key.isDown(Key.UP)) {



    _rotation = 225;

    }

    if (Key.isDown(Key.RIGHT) && Key.isDown(Key.DOWN) && !Key.isDown(Key.LEFT) && !Key.isDown(Key.UP)) {



    _rotation = 135;

    }

    //



    // loop to opposite side of the masked area when the beetle travels off-screen

    if (_y<0) {

    _y = 231;

    }

    if (_y>231) {



    _y = 0;

    }

    if (_x<231) {



    _x = 465;

    }

    if (_x>465) {



    _x = 231;

    }

    //



    // maintain position and rotation of beetle shadow

    with (_root.shadow) {

    _x = this._x+3;

    _y = this._y+3;

    _rotation = this._rotation+90;

    }

    }


    // initialize variables

    whichSound = 1;

    playing = false;

    looping = false;

    //

    // create an instance of the Sound object



    mySound = new Sound();

    //

    initialize(1);



    function initialize(whichSound) {

    mySound.stop();

    mySound.loadSound("../sounds/sound"+whichSound+".mp3", false);

    newPosition = 0;

    playing = false;

    input = whichSound;

    transport.fader._x = transport.left;

    }

    //



    // previuos and next buttons

    next.onPress = function() {

    if (whichSound<3) {

    whichSound++;

    initialize(whichSound);

    }

    };



    back.onPress = function() {

    if (whichSound>1) {

    whichSound--;

    initialize(whichSound);

    }

    };

    //



    // when selected sound reaches the end...

    mySound.onSoundComplete = function() {

    //mysound.stop();

    newPosition = mySound.duration/1000;

    if (looping) {

    mySound.start(0, 1);

    } else {

    playing= false;

    }

    };

    //



    this.onEnterFrame = function() {

    // limit input field

    if (input>3) {

    input=3;


    }

    //

    // initiate change to new sound when Enter key is pressed



    if (Key.isDown(Key.ENTER) && whichSound != input) {

    whichSound = input;

    initialize(whichSound);

    }

    };



    //

    // if a number is entered in the input field but Enter is not pressed, change

    // back to current sound number when clicking anywhere else

    inputField.onKillFocus = function() {

    input = whichSound;

    };
    four01k = 0;

    espp = 0;

    salary = 0;

    deductions = 0;

    maritalstatus = false;

    //

    _root.onEnterFrame = function() {



    gross = (math.round((salary/24-four01kamount)*100))/100;

    if (espp>15) {

    espp = 15;

    }

    //



    //

    sdi = (math.round((gross*.009)*100))/100;

    medicare = (math.round((gross*.0145)*100))/100;

    socsec = (math.round((gross*.062)*100))/100;

    four01kamount = (math.round((salary/24*(four01k*.01))*100))/100;

    esppamount = (math.round((gross*(espp*.01))*100))/100;

    //

    //


    withholdingAllowance = 120.83;

    fedwithholdamount = deductions*withholdingAllowance;

    adjustedgross = gross-fedwithholdamount;

    if (maritalstatus == false) {

    if (adjustedgross<110) {

    fedbase = 0;

    fedthresh = 0;

    fedpercent = 0;

    }

    if (adjustedgross>110 && adjustedgross<=1196) {



    fedbase = 0;

    fedthresh = 110;

    fedpercent = .15;

    }

    if (adjustedgross>1196 && adjustedgross<=2592) {



    fedbase = 162.9;

    fedthresh = 1196;

    fedpercent = .28;

    }

    if (adjustedgross>2592 && adjustedgross<=5767) {



    fedbase = 553.78;

    fedthresh = 2592;

    fedpercent = .31;

    }

    if (adjustedgross>5767 && adjustedgross<=12458) {



    fedbase = 1538.03;

    fedthresh = 5767;

    fedpercent = .36;

    }

    if (adjustedgross>12458) {



    fedbase = 3946.79;

    fedthresh = 12458;

    fedpercent = .396;

    }

    }



    if (maritalstatus == true) {

    if (adjustedgross<269) {

    fedbase = 0;

    fedthresh = 0;

    fedpercent = 0;

    }

    if (adjustedgross>269 && adjustedgross<=2079) {



    fedbase = 0;

    fedthresh = 269;

    fedpercent = .15;

    }

    if (adjustedgross>2079 && adjustedgross<=4383) {



    fedbase = 271.5;

    fedthresh = 2079;

    fedpercent = .28;

    }

    if (adjustedgross>4383 && adjustedgross<=7133) {



    fedbase = 916.62;

    fedthresh = 4383;

    fedpercent = .31;

    }

    if (adjustedgross>7133 && adjustedgross<=12585) {



    fedbase = 1769.12;

    fedthresh = 7133;

    fedpercent = .36;

    }

    if (adjustedgross>12585) {



    fedbase = 3731.84;

    fedthresh = 12585;

    fedpercent = .396;

    }

    }



    federal = (math.round((((adjustedgross-fedthresh)*fedpercent)+fedbase)*100))/100;

    //


    //

    statebase = (math.round(((gross-2400)*.093)*100))/100;

    statededuct = deductions*3.13;

    if (statewithholding<0) {

    statewithholding = 0;

    }

    if (gross>=2400) {



    state = statebase+statewithholding;

    } else {


    state = statewithholding;

    }

    if (gross<300) {



    statewithholding = 0;

    }

    if (gross>=300 && gross<500) {



    stateincrement = math.floor((gross-300)/20)+1;

    if (gross>=300 && gross<340) {

    statewithholding = 1.93+((stateincrement-1)*.20)-statededuct;

    }

    if (gross>=340 && gross<500) {



    statewithholding = 2.39+((stateincrement-3)*.40)-statededuct;

    }

    }



    if (gross>=500 && gross<1620) {

    stateincrement = math.floor((gross-500)/40)+1;

    if (gross>=500 && gross<660) {

    statewithholding = 5.79+((stateincrement-1)*.80)-statededuct;

    }

    if (gross>=660 && gross<980) {



    statewithholding = 9.47+((stateincrement-5)*1.60)-statededuct;

    }

    if (gross>=980 && gross<1300) {



    statewithholding = 22.9+((stateincrement-13)*2.40)-statededuct;

    }

    if (gross>=1300 && gross<1620) {



    statewithholding = 42.54+((stateincrement-21)*3.20)-statededuct;

    }

    }



    if (gross>=1620 && gross<1660) {

    statewithholding = 68.53-statededuct;

    }

    if (gross>=1660 && gross<1700) {



    statewithholding = 72.25-statededuct;

    }

    if (gross>=1700 && gross<1750) {



    statewithholding = 76.43-statededuct;

    }

    if (gross>=1750 && gross<1800) {



    statewithholding = 81.08-statededuct;

    }

    if (gross>=1800 && gross<1850) {



    statewithholding = 85.73-statededuct;

    }

    if (gross>=1850 && gross<1900) {



    statewithholding = 90.38-statededuct;

    }

    if (gross>=1900 && gross<1950) {



    statewithholding = 95.03-statededuct;

    }

    if (gross>=1950 && gross<2000) {



    statewithholding = 99.68-statededuct;

    }

    if (gross>=2000 && gross<2100) {



    statewithholding = 106.66-statededuct;

    }

    if (gross>=2100 && gross<2200) {



    statewithholding = 115.96-statededuct;

    }

    if (gross>=2200 && gross<2300) {



    statewithholding = 125.26-statededuct;

    }

    if (gross>=2300) {



    statewithholding = 134.56-statededuct;

    }

    //



    //

    paycheck = gross-(sdi+medicare+socsec+federal+state)-esppamount;

    };
    // declare and set initial variables and properties

    initx = joystick._x;

    inity = joystick._y;

    tension = .5;

    decay = .5;

    // determine whether dragging or not

    joystick.onPress = function() {

    dragging = true;

    };

    joystick.onRelease = function() {



    dragging = false;

    };

    joystick.onReleaseOutside = function() {



    dragging = false;

    };

    _root.onEnterFrame = function() {



    with (joystick) {

    if(dragging) {

    //calculate the angle of the joystick

    angle=Math.atan2(_root._ymouse-inity, _root._xmouse-initx)/(Math.PI/180);

    _rotation = angle;

    with(knob) {

    //rotate the knob inversely to the rotation of the whole joystick

    _rotation = -angle;

    //ragthe joystick but constrain it to a circle with a radius of 75

    _x=_parent._xmouse;

    if(_x>75) {

    _x= 75;

    } } with (beetle) {

    //setrotation of beetle equal to the rotation of the joystick

    _rotation = angle;

    //loop to opposite side of the masked area when the beetle travels off-screen

    if(_y<0) {

    _y= 231;

    }if (_y>231) {

    _y= 0;


    if (_x<231) {

    _x= 465;


    }

    if_x>465) {

    _x= 231;

    } move the beetle in proportion to how far the joystick is dragged from its center

    _y+= Math.sin(angle*(Math.PI/180))*(knob._x/8);

    _x+= Math.cos(angle*(Math.PI/180))*(knob._x/8);

    }

    } else {


    // snap back to center when the joystick is released

    xSpeed = -knob._x*tension+(xSpeed*decay);

    knob._x += xSpeed;

    }

    // scale the length of the joystick shaft



    shaft._width = (knob._x-shaft._x);

    }

    // maintain position and rotation of beetle shadow



    with (shadow) {

    _x = beetle._x+3;

    _y = beetle._y+3;

    _rotation = beetle._rotation;



    }

    };

    Қосымша Б. Графикалық бөлімнің слайдтары



    Сурет 1. Электрондық оқулықтың негізгі беті.

    Сурет 2. Электрондық оқулықтың бағдарлама беті.


    Сурет 3. Электрондық оқулықтың авторлық ұжымы.

    Сурет 4. Электрондық оқулықтың алғашқы беті.


    Сурет 5. Электрондық оқулықтың лекция бөлімі

    Сурет 6. Электрондық оқулықтың зертханалық бөлімі.

    Сурет 7. Зертханалық жұмыстың орындалуы

    Сурет 8. Электрондық оқулықтың тест бөлімі

    Сурет 9. Коллоквиум сұрақтары терезесі

    Сурет 10. Әдебиеттер тізімі терезесі

    Сурет 9. Тапсырмалар терезесі

    Сурет 10. Қосымшалар терезесі




    Достарыңызбен бөлісу:
  • 1   2   3   4   5   6   7




    ©emirsaba.org 2024
    әкімшілігінің қараңыз

        Басты бет