TTO-6.Chuyểntọađộbướm.
Nhậnxét:Ởbài19,saukhibạntạomovieclipbuom,bạnđãthunhỏnólạiđểtạomotiontween.DoFlash ghinhớtỉlệđãđượcthunhỏcủabướmnênkhibạndùnglệnhSwapSymbol,movieclipButterflycũng đượctựđộngthunhỏtheotỉlệnày.
Ngoàira,RegistrationcủabuomcũngkhácRegistrationcủaButterflynênkhibạndùnglệnhSwapSymbol, bạnthuđượcbướmmớinằmlệchmộtbênmotionpath.BạnsẽthayđổiRegistrationcủaButterflyđểbướm mớinằmgiữamotionpath.
6.1Lúcnàythưviệnđangmở.BạnbấmđúpvàobiểutượngmovieclipButterfly:
GiáotrìnhFlashcs4–sưutầmtừwebsite:www.tuoitre.vn
6.2FlashchuyểnvàoTimelinecủamovieclipButterfly.Bạnthấydấu+thểhiệnRegistrationcủabướm đangởgóctrênbêntráicủabướm:
6.3BạnchọnEdit>Cuttừmenu(HoặcphímtắtCtrl+X):
GiáotrìnhFlashcs4–sưutầmtừwebsite:www.tuoitre.vn
6.4ChọnEdit>PasteinCentertừmenu(HoặcphímtắtCtrl+V):
Bướmđãđượcchuyểnsangnằmgiữamotionpath.BạncóthểchuyểnraTimelinechínhđểxemkếtquả này.TuynhiênbạntiếptụcởlạiTimelinecủamovieclipButterflyđểthựchiệncácbướctiếptheo. 7.Táchbướmthànhtừngphầnthânvàcánh.
7.1.Lúcnàybướmđanglàgroup(cóviềnxanhxungquanh),bạncóthểkiểmchứngbằngcáchbấmvào
GiáotrìnhFlashcs4–sưutầmtừwebsite:www.tuoitre.vn
PropertyInspectorđểxem).BạnsẽdùnglệnhModify>BreakAparttừmenu(HoặcphímtắtCtrl+B)để táchbướmkhỏigroup:
Sau3lầndùnglệnhModify>BreakApartbạnthuđượccácphầnnhỏcủabướm(cánh,thân,râu):
7.2Bạnphóngtonộidunglên400%đểdễthaotác:
7.3Bạnkéochuộtquétphủmộtphầncánhbướmbênphảiđểchọnriêngcánhphảicủabướm:
Bạnthuđượcchỉriêngcánhphảiđượcchọn:
7.4BấmphímDeleteđểxóacánhphải:
7.5Bạnquétchọnphầncònlạicủabướm:
GiáotrìnhFlashcs4–sưutầmtừwebsite:www.tuoitre.vn
7.6GiữphímShift,bấmchọncánhbướm,thaotácnàygiúploạicánhbướmkhỏinhómđãđượcchọn:
GiáotrìnhFlashcs4–sưutầmtừwebsite:www.tuoitre.vn
7.7Bạnsẽchuyểnrâuvàthânbướmsangsymbol.ChọnModify>ConverttoSymbol…từmenu(Hoặc phímtắtF8):
7.8ỞhộpthoạiConverttoSymbol,bạnđiềnbodyvàoôName,chọnTypelàMovieClip,Registrationở giữa,kếđếnbấmvàoLibraryrootđểchọnFolderchứasymbolnàytrongLibrary:
GiáotrìnhFlashcs4–sưutầmtừwebsite:www.tuoitre.vn
7.9ỞhộpthoạiMoveto…Bấmvàonút Existing folder, kếđếnchọnfolderIllustratorSymbolsvàbấmnút Select:
7.11Tiếptheobạnsẽchuyểncánhbướmthànhsymbol.Bấmchọncánhbướm:
GiáotrìnhFlashcs4–sưutầmtừwebsite:www.tuoitre.vn
7.13Ởhộpthoại Convert to Symbol, bạnđiềnwingvàoôName,chọnTypelàMovieClip,Registrationở giữa,chọnFoldergiốngbướctrênvàbấmOK:
GiáotrìnhFlashcs4–sưutầmtừwebsite:www.tuoitre.vn
7.14Bạnsẽcopymộtcánhbướmđểchuyểnsangphải.ChọnEdit>Copytừmenu(HoặcphímtắtCtrl+C)::
7.16Bạnthuđượccánhbướmthứhainằmtrùngcánhthứnhất.Bạnsẽlậtngangcánhbướmchođốixứng vàdichuyểnsangphải.ChọnModify>Transform>FlipHorizontaltừmenu:
GiáotrìnhFlashcs4–sưutầmtừwebsite:www.tuoitre.vn
7.17Bạndùngphímmũitêndichuyểncánhbướmsangphải(GiữphímShiftđểdichuyểnmỗilần10 pixel):
GiáotrìnhFlashcs4–sưutầmtừwebsite:www.tuoitre.vn
8.Bổsungbướmvỗcánh.
8.1Bấmđúpvàobiểutượngwingđểmởtimelinecủamovieclipnày:
Flashđưabạnvàotimelinecủamovieclipwing.Lúcnàycánhbướmđangđượcchọnlàgroup:
8.2ChọnModify>ConverttoSymbol…từmenu(HoặcphímtắtF8):
8.3ỞhộpthoạiConverttoSymbol,bạngỏwinggraphicvàoôName,chọnTypelàGraphic,Registrationở giữa,mụcFolderchọnnhưbướctrênvàbấmOK:
8.4Bạnsẽtạo2classictweenliêntục,trongđókeyframegiữacónộidungcánhbướmthuhẹplại,tạođược hiệuứngbướmvỗcánh.Muốnchocánhbướmthuhẹplạimộtcáchhợplý,bạnphảichuyểntrọngtâmcánh bướmvềmộtbên.ChọnFreeTransformTooltừthanhcôngcụ:
8.5Rêchuộtvàotâmxoay(trọngtâm)chođếnkhibênphảichuộtxuấthiệnvòngtrònnhỏ:
8.6Kéochuộtđểchuyểntrọngtâmsangmépphải:
8.7LúcnàybạnvẫnđangởTimelinecủamovieclipwing.Chọnframe5củaLayer1trêntimeline:
GiáotrìnhFlashcs4–sưutầmtừwebsite:www.tuoitre.vn
8.8BấmphímtắtF6đểbổsungthêmkeyframe:
8.10BấmphímtắtF6đểbổsungthêmkeyframe:
8.11ChọnméptráicánhbướmtrênStage:
GiáotrìnhFlashcs4–sưutầmtừwebsite:www.tuoitre.vn
8.13Bấmphímphảichuộtvàokeyframe3choxuấthiệnmenungữcảnhvàchọnCreateClassicTween:
GiáotrìnhFlashcs4–sưutầmtừwebsite:www.tuoitre.vn
8.14Bấmphímphảichuộtvàokeyframe1choxuấthiệnmenungữcảnhvàchọnCreateClassicTween:
GiáotrìnhFlashcs4–sưutầmtừwebsite:www.tuoitre.vn
8.16BấmchuộtvàoScene1đểtrởratimelinechính:
ChọnControl>TestMovietừmenu(hoặcphímtắtCtrl+Enter)đểxemkếtquả.Bạnthuđượcbướmbay lượnvàvỗcánh.
9.Bổsungbônghoa.
9.1ChọnLayer4củaTimelinechính:
9.2ChọnFile>Import>ImporttoStage…từmenu(HoặcbấmphímtắtCtrl+R)::
9.3TronghộpthoạiImport,ChọnfolderFLASHCS4ONLINE,trỏđếnfileflowers.aivàbấmnútOpen: (fileflowers.aiđượcđínhkèmtheobàiđểsửdụng):
HộpthoạiImport“flowers.ai”toStagexuấthiện:
9.4ỞmụcCheckIllustratorlayerstoimport,ChọnLayer1.BấmchọnôCreatemovieclipvàgỏtên flowersvàoôInstancename.XongbấmOK: