I. ????????? ? ActionScript 3.0 - PowerPoint PPT Presentation

About This Presentation
Title:

I. ????????? ? ActionScript 3.0

Description:

... Chris Georgenes Adobe Flash Professional CS5 FOR WINDOWS AND MACINTOSH, KATHERINE ULRICH dobe Flash CS3, ... Adobe Photoshop, Illustrator ... – PowerPoint PPT presentation

Number of Views:87
Avg rating:3.0/5.0
Slides: 48
Provided by: may158
Category:

less

Transcript and Presenter's Notes

Title: I. ????????? ? ActionScript 3.0


1
(No Transcript)
2
??????????
  • I. ????????? ? ActionScript 3.0
  • Ka??? ?? ?????? ?? ?????
  • ???????? ?? ?????.
  • ??????? ????????? ?? ?????.
  • ??????? ? ??????? ????? ?ctionScript 1.0 ?
    ?ctionScript 2.0, ?ctionScript 3.0.
  • II. ?????? ? ???????
  • ????????? ?? ??????? ? ???????? ?? ????????? ???
    ???.
  • ?????????? ?? ??????? ?????????? ? ????????? ??
    ??????? ??????? ????????.
  • III. ??????????

3
????? ?? ?????? ???????
  • ?? ????????? ???????????? ???????
  • ????????? ActionScript ?????????? ? ??? ??
    ?????????? ?????
  • ?? ?????????? event handlers, ?? ????????? ??
    ???????????? ????????
  • ?? ????????? ? ?????????? ?????????? ???????,
    ???????? ? ?????? ?? ???????? ??? Flash CS 5.5,
    ?? ???????????? ? ????? ? ?????, ????? ? ??
    ??????????? ?????????? ?????? ?????????
  • ?????????? ???????, ?? ????????? ?????????????
    ???????
  • ?? ????????? ??????? ?????? ??? ?????? ????????,
    ? ????? ?? ?? ???????? ??? ???????? ???????? ??
    ????????? ?????
  • ?? ?????????? ?????, ?? ?? ??????????????
    ???????? ??????

4
????? ?? ?????? ???????
  • ?? ?????????? (UI) ???????????? ? ?? ???????????
    ?? ???? ????? ?????????????? ?????????,
    ?????????? ???????-??????????? ???????
  • ????????? ????????????? ?? ?????? ??????????,
    ??????????? BitmapData ??????
  • ???????????? ????? ??? ? ?? Flash ???????????
    text files ? XML, ?????????? Web service
  • ?? ?????????? ExternalInterface ????, ?? ??
    ???????????? ? JavaScript, ?????????? ????????
    ?????? ?????
  • ????????? ?? ???????????? ?????? ????????, ??
    ???????? ?????, ?? ?? ????????? ????? ??????
    ??-?????????????
  • ????????? ? ????????????? ???????? ?????? ?????
    ?? ????? ??????, ????????? ??????????, ?????
    ?????????? ????? ?????? ????? Flash-?????????????
    , ??????????? Flash ?????????? ???????????
    ActionScript

5
????????? ??? Flash CS 5 ????? ???????
  • ? ???????? Flash 4 ?? ?? ????? ??? ????????
    ???? ?? ???????????? ? Flash. ??????????? ?
    ??????? ?????? ?? ActionScript. ???? ????
    ???????????? ?? Flash ?????? ???????? ??????.
  • ?????????? ????????, ?????????? ??? ??????????
    ???? ????? ?????? Flash ????????? ? ???.
    Macromedia ????? ?????????, ?? ???? ? ?????? ??
    ?? ???????? ???????????? ? ????????
    ?????????????? ? ???????? ?????. ? ???????? ?????
    ??????? ???? ?? Flash ?? ??????? HTML ????
    ?????????? ?? ????????? ?? ???????? ??? ???????,
    ?? ???? ????? ???? ?????????? ???? ???? ????
    ??????????? ? Macromedia ?? ???????? ?
    ????????????????? ?? Flash ???? ????? Web
    ??????????.

6
????????? ??? Flash CS 5 ????? ???????
  • ????? ?? ??? ???? ?????? ? Flash 5 ???? ??
    ???-??????? ???? ????????????? ??????. Macromedia
    ????? ???????????? ??? ???????????
    ActionScript. ?????????? Flash 4 ?? ????????????
    ? ?????? ???????????? ?? ????????? ????????????.
    ? ?????? ??? Flash 5 ? ??????????? ? ActionScript
    ?? ?????????? ???????? ?? ECMA scripting,
    ??-???????? ???? JavaScript. Macromedia ?????????
    ???? ?????????? ??????, ?? ???????? JavaScript
    ????? ????? ?? ???????? ? ???????????? ??
    ActionScript.
  • Flash 6 ????????? ??? ActionScript ? ?????????
    ???? ?????????? ??? ?? ???-?????? ??
    ???????????? ? ???????????? ?? ????????? ??
    ?????. ???????????? ?? ???????? ??? ??? Flash 5
    ???? SmartClips, ?? ? ?????? ?????? ?? ??????????
    ?????????. ???????, ????? ? ???????? ?????????
    ?????. ???? ?? ?? ???????? ????????? ? Web ????
    ?????? ?? Real Player, Windows Media ? QuickTime
    ???????? ?????. ???-???????? ????? ?????????? ?
    Google, ?? ???? ?? ?? ?????? ? ?? ??????? ????
    News.com ? Weather.com.

7
????????? ??? Flash CS 5 ????? ???????
  • Flash 7 ?????????? ActionScript ??? ?????? 2.0
    ? ????? ?????? ???????? ???????-??????????.
    ?????????? ????? ?????? ?????? ?? Flash ? ????
    ?????? ? Flex 2.0. Adobe Flex 2 ? ?????
    ???????? ?? ????????? ? ????????? ?? ????
    ?????????? Rich Internet Applications (RIAs) ?
    ??????? ?? ??????? ? ? ????????, ??????????
    ?????? ?? ? 4.5. ????????? ????????????? ??
    ???????? ???????????????, ????????????
    ??????????, ????? ?????????? ??????? ???????????
    ?? ?????????????? ???? ??? ???????????????? ?
    ????????. ???? ???? ?? ?????? ???? ? ActionScript
    ?????? 3.0 ? ??? ?? ????? ???????????? ?????? ?
    ???? ?? ?? ?????????? ??? ????????? ?? ??????????
    ??????????, ???????? ??? ?????? ???????????
    ???????. ?????????? ?????? - Flash 9 ????
    ????????? ??????????? ?? ?????????? ????
    ActionScript 3.0 ? ? Adobe Air.
  • ???? 2005, Adobe ???? Macromedia ? ?????
    ????????? ????? ?????? ? ?????????? ?????. Flash,
    ????? ?????. ???? ?????????? ?????? ? ???
    ???????? ??? ?? ?????? ?????? ??? ??????? ?
    ???????????? ?? ??? ??????? ? ?????????? ???
    ??????? ?? Adob?.

8
????????? ??? Flash CS 5 ????? ???????
? ???? ???? ?? ??????? ? Flash CS 5 (? ???????
???-?????? ? 5.5). ? ???? ????? ??????? 5 ??????
?? ????????? ?? ???????? ? Flash (??? ??
????????? ??? ActionScript) - frame-by-frame
???????? - ? clasic ? shape tweening - ? motion
tweening ????????? ????? ? ?????????? ??????? ???
???????? ?????????????? ?? ????? ?? ?????????? ??
??????????. ?????????? ??????? ????? ?? ???????,
? ????? ?? ????????????? ? ???????? ????????.
- ???? ????????????? ?? Flash ?? ?????????? ??
????????????, ??? ????? ?? ????????
?????????????? ????????? ?? ??????? ?? ????????.
? ??? ????? ???? ??? ? ? ????1) ? Flash
CS5, Adobe ????????? ??? ??????, ???????
??????????? ?? ??????????? ?????????? ?
?????????? XFL (?? XMLextensible markup
languagefor Flash). XFL ??????? ?????????
????????? ?? Library-?? ? ???? ???? ???????
??????????. ?? ???????????? Flash ?????????? XFL
????? ? ?????? ??????????? ?? ???.
9
????????? ??? Flash CS 5 ????? ???????
2) XFG ?????? ?? ?? ? ????? ???????? ? ? Adobe
Photoshop, Illustrator. 3) ??? ?????????? ??
?????? ? ????? TLF (Text Layout Framework )
. 4) ??? ?????????? ?? ????????? deco-tool
?atterns. 5) ?????????? color ?????. 6)
?????. ??? ? ????? ???? ????? ??? Flash CS
5.5- ????????? ?????????????? ? ??-??????
????????? ?? ??????? ??????????. - ??-?????
????????? ?? ??????? ????? ????????????
(Libraries) ?? ????????? ????????. - ?????????
?????? ??? ???????? (???? ???? ?? ?? ????????,
???????????) - ??????? ????? ?? ??-?????
??????????? ?? ???????????? Publish Settings
10
????????? ??? Flash CS 5 ????? ???????
  • ???????? ?? Flash
  • ?????? ?? ??????? ?? ???? ????????? ???
    ?????????? ?????????? ?? ??????????? ???? "Web
    2.0.". ????? ???? ?? ???????? Flash ? ? ???????
    ?? ????? ??????... ?? ?? ??????? ?? ???????? ????
    Flash ??? ???????????. Microsoft ??????????? ????
    ???? ?? Windows Vista ? .NET 3.0 ???? ??????????
    ?? ????????????, ???????? Windows Presentation
    Foundation ? ??????? ??????, ???????? Windows
    Presentation Foundation Everywhere
    Silverlight) ?, ???? ?? ? ??????? ???, ?????
    Microsoft ?? ????? ? Flash, ?? ??????? ?? ??????.
  • ????????????? ??????? ????????. ?????????? 10
    ?????? ???? ?? ?? ?? ????????? ???? ????????,
    ???????? ?????????? ?? Adobe ? Microsoft ? ?????
    ?? Web 2.0.

11
????????? ??? Flash CS 5 ????? ???????
  • ActionScript ? ??????????? ???? ?? Macromedia
    Flash. ??????????? ???? ? ????? ?? ??????????? ?
    ??????????, ??? ????? ?????? ?? ??????? ?? Flash
    ????? ?? ??????? ??? ?? ?? ???????? ????? ?????
    ?????? ?????? ?????. ???? ?????????? ????? ??
    ??????????? ?? ????????? ?? ?????????
    ???????????? ?????. O???????? ???????? ????
    ???????? (actions), ??????? (events), ????????? ?
    ??????, ????? ??? ??????????? ? ????????? ?
    ?????? ?? ????? ???? ????? ?? ?????. ActionScript
    ? ???????-??????????, ?????????????? ???? ??
    ????????????. ?????????? ??????? ?? ???????
    ??????. Movie clip ?? ???-??????? ?????? ???
    Flash ????, ?????? ?? ?? ???? Flash ?????. ??????
    ?? ?????????? ?? ??????? ? ?? ??????? ?????????,
    ?????????????? ?????????? ?? ????.

12
????????? ??? Flash CS 5 ????? ???????
  • ActionScript ? ?????????? ??? ?????? ??
    ECMAScript (European Computers Manufacturers
    Association Script) (?????????? ????, ???????
    ???????? ? ?? ????? ????? ???? JavaScript,
    JScript - ?????????? ??? ?? ?????????????????/
    ????????????? ?????? ?? ?????. M???? ??
    ????????????? ??????????? ?? ???????, ??? ?????
    ???? ? JavaScript.
  • ????? ?????????? ???????
  • (?????????? ??????? ?????? ?? ?????????
    (Different document object models) - ??? ????
    Flash ?????? ? ????????? ?????, ?????????? ?
    ???????? ???? ????? (movies) ? ????? (sounds),
    ??? ??? ??????? ???????? ??????? ?????. ???? ??
    ???????? ???????? ?????? ???? ???????? (document)
    ? ???????? (window).

13
????????? ??? Flash CS 5 ????? ???????
  •  ?? ?? ????????? ?????? ?????? ?? JavaScript-
    ???? ?????-???? ? ?????? ?? ??????????
    (exception)- (try/catch/throw) ??????. ????? ? ?
    ?ctionScript 2004 ???? ?? ?? ??????? ? ????
    ?????????.
  • ?????????? ??????- ?????? ???????? ????? ??
    JavaScript ?????? ???? ???????????? ?? ???????
    (????., onClipEvent) ? ??????????? ?? ?????????
    (????., tellTarget).
  • ????????? Eval - ????????? Eval, ? ActionScript,
    ??????? ?????????? ?????????? ??????????.
  • ???????? ?????? - ActionScript ???????? ?????????
    ?? ???????? JavaScript ?????? Date (????) ?
    String (???), ? ?????? ????? ?????? ?
    ??????????????. ????????, ??? ?????? String (???)
    ??????? ?????????? ??????? ?? ????????? ??????
    ???? search ? replace.

14
???????? ?? ?????
  • ??????????? ????? ????, ????? ????????? ??? ?
    Flash ? ?????? ÀctionScript. ? ???? ?????? ??
    Flash ?????? ?? ???? ?????????? ?? ????????
    ??????????, ??????????? ??? ???????? (??????? ???
    ????? ??) ? ?????????? (?????????? ????, ????? ??
    ???????? ?????). ??????? ?? ?????? ????? ??
    ????????????, ActionScript ??????? ?????????
    ???????? ???? ????,???????????? ????? ?
    ?????????. ? ??????????? ?? ???????? ?? ??
    ??????? ?? ?? ???????.

15
???????? ?? ?????
  • ??? ??? ???????? ???? ???????? ??? ?? ?????
    ÀctionScript MX
  • on (release)
  • // ???????? ?? ???????? ?? ????? ??????????
  • var promenliva1Number 3.00
  • // ???????? ?? ???????? ?? ????? ??????????
  • var promenliva2Number 2.00
  • // ???????? ??????????, ????? ???????? ?
    ?????????????? // ??
  • var multNumber promenliva1 promenliva2
  • // ???????????? ?? ????????? ?? ???????????
    myTextBox_txt.text ?????????????? ?? ?????
    ?????????? ? mult
  • // ????????? ?? ??????????? ?? ?????? ???? //
    calculator_mc ?? ????? 10
  • calculator_mc.gotoAndPlay (10)

16
???????? ?? ?????
  • A e?? ??? ???????? ???? ???????? ??? ?? ?????
    ActionScript 2.0 ???? ? ???????? ????????? ?
    ????????????? ? ?????? ? ????
  • checkout_btn.onRelease function()
  • // ???????? ???????? ? ??? ?? ??????
  • var mugCostNumber 5
  • var taxPercentNumber .06
  • var totalTaxNumber mugCost taxPercent
  • var totalCostNumber mugCost totalTax
  • // ????????? ?? ?????????
  • myTextBox_txt.text "The total cost of your
    transaction is " totalCost
  • //send the cashRegister_mc movie clip
    instance to frame 50
  • cashRegister_mc.gotoAndPlay (50)

17
???????? ?? ?????
  • ????????? ?????? ????? A..Z, a..z, ????? 0..9,?
    ? ? / , . ? ? ? ? ?
  • ???????????? ??????? ?? ???????? ! ? ? ?
    ? ??.
  • ????? ???????? ?????????? ? ??????????
    ????????????????- Number (?????? ???), Boolean
    (????????? ???), String (??? ???). ????????????
    ??????- Arrays (??????) ? Objects (??????). ????
    ????? ????? ?? ???? ?? ??? ???????? ????????
    (Math, Clip, Button, Frame, ? ??.) ?
    ????????????? (????????? ?? ???? ????????). ???
    ???? ??? ????????? ???? ????? null ? undefined.
  • ??????? ?? (Number)
  • ????????? ?? (Boolean)
  • T?? ??? (String)

18
  • ?????? ?? ?????????? ???? (Keywords) ?
    ActionScript

19
  • ??????? ??????????, ????? ????? ?? ?????? ?
    ?????????? ??????? URL, ????????????? ???,
    ???????? ?? ????????????? ????????, ???? ????? ?
    ???????? ? ?????. ????? ???? ??? ????????? ??
    movie clip ??? ???? ????????? ?? ??????????,
    ????? ?? ????? ??? ????????? ????????, ??????????
    ?? ???????????? ? ??????? ????? ??? movie clip.
  • ????????? ?? ??????????- ????? ?????? ?? ????????
    ?? ???????? ???????
  • ?? ? ?????????????.
  • ?? ???? ?? ? ???????? ???? ??? true ??? false,
    null ??? undefined.
  • ?? ? ???????? ? ?????? ??????.
  • ? ActionScript 1.0 ? ActionScript 1.5 ??
    ??????????????? ?? ?? ???????? ????? ??
    ????????????. ??? ?????? ???? ?????????? ???? ??
    ??????? ?? ??????????, ?????? ? ?? ???????
    ????????. ?? ??????????, ?? ????? ?? ? ????
    ????????? ???????? ??? ??? undefined. ?? ???? ?
    ActionScript 2.0 ? 3.0 ????? ?????? ??????????
    ???????.

20
  • ?????? ?? ?????? ???????? ? ActionScript

21
  • K????????? ?? ??????? (Event handlers)-
    ????????????? ????????? ?????????, ? ????? ??
    ?????????? ??????? ???? ????????? ?? ?????? ??
    ???????. ??? ??? ???? ActionScript (?S)
    ?????????? ???????? ? ??????. ??????? ?? ?????
    ?? ??? ??? (on ? onClipEvent). ?? ???????? (?????
    ????? ? ?????? ????????????, ???????? ???????).
  • ????????? (Functions)- ?? ??????? ?? ???, ?????
    ????? ?? ?????? ????????? ? ?????? ?????????.

22
  • ????????? ???????? ? //. ?????? ???? ???? ?? ????
    ????? ? ???????? ? ?? ?? ?????? ???? ????????
    ???.
  • ?????????? ???????? ? //. ?????? ?????????
    ????? ? ????????.
  • ???? ??? ??????? ?? ? ????? .
  • ????? ????????? ???????? ?
  • ?????? ?????????, ??????????? (tabs) ? ?????
    ?????? ???????????? ?? ?????????.
  • ??? ?????????? ????????? ?? ???????? ???????,
    ????????BACKSPACE,ENTER,QOUTE,RETURN, SPACE ?
    TAB, ????? ????? ?? ???????????.

23
??????? ????????? ?? ?????
24
??????? ? ??????? ????? ?ctionScript 1.0 ?
?ctionScript 2.0 ? ?ctionScript 3.0
  • ???????- ActionScript 2.0, 3.0 ???? ?????
    ?????? ?????????? ? ??????????, ????? ?? ????? ??
    ?????? ??-???????? ? ???????????? ? ???????? ??
    ????? ???.- ActionScript 2.0, 3.0 ?? ?? 3 ?? 7
    ???? ??-???? ?? ActionScript 1.0. ???? ???????
    ???????????? ?? ??-?????? ??????????.- ???
    ActionScript 2.0 ? 3.0 ????? ?????????????? ???
    ????????? ?? ???????. ????? ????? ??????? ?????
    ????? ? ?????? ?????. ??? ? ????? ?? ???? Check
    Syntax ?? ?????? Actions.

25
  • ???????- ??? ActionScript 2.0 ? 3.0 ?????
    ?????? ?????????? ?????.- ??????????? ????
    (Class) ???? ?????? ?? ? ??????? ? ??????? .as
    ????. ???? ? ???????? ?? ???????? ??????, ??????
    ???? ?? ??????????? ?? ???? ??????? ?? ?????? ?
    ?????? ????? ?? ?????-?????????? ?? ?????. ????
    ???? ?? ? ????????, ??? ????????? ??????? ??
    Flash 8.0 Player.
  • ???????- ????????? ??????? ?? ?????????? ???
    ????? ?????????. myMovie._mc.gotoAndPlay(7)

26
  • ???????- ????????? ??????????? ?? ??????. if
    (prom1 prom2 6 ) // ???????? - ?????
    ?????? ??????????? ?? ?????. for (i 0 i lt
    prom1 i) // ???????? - ???????? ??
    ????????? ???? ?????. Prom (Prom1 / 4) Prom2

27
  • ???????, ?? ActionScript 2.0 ? 3.0 ??
    ???????-???????????. ????????? ???????, ?????
    ??????????? ?? ????????.
  • ??????? ????????? ?????? ??????, ????? ???? ??
    ????? ???????? ????? ???????? ? ???????
    ????? ?????? ?????????????? ???, ?? ?????
    ???????.
  • ActionScript 2.0 ? 3.0 ?? ??????????.
  • var mySoundSound new Sound()
  • ?????? myMovieClip._visible true
  • setRGB() // ?S 2
  • ?????? myMovieClip.visible true
  • setRGB() // ?S 3

28
  • Events (???????)????????? ?? ????, ????? ??
    ??????. ??? ????????????? ???????, ?? ????? Flash
    player ?? ???? ?????? ?? ???. ?????? ????
    ??????????? ??? ????????? ?? ?????? ?? ???????.
    ??????????? ? ????????????? ???????, ????????? ??
    ????????? ?????????????, ????? ?? ??????????
    ??-?????.
  • Event ???????? ?? ????? ?? ?????????? ?? ????? ?
    ????????? ?????????? ?? ?????????? ???????. ?
    ?????????? ??????, ?????????, ????? ?????????
    ?????????? ?? ????????? ??? ? ????????? ?????? ??
    ??????? onRelease.
  • Casting (T?????????) horizontalLocation
    Number("300")
  • horizontalLocation "300" as Number

29
  • Actions (????????)?????????? ?? ??????? ??
    ?????? ?????????. ?? ????????????? ????? ??? ???,
    ????? ????? ?? Flash ?? ?????, ???????, ???????
    ??? ??????? ????.
  • ??? ??????? ?? actions ?? ???????? ???
  • var mugCostNumber 5
  • cashRegister_mc.gotoAndPlay (50)
  • ???-????, ???????? ?????? ? ???, ????????? ?
    ??????? ????? () ?? actions. ???? ??????
    ?????????? ?? ???????? ? .

30
  • ??????? Actions (F9)

31
  • Data ? Strict Data Typing var
    variableNameDataType someValue var
    catNameString "Anna"
  • var ageInYearsNumber 3
  • var ageInMonthsNumber ageInYears12
  • var isSpayedBoolean true
  • Frames ActionScript ??? ???? ?? ?? ?????? ????
    ??? ?????? ?????. ??? ??????????? ?????, ????? ??
    ?, ?? ????????? ?????? ?? ?? ???????? ??
    ???-??????? ?? ???? ?????? ?????.
  • ??????
  • MovieClips

32
  • 1)
  • on(someEvent)
  • //actions go here
  • 2)
  • on(release)
  • getURL("http//www.electrotank.com")
  • 3)
  • on(rollOver)
  • this._xscale 200
  • on(rollOut)
  • this._xscale 100
  • on(release)
  • getURL("http//www.fmi-plovdiv.org")

33
  • 1)
  • onClipEvent(someEvent) //add actions here
  • 2)onClipEvent(enterFrame) //add actions here
  • 3)
  • onClipEvent(load) //add actions here
    onClipEvent(mouseMove) //add actions here

34
  • ??? 2 ????? ????????, ????? ?? ??????????? ???
    ???????? ?? ???????????1) ?????? ??????
    ????????? ??????????, ????? ?? ??????? ??
    ?????????? ????? ??? ????, ? ? ??????? ?????, ?
    ????? ?? ???????????.
  • visitWebPage_btn.onRelease function()
  • getURL("http//www.electrotank.com")
  • 2) ActionScript ? ????? ?? ?? ?????? ? ????
    ???????? ????, ???????? ?? ???????? actions ???
    ???? ?????? ?? ??????.
  • ??????, ??????? ? ?????? ?? ????????

35
var urlString "http//site" var
requestURLRequest new URLRequest(url) try
navigateToURL(request, '_blank') // second
argument is target catch (eError)
trace("Error occurred!") // ? ????
???? movieClipName.addEventListener(MouseEvent.CL
ICK, callLink) function callLinkvoid var
urlString "http//site" var
requestURLRequest new URLRequest(url) try
navigateToURL(request, '_blank') catch
(eError) trace("Error occurred!") //
getURL ? ?S 3.0
36
  • ??????? ? ?????????. ?????? ?? ????????? ??? ?
    ??????. ??? ???? ???? ?? ???????? ??????????.
    ??????????, ????? ????? ? ???? ????? ?? ??????
    ??????????????.
  • ????????? ? ????? ?? ?????????, ????? ????
    ????????? ???????? ? ?? ????? ? ?????? ???.
    ????????? ???? ?? ?? ?????? ??? ?????. ??????
    ???? ?????, ?? ?? ?????? ?????.
  • ???? ?? ??????????? ?????, ????? ??? ??????????
    ?????????????? ? ??????, ????? ?? ??????? ??
    ?????????? ???. ????????, ????? ?????, ????? ???
    ???????????????? ????????? ???, ??????? ?
    ???????. ???? ???? ???????? ??????(), ???(), ?
    ???(). ???? ???????? ????? ????????? ???? ?????.
    ????? ???? ?? ????? ??????? ????. ???? ?? ???????
    ? ?????? ?? ????? ?????.

37
?????? ? ???????
38
????????? ?? ??????? ? ???????? ?? ????????? ???
???
  • ? ????????? ?? ????? ?? ?????? ?? ????? ???? ?
    ???? ??????? ??? ?????? ?? ??????. ?? ?? ????????
    ???????????? ?? ??-?????, ????? ?? ??????????
    ???????, ? ?????????? ? ???????, ?? ?????
    ??????????? ????????? ?? ?????? ????????? ??
    ???????.
  • ? ActionScript ????? ?? ?????????? ???????,
    ??????? ?????? ?? ? ???????? ??? ??????????. ????
    ???? ?? ?? ???????? ???? ?????????? ??? ????????
    ??????????????????? 1 (AS 2)??? ? ? ???-?????
    ??????????? ????? ?? ????????? ?? ???????,
    ????????? ?????? ???? ?? ????????? ??-??????? ?
    ????????. function myFunkcia (?????????1,
    ?????????2 ? ?.?) // ????????????????????
    ?? ????? ??????? ??????? ? ????????? ????
    function

39
????????? ?? ??????? ? ???????? ?? ????????? ???
???
  • ????????? 2 (AS 3)??? ? ? ???-????? ???????????
    ????? ?? ????????? ?? ???????, ????????? ??????
    ???? ?? ????????? ??-??????? ? ????????.
    function showMenu(eMouseEvent)void
  • // ????????

40
????????? ?? ??????? ? ???????? ?? ????????? ???
???
  • ???? ????????? ???? function ??????? ?????? ?????
    ?? ?????????, ?? ???? ?? ? ??????, ?????
    ????????, ????? ?? ????-?? ??????????? ??
    ???????.
  • ???? ????? ?? ????????? ? ???????? ????? ????? ??
    ?????? ?????? ????????? ??? ?? ??????? ????
    ?????? ??????. ??? ??? ??????? ????????? ???????,
    ?? ????????? ???????, ????? ?? ????????? ?? ????
    ? ???? ????? ??? ????? ?????????. ??????? ??
    ?????????, ???????????? ? ?? ? ???????? ?? ?????
    ???????? ???????? ?? ??????????. ???? ??
    ????????? ?????????? ???? ?????????.
  • ??? ????????? ????? ??????? ?????? ?? ?????????,
    ????? ??? ?? ???????? ??????????, ????? ?????? ??
    ????????? ?????? ???????.
  • ????? ?? ???????? ?????? ?? ??????? (?.?. ??????,
    ????? ?? ??????? ??? ????????) ???? ???????
    Actions -gt User-Defined Functions ? ??????
    Actions.

41
????????? ?? ??????? ? ???????? ?? ????????? ???
???
  • ????????? 1??????? ????? ?? ????????? ??
    ??????? ?myFunkcia function (?????????1,
    ?????????2 ? ?.?) / ????????/
  • ???? ????? ????????? ?? ???????? ???-?????, ?? ??
    ???????? ??????? ????????? ??? ?? ?? ??????????
    ??? ???????? ????? ?? ????????????? ????. ???
    ????????? ? ?????? ????????? ?, ?? ?????
    ????????? ????? ?? ?????????, ? ?????????? ??
    ????????? ? ????????? ?? ???? ??? .
  • ????? ?? ??????? ?? ????? ????? ??????? ???? ????
    ?? ??????? ????? ? ??????? ????? ?? Actions
    ??????.
  • ??? ?????? ??????? ?? ??????? ????????? ????? ??
    ? ??????? ? ??????? ?? ??????? ?????????
    myFuncia()

42
????????? ?? ??????? ? ???????? ?? ????????? ???
???
  • ?? ? ??????, ?? ??? ? ?????????? ?? ??????
    ???????????? ??????????, ?? ?????????? ??
    ????????? ? ??????? myFuncia(?????????1,
    ?????????2)
  • ? ??????? ??????? ?? ??????, ?? ????????? ?
    ??????? ????????? ?? ??????? ? ???? ? ????
    ?????????????. ?? ? ??????, ?? ???? ?? ? ???? ?
    ?????? ?? ???????? ??????? ?? ?????????
    ?????????????, ?????? ?? ???????? ??????? ??? ??
    ???? ????????????? ???? ??????????? ?? ?????????
    ?? ??????? ????? _root.MyClip1.MyClip2.
    myFuncia()
  • ???? ?? ???????? ???? ??????? ? ?????????, ??
    ?????? ??????? ???????? (????????
    _rootaVariableName). Toe??, ? ?????? ??
    aVariableName ??? ???????? saySomething,
    ??????????? ? ?????? ?? ???????? ???? _root.
    saySomething()

43
????????? ?? ??????? ? ???????? ?? ????????? ???
???
  • ???????? ????????? ?? ???????, ????? ??????
    ?????????function AverageStoiinost
    (ObstaStoinost, ObshtBroii) srednoaritmetichn
    o ObstaStoinost/ObshtBroii // A?? ??????
    ?? ? ???????? AverageStoiinost(24,4)
  • ?o???? ????????? ??????? ? ActionScript ??
    ??????? ???????? ?????, ??????? ?? ?????????
    arguments. ??? ??????? ?????? ????????? ???
    ????????? ?????????- ???? ??? ?? ??? ??????
    ?????? ??? ???????????? ?? ?????????. ??? ??????
    ?? ?????????? ?????? ?? ???? ?????, ???? ?? ??
    ???????? ?? ??????? ?????function traceNames
    () trace(Tazi funkciq e priela
    arguments.length argumenta)
    trace(Stoiinostta na 1-viq argument e
    arguments0)trace(Stoiinostta na 2-riq
    argument e arguments1)traceNames(Vanya,
    Mitko)

44
????????? ?? ??????? ? ???????? ?? ????????? ???
???
  • ???? ???????? ?? ?????????, ? ????????? output ??
    ??????? ???????? Tazi funkciq e priela 2
    argumenta. Stoiinostta na 1-viq argument e
    Vanya Stoiinostta na 2-riq argument e Mitko
  • O?????????????? ?? ?????? ?? ?????? ????? ?? ????
    ?????????? ?? ????????? ???????, ????? ????? ??
    ????????? ???????????????? ?? ?????? ???? ??
    ??????????? ? ??? ?????????.

45
?????????? ?? ????????????????? ?????????? ??
???????, ??????? ????????.
  • ?????? ?? ????????????, ????? ?????????? ?? ????,
    ??????? ?? ?????????? ?? ????? ????? ? ?? ?????
    ?????, ??? ????? ?????? ?? ????? ????. ??
    ?????????? ?? ??????? ??????????, ?? ?? ????
    ?????? ???? ? ????????? ?? ?????????, ?? ????? ??
    ??????????. ? ?? ?????????? ??? ??????????? ??
    ?????????? ?? ?????????.
  • ????????? ?????????? ?? ?? ????????? ????????????
    ??? ??????????? ?? ?????????, ?? ?????? ?????
    ???????? ? ??????, ?? ????? ??-?????? ??????????
    ? ???? ?? ???????????? ???????. ? ??? ????? ??
    ??????? ?????.
  • ????????? ?????????? ? ??????????? ?? ????
    ??????? ????? ?? ???? ???? ? ???? ????? ? ?????
    ?? ????? ??????? ???? ? ?? ?? ? ???? ? ????
    ?????????????.

46
?????????? ?? ????????????????? ?????????? ??
???????, ??????? ????????.
  • ??? ???????????? ?? ??????? ?????????? ?????
    ????? ? ????????? ???? var var myVar
    promenliva
  • ????? ???????????? ?? ??????????? ?????????
    ?????????? ?? ??????? ?????var ime Maria,
    familia Dimitrova, site www.maria.net
  • ????? ?? ????????? ? ???????, ??????? ????????? ?
    return. return ime
  • ????? ?? ?????????? ?????????? return , ?? ??
    ??????? ?????????? ?????? ?????, ????????
    ????????? ?? ??????????, ?????? ??? ????? ??????.

47
??????????
  • ActionScript 3.0 Game Programming University,
    Second Edition, Gary Rosenzweig
  • Foundation Flash CS5 for Designers, Tom Green and
    Tiago Dias
  • HOW TO cheat IN AdobeFlashCS5 - The art of design
    and animation, Chris Georgenes
  • Adobe Flash Professional CS5 FOR WINDOWS AND
    MACINTOSH, KATHERINE ULRICH
  • ?dobe Flash CS3, ????????? ?????? ????
  • ??????????? ?????? ???? ?? Macromedia Flash 8,?
    ?????? ?????? ??????, ??????????? ???? ????.
  • HELP- ??? Flash CS5.
  • "FLASH 4 ???????? ? Web ?????? ??????",
    ?????? ??? ??????? ? ???? ?????, ???????????
    ???? ????
  • http//www.adobe.com
  • "Action Script fundamentals seminar
  • http//www.actionscript.org
  • Flash MX Project, ? ????? ?????
    ???????-?????? (Cheryl Brumbaugh-Duncan)
  • www.flashbg.org
  • www.kirupa.com
  • ? ?????..
Write a Comment
User Comments (0)
About PowerShow.com