verticalflash

flashwind  时间:2021-02-28  阅读:()
MacromediaFlashMXIntroductionMacromediaFlashMXisapowerfulWebauthoringapplicationusedtocreateanimation,interactiveenviromentsanddatadrivenapplicationsforuseonWebsites.
FlashMXisoneoftheleadingWebauthoringprogramsforcreatingvector-basedanimationsor"Flashmovies"forWebsites.
AworkingFlashdocumentshouldhavethefileextensionof.
fla.
AcompiledFlashdocumentexportedtowebisabreviatedasa.
swffile.
Flashcreatesvector-basedgraphicsratherthanbitmapgraphics.
Vectorgraphicsarecreatedusinglinesandcurves,whereasbitmapgraphicsaredescribedbypixelsofcolor.
Bitmapimagesareresolutiondependent;therefore,resizingabitmapimagecanleadtodistortion.
Vector-basedgraphics,ontheotherhand,aredrawnusingmathematicalformulas.
Resizingavector-basedimagemeanstheformulaisrecalculated,resultinginascaledversionoftheoriginalimageandnodistortion.
FlashMXsupportstheimportingofbitmapgraphics.
ThisfeaturegivestheWebdeveloperagreatdealofflexibility.
TheadditionofaFlashmovietoaWebsiteinvitesinteractivityandprovidesanopportunityforvisitorstohaveamoreengagingexperience.
NOTE:YoumusthavetheFlashMXapplicationtoopenthe.
flafilesfoundintheExamplessection.
A30-daytrialversionisavailableatMacromedia.
UsingLayersinFlashMXLayersarelikeclearsheetsofacetateorglass.
Layerscanbestackedontopofeachother.
Eachlayercanhaveitsownartwork,soundoractiononit.
Useasmanylayersasyouneedtokeepeverythingseparateandorganized.
Beconsistentwiththewayyouorderandnamelayers,sothatifyouhavetoputthe.
flaawayandworkonitdowntheroad,youwon'tbetotallylost.
Thisisagoodpracticetoadopt.
Suggestedlayerorderandlayernamesare:1.
Actions---anyframeactionsassignedcanallbehere.
2.
Labels---Namekeyframesthathaveactions3.
Sounds---Anysoundscanbeplacedinkeyframeshere.
4.
Object1(whateveryouhaveonthislayer)5.
BackgroundNamelayerswithshortmeaningfulnamesthatyouwillbeabletoidentifyataglance.
Suchas"redballbounce,"or"buttonhome.
"Thesearen'treadbyFlash,sotheyjusthavetohavemeaningtoyou.
NOTE:Youcanhaveasmanylayersasyouwant(orasyoursystemcanhandle).
Layersdonotaddtofilesize.
CreatingNewLayersThereareseveralwaystocreateanewlayer:Clickonthe"+"buttoninthelowerleftcorneroftheTimeline.
or,FromtheInsertmenu,chooseLayer.
or,Right–click(Windows)orControl+Click(Macintosh)onanexistinglayerandchooseInsertLayerfromthedropdownmenu.
viewsamplefileCreateaguidelayerbychoosingModify>Layerandselectingthe"guide"option.
Aguidelayerisusedtohelpindrawing.
Anylayercanbemadeintoaguidelayer.
Theartworkappearsinyourworkarea,butnotinthepublishedmovie.
Whenyouseethisiconnexttothelayername,thenitisaguidelayer.
LayerAttributesYoucanchangetheorderofthelayersbydraggingthemupordownintheTimeline.
TheiconsacrossthetopoftheTimelinecontroldifferentattributesofthelayers.
ThefirstchangesthevisibilityofthelayertoOfforOn.
Thisishelpfulifyoudon'tneedtoseethatlayertoworkonadifferentlayer.
EvenifyouhavethevisibilityofthelayerturnedOff,itwillstillshowupinthepublishedmovie.
Ifyouwantthelayertobevisible,butnotshowupinthepublishedmovie,changethelayertoaguidelayer.
Thepageicononthelayerwillthenchangetoa"t-squareshape"TheLockiconlocksthelayersothatyoucan'tmakechangesonit.
TheBoxwillchangewhateverartworkisonthelayerintoanoutline.
Itwillshowupastheartwork,notasanoutlineinthemovie.
Youcanalsochangetheheightofthelayer.
Thismaybenecessaryifyouhaveasoundfileonaframeandyouwanttoseethewholesoundwaverepresentation.
Tochangetheheight,Control+Clickonthelayer(Macintosh)orright-click(Windows)andchooseProperties.
AdjustthelayerheightintheLayerHeightboxatthebottomofthemenubox.
Exercise:Createanobjectonalayer,clickontheeyeandtestmovie.
Youshouldseethateventhoughthelayerisinvisible,theobjectshowsup.
(Inordertotestamovie,itmustbesavedfirst.
)Changetheobjecttoanoutline,anddothesamething.
Itshouldlookthesame.
Changethelayertypetoaguideandtest.
Eventhoughtheobjectisvisible,itwon'tshowupinthetestmovie.
CreatingColorsinFlashMXThereareseveralwaystoselectcolorwithFlashMX.
TheSwatchespaneldisplaysthe216WebsafecolorsandalsostorescustommixedcolorscreatedbytheMixerpanel.
ToopentheSwatchesandMixerpanel,fromtheWindowsmenuandthenSwatchesandthenMixer.
WhenworkingwithcolorsinFlash,youmaywanttoorganizetheSwatches,MixerandFillpanelsintoonewindow.
Thesethreepanelsareusedtogetherveryoftenwithcolors,andyoucansaveandrecallthispanellayout.
AddingaNewColortotheSwatchesPanelClickontheMixerpaneltab.
Selectthecolorswatchnexttothebucketsymbol.
ThisistheFillcolor.
SelectanothercolorfromthedropdownswatchesmenuorbyusingtheslidersfromtheRGBslidersontheright.
ThesesliderscanbeswitchedfromRGB(Red,Green,Blue)toHSL(Hue,Saturation,Luminance)orHEX(Hexidecimal)usingtheleftpointingarrowontheMixerpanel.
AdjustthetransparencyofthenewcolorwiththeAlphatextboxorslider.
Whenthecolorandtransparencyisset,selectAddSwatchfromtherightpointingarrowontheMixerpanel.
SwitchtotheSwatchespanel.
Thecoloryoucreatedisatthebottomofthecolorswatches.
NowyouhaveacustomswatchpalettethatyoucansaveandcallintootherFlashsites.
SavingaCustomSwatchesPanelSelecttheSwatchespanel.
Usethepull-downmenufromthetoprightarrowandchooseSaveColors.
Saveyourswatchesinyourchosendirectory.
AddingaNewGradientFillLet'smakeanewgradientthathasonesolidcolorandonetransparentcolor.
FromtheSwatchespanel,choosethegreenradialgradienttype.
(Youcanchangethetypeofgradientlater.
)FromtheupperrightarrowchooseDuplicateSwatch.
Toalteraportionofthegradient,selectoneofthecolorboxesunderthebarthatdefinesthegradient.
Next,usethe"colorfill"boxabovetochooseanothercolor.
Nowselecttheothercolorandchooseanewone.
Youcanchangethegradienttypefromthepull-downmenutocreatevarioustypesofgradients.
ChangethegradienttypetoLinear.
Nowlookatyourswatchesandyou'llseethenewgradientyoumadeattheendofthegradients.
Gradientcolorswatchescanonlybeusedinfills.
Transparentfillscanonlybeappliedtonewobjects.
Theywillnotreplaceafillalreadythere.
Youwillhavetoselectanddeletethefillbeforerefillingwiththetransparentcolor.
Thismighthavetobeatwo-stepprocess.
Ifthereisnostrokeonyourobject,addatemporaryonewiththeinkwelltool.
Usethattodefinetheareatobefilled,thenyoucandeletethestrokeagain.
Modifyingthegradient'ssize,positionandrotationinsideofafilledobject.
Makeashapeandfillitwithyournewlycreatedgradient.
Selectthe"filltransform"toolontheToolbox.
Clickonyourfilledshapeonthestage.
AcenterpointappearsinthecenteroftheshapeandwithaRadialfillacirculartransformmodifiersurroundstheshape.
Thesquarehandleisanadjustmenthandle.
LinearandBitmapfillswilladisplayacenterpointandtwoverticallinesoneithersideoftheshape.
Ontherightline,thesquareadjustmenthandleappears.
TheTransformFillhandlesallowyoutochangethesize,positionandrotationofthegradientfillinsidetheobject.
Whenyoudragfromthecenterpoint,thepositionofthefillwillmove.
Thesquareonthesidechangesthewidth,thecircledirectlybelowcontrolsscale,andtheothercirclebelowthatonecontrolstherotationofthefill.
Themousepointerwillchangewhenhoveringoveroneofthehandlestoindicatethefunction.
Trythiswithalinearfilltoseethedifference.
Inalinearfill,youcanmodifythesamepropertiesaswellasskeworslantbydraggingfromoneofthecorners.
BitmapFillsIntheFillpanel,chooseBitmapfromtheFillMenu.
ClickonabitmapthatappearsintheFillpanel.
YoucanmodifyaBitmapfillthesameasaLinearfill.
DrawinginFlashMXIfyou'refamiliarwithPhotoshoporotherdrawing,imagemanipulationandpaintprograms,thenFlashtoolswilllookfamiliar.
Let'sgooversomeofthedrawingmethodsuniquetoFlash.
OverlappingShapesWhenoneshapeoverlapsanotherandthetwoshapesareonthesamelayerandandarenotselected,theseobjectsmergeintooneobject.
Youcanstillselectonesectionoftheobject,butwhenyoumoveit,thepartoftheotherobjectthatwasoverlappedwillbeerased.
Exercise:Drawashapeonthestageinonecolor.
Drawanoverlappingshapeinanothercolor.
Selectoneofthecolorareasanddragtheshape.
Youseethatthepartoftheshapethatwascoveredbytheoverlappingshapeisgone.
Keepthisinmindwhenyou'recreatinggraphics.
Ifyoudon'twantthistohappen,puttheshapesondifferentlayers,groupthemormakethemsymbols.
PencilToolThePenciltoolworkslikearegularpenciltoolwithsomecooloptions.
ThePenciltooldrawsinthreemodes:Straighten,SmoothandInk.
ThesemodesappearintheOptionssectionoftheToolbox.
ChooseStraightenanddrawabox.
Thelinesyoudrawhavebeenstraightened.
Trythiswiththeothertwomodes.
Smoothmakesnicecurvesaveragedfromthecurveyoudrew.
Inkleavesthelineasyou'vedrawnit.
SelectingedgesandlinesinFlashMXToselectalinesegmentorthefillofanobject,usetheArrowtoolandclickonceoverthelineorfill.
Doubleclickingonalinewillselectallthecurvesinthatline.
Choosetheselection(Arrow)toolanddeselectanyshapesorlinesthatareonthestage.
Withtheselectionarrow,moveitoveroneoftheshapeedges.
Thepointerarrowchangeswhenyou'reovertheedgeofashapethathasn'tbeengroupedormadeintoasymbol.
Ifit'soveracurvedlineorcurvededgeofafill,itisapointerwithacurvenexttoitandwillmovethecurveifyoupressanddrag.
Overacornerorendpoint,itisapointerwithacorner,andwillmovethepointorcornermaintainingthestraightlines.
Thiswillpullbothstrokeandfillalike.
Toreshapelinesandfills,selectthem.
UsetheSmoothorStraightenmodefromtheModifyMenuorfromtheOptionssectionoftheToolbox.
(YoucanadjusttheamountofsmoothingorstraighteningbychoosingPreferencesfromtheEditmenu.
)Control-drag(Windows)oroption-drag(Macintosh)alinetocreateanewcornerpoint.
OptimizingShapesThefewercurvedsectionsinashape,thelowertheamountofdataFlashhastomaintainonthatshape.
OptimizingshapesishighlyrecommendedtoreducefilesizeandincreaseplaybackspeedoftheFlashmovie.
Toreducetheamountofcurvesinanobject,chooseOptimizefromtheModifymenu.
TheOptimizeCurvesdialogboxallowsyoutoreducethenumberofcurvescontainedinashape.
Observetheshapeasyousmoothitandstopbeforeitchangestheshapeunacceptably.
Ifit'sasimpleshape,thenumberofcurvesmaynotchangeatall.
Optimizingallobjectsinamovie,cansignificantlyreducethemoviefilesizeandincreasetheplaybackspeed.
Exercise:Drawashape.
SelectitandchooseOptimizefromtheModifymenu.
Usetheslidertoadjusttheamountofsmoothingtoapplytothecurve.
(YoucanalwayschooseUndofromtheEditmenu.
)Theoption'Usemultiplepasses'willrepeatthesmoothingprocessuntilnomoreoptimizingispossible.
ThisisthesamethingaschoosingOptimizefromtheModifymenuoverandoveragain.
PenToolIfyouarefamiliarwithAdobeIllustratororPhotoshop,MacromediaFreehandorFireworks,you'veseenthistoolbefore.
ThePentoolallowsyoutoplacepointsandcreatecurvesandlinesthatarerepositionable.
Exercisetocreateastraightline:SelectthePentool.
Clickonceanywhereinthestagewindow.
Clickagain,andastraightlineiscreatedbetweenthetwopoints.
Exercisetocreateacurvedline:PositionthePeniconwhereyouwantittobeginonthestage.
Pressandholdthemouseandslideinthedirectionyouwantthecurvetogo.
You'llseetangenthandlesthatappearthatyoucanalsoselectandreposition.
Release,andeitherrepeatorjustclickwhereyouwantthecurvetoend.
Exercisetomodifyacurve:Usethesub-selectiontooltoselectapointoritsselectionhandlesanddragthemtoanewposition.
Importantpointsaboutcurves:Tochangeacurvepointtoacornerpoint(oranchorpoint),usethePentoolandjustclickonthepoint.
Tochangeacorneroranchorpointintoacurvepoint,usethesub-selectiontool,theoptionkeyanddrag.
Todeleteacornerpoint,clickonthepointwiththePentool.
Todeleteacurvepoint,doubleclickonthepoint.
Fewerpointsmeanssmallerfilesize.
Acurvepointisahollowcircle.
Acornerpointishollowsquare.
BrushToolTheBrushtoolisusedtoaddcolortoyourmovie.
TheBrushtoolhasmodifiersforBrushSize,BrushShapeandModes.
ThesemodifiersarelocatedintheOptionssectionoftheToolbox.
TheModesfortheBrushtoolprovidedifferentwaysofpainting.
TheModesare:PaintNormal-isjustlikeyouexpectPaintFills-leavesstrokesuntouchedPaintBehind-paintsinbackofPaintSelection-onlypaintsselecteditemPaintInside-paintsonlythefillyoustartinIfyou'reluckyenoughtohaveatabletandpressure-sensitivepen,thenanotheroptionisavailable:thePressuremodifier.
ThePressuremodifierallowsyoutovarythethicknessofthelineyoudraw.
Exercise:Createanobjectthathasafillandstroke.
SelecttheBrushtoolandtrythedifferentpaintingoptions.
TOPTopofFormWasthispageusefulBottomofFormMakingButtonsinFlashMXOneofthemostpowerfulfeaturesofFlashMXistheinteractivityyoucanbuildintoyourWebsite.
Thebuttonsymbolissomethingyou'lluseoften.
Buttonscanbeassimpleorascomplexasyouwant.
Buttonscancontainmoviesandactionsinside.
Buttonsareactuallyinteractivemoviesconsistingoffourframes.
Thefirstthreeframesdefinethreestatesofthebutton,whilethefourthframedefinesthehitarea,ortheareathatis"hot.
"Thefourframesare:1.
Up--whatbuttonlookslikeininactivestate,whenthepointerisnotoverthebutton;2.
Over--whatthebuttonlookslikewhenthepointerisoverit;3.
Down–whatthebuttonlookslikewhenthemouseisclickedonit;and4.
Hit--theareathatis"hot"thatwilltriggerthebuttonstates.
Exercisetobuildasimplebutton:FromtheInsertmenu,chooseNewSymbol.
IntheSymbolPropertieswindowthatopens,chooseButtonastheBehaviortype.
Nameit:b,simplebutton.
ClickOK.
Thisopensupthesymboleditingwindow.
Youwillsee4labeledframesintheLayersandTimelinearea.
Theseframesrepresentthe4statesforyourbutton:Up,Over,Down,andHit.
Thisiswhereyouwillcreatetheartworkforthedifferentstatesforyourbutton.
Clickinthe"Up"stateframe.
Onthestage,drawabluefilledcircle.
TheUpstateisdone.
Tocreatethe"Over","Down"and"Hit"states,selecteachframe(state)andfromtheInsertmenuchooseKeyframe.
Thiswillputthelastkeyframe(Upstateframe)intheselectedframe.
Thenyoucangobacktoeachnewframeandchangethebutton.
Wewantthe"Over"stateofthebuttontolooklikethe"Up"stateexceptwithadifferentfillcolor.
Selectthe"Over"stateframe.
Ifyouclickdirectlyontheframe,itwillselectallobjectsinthatframe.
Ifyouclickovertheframe,onthestatelabel,itwillgotothecorrectframe,butnotselecttheobjectsinthatframe.
Iftheobjectisnotselected,choosetheselectionarrowandselectthebluefilledcircleonthe"Over"state.
Whileitisselected,chooseanewcolorbythefillbuckettochangethefillcolor.
Nowselectthe"Down"stateframe.
Let'smaketheDownstatealittledifferent.
ChangethefillcolortoyellowthesamewayasintheOverstate.
Addsomelittledasheslikeradiatingraysfromthesunaroundthecircle.
Let'sleavethe"Hit"statethewayitis.
ClickontheScene1iconintheupperlefthandcorneroftheworkarea.
IftheLibrarywindowisnotopen,selectWindow/Library.
(Thekeycommandwillbeindicatedinthepull-downmenu,ifyou'dratherusekeysthanthepull-downmenusallthetime.
)ThesimplebuttonyoumadeshowsupintheLibrarylist.
Selectthebuttonandthe"Up"stateofthebuttonwillappearintheupperportionoftheLibrarywindowalongwitharightpointingarrow.
Clickthisrightpointingarrowandyou'llseeallfourstatesofthebuttonplayed.
Dragthisbuttonontoyourstage.
Toseeyourbuttoninaction,fromtheControlmenu,selectEnableSimpleButtons.
Rolloveryourbuttonandclickonit.
Itshouldturnadifferentcolorwhenyourolloverit,andturnintoayellowsunwhenyouclickonit.
SeeExample1intheFlashExamplessectionofthistutorialforthefinishedproduct.
Exercisetocreateabuttontoperformanaction:OneofthemostcommonbuttonactionsistocallupadifferentURL.
We'llputthisactiononthebuttonwejustmadeandplacedonthestage.
FromtheControlmenuturnoffEnableSimpleButtonssoyoucaninteractwiththebuttononthestagewithouttestingthemovie.
(EnableSimpleButtonswillnotshowyoumoviesinkeyframes.
)FromtheWindowmenu,chooseActions.
ThiswillopenuptheObjectActionswindow,oneofthemostpowerfultoolsinFlashMX.
CheckandseethatitissetonNormalmodeandnotExpertModebyclickingonthearrowintheupperrightcorner.
(Normalmodegivesyoucluesandblankstofillinwiththepropersyntax.
Expertmodeallowsyoutotypeinyourownsyntax.
)Forourpurposes,wewillchooseBasicActionsfromthelistonthelefthandside.
Scrollthroughthelistandselect"GetURL".
Eitherdoubleclickonit,ordragitovertotherighthandside.
Itwillshowupwiththepropersyntax,andanareatofillinonthebottomoftheObjectActionswindow.
(Thisactiondefaultstothe"onrelease"action.
Ifyouwanttochangethis,clickonthatlineintheObjectActionswindow,andyou'llseeanewsetofoptionsforthatlineonthebottom.
)With"GetURL"selected,FlashasksyoufortheURLyouwantthisbuttontodirecttheuserto.
Ifyoudon'thaveaURLtouse,typeinthisone:http://www.
utexas.
edu/Nowyou'rereadytotestyourbutton.
Thereareseveralwaystodothis:fromtheControlmenu,chooseTestMovieorfromtheFilemenu,choosePublishPreview/HTMLorfromtheFilemenu,choosePublishPreview/Flash.
Testthebuttonbyrollingoveritandclickingonit.
SeeExample2intheFlashExamplessectionofthistutorialforthefinishedproduct.
Exercisetocreateafancierbutton:Selecttheb,simplebuttonintheLibrarywindow.
ClickontheOptionsarrowandfromthedrop-downmenuselectDuplicate.
Namethisbutton'copyb,moviebutton'.
LeavethebehaviorasButton.
ClickOK.
CreateamovietoplaceintheDownstateofthebutton.
First,let'scopythesunandraysfromtheDownstateofthesimplebutton.
ClickontheSymbolsiconintheupperrighthandcornerofthestage,scrolldownandchooseyouroldbutton.
Thesymboleditoropens.
ClickontheDownframe,selectthesunandrays,andfromtheEditmenu,chooseCopy.
FromtheInsertmenu,chooseNewSymbol.
SelectMovieClipandnameit'm,sunny'.
ClickOK.
Thesymboleditorisnowopen.
FromtheEditmenu,choosePasteinPlace.
Youshouldseeyoursunfromthe"Down"stateofthesimplebutton.
FromtheInsertmenu,chooseKeyframesatframe5andframe10.
Gotoframe5.
Scalethesunupalittle(i.
e.
,maketheimagebigger).
FromtheModifymenu,chooseTransformandthenScale.
Graboneofthesquarehandlesandmaketheimagealittlebigger.
Nowletsmakeatweenbetweenkeyframe1and5,and5and10.
Clickonaframebetween1and5.
TheareaontheTimelineturnsblack.
NowopentheFramespanel.
FromtheWindowmenu,choosePanelsandthenFrame.
ChooseShapeTweeningfromthepull-downmenu.
(Shapetweeningisforobjectsthathavenotbeenturnedintosymbolsorgroupedtogether.
Youcantellifit'sarawgraphicbytheselection.
Itwillselectandfilltheobjectwithblackandwhitenoiseifitsstillraw.
Groupedobjectsandsymbolswillhaveaboundingboxinstead.
Theshapetweenisrepresentedbyalightgreenbackgroundwithasolidlinearrowontop.
Dashedlinesmeanssomethingisnotright.
)Thetweenshouldmakeasmoothupwardscalebetweenframe1and5.
Dothesamethingbetweenframe5and10.
Let'smakethisevenmorefun.
Addalayerabovethescalingsunlayer.
Nameit'spiral.
'Double-clickontheLayertochangethelayername.
Insertakeyframeonthefirstframe.
Selectthefirstframeonthespirallayeranddrawadarkeryellowororangespiralontopofthesun.
SelectthespiralandmakeitasymbolbychoosingConverttoSymbolfromtheInsertmenu.
Nameit'm,spiralmovieclip.
'Thebehaviorismovieclip.
CreateaKeyframeinframe10.
Selectframe10whichstillcontainstheunconvertedgraphic.
Selecttheimage,deleteitanddragthespiralsymbolfromtheLibrarywindowintoitsplace.
Youcanusethearrowkeystolineupthecentercrosshairs.
Itshouldbeinregistrationwiththefirstoneonthefirstframe.
Let'smakethespiralrotateonecompleterevolutionfor10frames.
Selecttheareabetweenframes1and10andopentheFramepanel(fromtheWindowmenu,chooosePanelsandthenFrame).
IntheTweeningboxselectMotion.
InMotionTweening,youcanindicatethedirectionoftheRotation.
SelectCCWforcounter-clockwise.
Inthe"times"box,put1for1revolution.
Motiontweensworkonsymbols.
ThetweenontheTimelinewilllookblue,withasolidlinearrow.
Createanewlayerandmoveittothetop.
Callit'actions.
'Ontheactionslayer,selectframe10andinsertakeyframebychoosingKeyframefromtheInsertmenu.
ChooseWindow/Actions.
TheFrameActionswindowopens.
SelectBasicActionsand"GoTo.
"Itwillbeanactiononthisframesendingittoaframenumberorlabel.
Itdefaultstoframe1whichisfineinthiscase.
Nowthismoviewillloopendlessly.
(ThetimelinesinmoviesareindependentoftheTimelineonthemainstage,soframe1isuniquetothismovie.
)PuttingthemovieintothebuttonClickonthesymbolsiconintheupperrighthandcornerandselect'copyb,moviebutton.
'Youarestillinthesymboleditor,butyouarebackintheduplicateofthefirstbuttonyoumade.
GototheDownstate(frame)anddeletethesungraphic.
Fromthelibrary,draginthecopyb,moviebuttonyoujustfinishedmaking.
Youcanlineupthecentercrosshairswiththearrowkeys.
GobacktoScene1(upperleft).
Nowyourmoviebuttonhasananimateddownstate.
Testyourmovie.
SeeExample3intheFlashExamplessectionofthistutorialforthefinishedproduct.
Congratulations,youhavemadeabuttonwithamovieinit!
UsingSymbolsinFlashMXOneofthemostefficientwaystouseFlashMXistousesymbolswheneveryouneedmorethanoneoccurrenceofagraphic,oranimationorsound.
Asymbolisagraphic,button,movieclip,orsoundthatyoucreateonce,thenreuseinyourmovieorothermovies.
FlashallowsyoutohaveanitemsavedintheLibrarythatyoucanpulloutontoyourstageoverandoveragainwithoutbustingyourfilesizebudget.
Youcanalsomodifycertainparametersoneachinstancesuchasscale,rotation,alphaandoverallcolor.
Ifyoumodifythesymbol,itwillchangealltheinstances,butifyoumodifytheinstance,thenjustthatinstanceisaffected.
SymbolTypesMovieClip-Asymbolthatcanincludeanimation(s),buttons,graphics,othersymbols,andoperatesindependentlyofthemainstageTimeline.
Button-Asymbolthatallowsinteractivityandthatrespondstomouseclicksorrollovers.
Buttonscanalsohavemoviesplacedinoneofthestates.
Graphic–AsymbolthatisusedforstaticimagesoriscontrolledbymainstageTimeline.
Interactivecontrolsandsoundswon'tworkinthissymbol.
Sound-TheSoundsymboliscreatedautomaticallywhenyouimportasound.
Font-CreatethistypeofsymbolfromtheLibrarywindowoptionssoyoudon'thavetoembedfontsinyoursite.
NamingconventionsTheLibrarystoressymbolsinalphabeticalorder.
Inordertokeepsymboltypesgroupedtogether,nameeachsymbolusingthefirstletterofthetypeofsymbolthatisitfirst,followedbyacomma,thenthenameofthesymbol.
Whenyouareworkingwithmanysymbols,thishelpsyoufindtheparticularsymbolquicklyandconsistently.
Example:g,balloonm,balloonmovies,balloonsqueakysoundb,balloonbuttonac,balloonmovementactionscriptinmovieExercise:Createasimpleshapeonthestage,suchasaredballoon.
Let'ssavethisshapeintotheLibrarybymakingtheballoonagraphicsymbol.
UsingtheArrowtool,drawaselectionboxaroundthewholeballoon.
Withitselected,fromtheInsertmenu,chooseConverttoSymbol.
ASymbolPropertiesdialogboxappearswith3Behavioroptions.
FlashdefaultstotheMovieClipbehavior.
SelecttheGraphicbehavior.
Nameyoursymbol:g,balloon.
ClickOK.
Deletetheballoonfromthestage.
FromtheWindowmenu,chooseLibrary.
You'llseeyourballoonsymbolintheLibrarywindow.
Dragtheballoonsymbol(g,balloon)outofthelibraryontothestage.
Nowyouhavean"instance"oftheballoononthestage.
Let'schangetheappearanceoftheballooninstance.
Usingthepropertiesmenu,changethealphato50%,changethetint,andchangethescaleandrotation.
You'llseetheoriginalsymbolisunaffected.
Youcankeeppullinginthesamesymboloverandoveragainbutchangeeachinstanceanywayyouwant.
Theseattributescanalsobechangedfordifferentkeyframes.
Note:Ifyouplanonanimatingeachinstanceindependently,puteachinstanceonaseparatelayer.
Animationrequires"tweening",whichwillonlyworkononesymbolononelayeratatime.
MakingamoviesymbolfromtheballoongraphicsymbolFromtheInsertmenu,chooseNewSymbol.
ChooseMovieClipastheBehaviorifit'snotalreadyselected,andnameyoursymbol:"m,balloonmovie.
"ClickOK.
Moviesymbolshavetheirowntimeline.
Thiscangetconfusing.
Youarenowinthesymboleditor,whichlooksjustlikethestage(becauseithasits'ownindependenttimeline).
Onewayyoucantellyouareinsymboleditingmodeisbylookingattheupperlefthandcorner,whichwillhavethemoviesymbolyoujustnamedafterthescenename.
IntheLibrarywindow,dragthe"g,balloon"symboloutontothem,balloonmoviestage.
Selectframe10onyourtimelineandthenfromtheInsertmenu,choosingKeyframefromthetopmenu.
(Keyframewillduplicatethelastkeyframewithsomethinginit.
)Movetheanimationscrubbertothesecondkeyframeandselecttheballoonorclickonthatframe(thiswillpickeverythinginthatkeyframe).
Modifytheballooninstancebyrotation,scale,alphaand/orcolor.
Nowweneedtocreatea"tween"betweenthefirstkeyframeandthesecondkeyframe.
Todothis:ClickintheTimelinesomewherebetweenthefirstandsecondkeyframes.
Inthepropertyinspector,selecttheMotionoptionfromtheTweendropdownmenu.
Youcanonlyusethemotiontweenonsymbols.
Youcanalsoaddautomaticrotation,easing,andotheroptionsatthispointintheframewindow.
ThereshouldbeanarrowdisplayedintheTimelineareabetweenthetwokeyframes.
Ifyouselectsomethingelse,themotiontweenshouldshowuponalightbluefield.
(Shapetweensaregreen.
)Nowifyouscrubthroughtheframes,you'llseetheballoonchangingsmoothlyfromframetoframe.
Let'smakethisactionloopcontinuously.
Todothat,let'sassignanactiontothelastkeyframe,tellingittoreturntothefirstframeofitsTimelineagain.
Clickonthelastframeandchoosewindow>actions,theFrameActionsdialogboxappears.
MakesureyouareinnormalmodeintheFramewindow.
(checkupperrightpull-downarrow)Clickonthe"Actions"bookdisplayactioncatagories,selectthe"MovieControls"bookandfindGoTo.
Itwilldefaulttoframe1,whichisfine.
Now,themoviewillloopcontinuously.
SeeExample4intheFlashExamplessectionofthistutorial.
ButtonSymbolNowwewillmakeabuttonusingboththeg,balloonandthem,balloonmovie.
Thebuttonsymbolhas4defaultstates:Up,Over,DownandHit.
Thesestatesreflectwhat'shappeningwhenthebuttonisdoingnothing,whenthemouseisoverit,whenthemouseclicksonit,andthehitzoneforthebutton.
Gobacktothemainstage.
FromtheInsertmenu,chooseNewSymbol.
ChooseButtonoptionandnameit:'b,balloon.
'Youarenowinthesymboleditingmodeagain.
Selectthe"Up"frame.
Dragtheg,balloonsymbolfromtheLibraryontothestage.
Thisiswhatthebuttonwilllooklike"atrest.
"Forthe"Over"state,wewanttheexactsameposition,butanothercolor,sowe'regoingtocopythe"Up"frameandpasteitintothe"Over"frame(or,clicktoselectthe"over"frameandhitF6,oryoucanalsojustchooseKeyframefromtheInsertmenu,anditwillcopythecontentsofthelastkeyframe).
changethecoloroftheballoonusingthepropertyinspector.
Nowwhenyourolloverthisbutton,itwillchangecolor.
Next,selectthe"Down"keyframearea.
FromtheInsertmenu,chooseKeyframeanddraginm,balloonmoviefromtheLibrary.
Forthe"Hit"area,itdoesn'tshowatall,soyoucanusethesymbolordrawahitareainthisstate.
Yourbuttoniscreatednow.
Let'stestit.
GobacktoScene1anddragyournew"b,balloon"outontothestage.
TestyourbuttonbychoosingTestMoviefromtheControlmenu.
SeeExample5intheFlashExamplessectionofthistutorial.
Congratulations!
You'vemadeamovie,andabuttonwithamovieinit!
AnimatinginFlashAnimationinFlashiseasy!
Let'slookatacoupleofdifferentwaystoachieveanimationinFlash.
Webuilttweensinthe"ButtonandSymbolsmaking"tutorial,butlet'sdoaquickreview.
ShapeTweenDrawashapeatframe1.
(Tryasimpleshape,likeaheart.
)Insertablankkeyframeatframe30intheTimeline.
Drawanothershape(likeastar)inadifferentcoloratframe30.
Thetwoshapesshouldbeonthesamelayer.
ClickontheareabetweenthetwoframesintheTimeline.
Theareawillturnblack.
Now,opentheFramespanelandchooseShapeTween.
Alightgreenbarwithasolidarrowwillappearbetweenthetwoframes.
WhenyouscrubbackandforthintheTimeline,theheartmorphstothestar,andchangescolor.
SeeExample6intheFlashExamplessectionofthistutorialforafinishedproduct.
MotionTweenCreateasymbolorpulloneoutoftheLibraryontoanewlayeronframe1.
Insertakeyframeatframe30.
Thiswillkeepthesymbolonframe30.
Modifythesymbolbychangingtheposition,scale,rotation,andalpha.
(UsetheEffectspanelforthealpha).
Selecttheareabetweentheframesonthetimelineanditwillturnblack.
OpentheFramesPanelandchooseMotionTween.
Alightbluebarwithasolidarrowwillappearbetweenthetwoframes.
WhenyouscrubbackandforthintheTimeline,thesymbolwillmove,scale,rotateandthealphawillchange.
MotionTweenhasotheroptions.
Youcanchoosethedirectionoftherotationfromthepull-downmenuintheFramesPanelandhavethetweenautomaticallyrotatetheobjectthenumberoftimesyouspecify.
SeeExample7intheFlashExamplessectionofthistutorialforafinishedproduct.
Animationscanbereused.
Forexample,let'ssayyoucreateananimationinamoviesymbolofabouncingball.
YoucouldpullthatballoutoftheLibraryasmanytimesasyourcomputercanhandle.
Youcanputthemallonindependentlayers,animatetheposition,scale,tint,alpha,etc.
AnimatingalongaPathLet'ssayyouwantasmallairplanetofollowapathfromthegrounduptotheclouds.
Createamoviesymbolofalittleairplanewithananimatedpropeller.
Dragthesymboloutontothestage.
Youmaywanttoaddarunwayandsomecloudsintheskytomakeyouranimationmorecomplete.
SelecttheairplanelayerandfromtheInsertmenu,chooseMotionGuide.
ThiscreatesanewlayercalledaGuideLayerontopoftheairplanelayer.
InsertanotherkeyframeintheGuide:airplanelayeratthepointwhereyouwantthemotiontostop.
UsingthePenciltool,drawacurvethatyouwanttheairplanetofollowfromtherunwaytotheclouds.
(Itwon'tshowupinthemovie)Selectthefirstkeyframeintheairplanelayer.
SelecttheArrowtoolandmovetheairplanetothebeginningofthecurve.
Nowselectthelastkeyframe.
Movetheairplanealongthecurvetotheendofthecurve.
Double-clickthefirstkeyframetoopentheFramepanel.
ChooseMotionfromtheTweeningmenuandcheckSnap(snapstheregistrationpointtothepath).
ScrubalongtheTimeline,andtheairplanewillfollowthecurvefromfirsttolastframe.
Whenyoupublish,theplane'spropellerswillmove.
(MovieanimationsdonotdisplayinFlashonthestage.
)SeeExample8intheFlashExamplessectionofthistutorialforafinishedproduct.
FramebyFrameAnimationThisisthemostfile-sizeintensivemethod,butsometimesit'stheonlywaytogettheeffectyouwant.
YoucanturnonaniftyfeaturecalledOnionSkinningtoseesurroundingframessoyoucanmoreaccuratelydrawyourframe.
Exercise:Inframeone,drawadog.
Inframeseven,fromtheInsertmenu,chooseKeyframe.
Thiscopiesthedogfromframeonethroughframeseven.
Insertanewlayerabovethedoglayer.
Youcancallit"feet.
"ClickontheOnionSkiniconfromtheoptionsundertheTimeline.
Youwillseeafadedversionofthefirstframe.
Clickandmoveeachofthedog'slegs.
Ifyoulike,youcancontinuetodothisforanotherfewframesfortheeyelidsandthetail.
TurnofftheOnionSkinbutton.
Nowscrubthroughyouranimation.
Younowhaveadancing,tail-waggingwinkingdog.
SeeExample9intheFlashExamplessectionofthistutorialforafinishedproduct.
UsingSoundinFlashMXThereareseveralwaystousesoundinFlashMX.
Youcanloopsoundstoplaycontinuously,independentofthetimeline,orsynchronizeyoursoundstoananimation.
YoucanimportandedityoursoundsintheSoundPanel.
ImportingImportsoundsintoFlashbychoosingImportfromtheFilemenu.
ThefollowingaudiofileformatscanbeimportedintoFlash:WAVAIFFMP3IfyouhaveQuickTime4orhigher,youcanalsoimportthesefileformats:SoundDesignerII(Macintosh)SoundOnlyQuickTimeMovies(MacintoshandWindows)SunAU(MacintoshandWindows)System7Sounds(Macintosh)WAV(MacintoshandWindows)FlashstoresaudiofilesintheLibraryasasymbolalongwiththegraphics,moviesandbuttons.
Soundfilesareindicatedbyaloudspeakericon.
Becausethesoundisasymbol,youonlyneedonecopyofitandyoucanuseitinmanywaysinyourFlashmovie.
IntheLibraryandontheTimeline,audiofilesarerepresentedassoundwaves.
TwotypesofsoundsinFlash--eventsoundsandstreamsoundsEventsoundsmustdownloadcompletelybeforetheystartplayingandtheywillcontinueplayinguntilexplicitlystopped(usuallybyastopaction).
Eventsoundsareassociatedwithaneventsuchasamouseclick,andareindependentoftheTimeline.
Streamsoundsbeginplayingassoonasthere'senoughdatatoplay.
Thesesoundsaresynchronizedtothetimeline.
Flashforcestheanimationtokeepinsyncwiththesound.
Ifitcan'tdrawframesfastenough,Flashwilldropframestokeepthesoundinsync.
EditingwiththeSoundPanelTheSoundPanelallowsyoutomodifythepropertiesoftheselectedsound,forexample:specifyifthesoundisanEventorStreamstartanewsound,orStopthesoundapplyeffectstothesounds,suchasNone(whichstripsanypreviouseffectsoffthesound),FadeInorOut,LefttoRight,etc.
IfyouchooseCustom,youcanmodifytheinandoutpointsofthefade,theduration,etc.
inthewindowthatopensup.
Clickontheboxesatthecornersofeachchannelandalsoaddpointsalongthelinebyclicking.
Exercise:ImportasoundfilebychoosingImportfromtheFilemenu.
Youcandownloadasample.
wavfilenamedslide_whistle_3x.
wav.
IfyouhaveFlashyoucandownloadthefinishedsound.
flafile.
Ifyoudon'thaveFlash,a30-daytrialversionisavailableatMacromedia.
OpentheLibraryPanel,andclickonthesoundsymbolyoujustimported.
YouwillseeitintheLibrarywindowwithaplayarrow.
YoucanlistentothesoundyoujustimportedbyclickingonthearrowatthetoprightoftheLibrarywindow.
Nameandselectlayer:SoundsAddkeyframesatframe1andframe45(orsomewhereontheTimelinepastthedurationofthesound).
It'snotnecessarytodothis,butitgivesyoualookatthefileintheTimeline.
Dragthesoundontothestage.
Youshouldseeitonthelayerasawaveform.
Youcangetabetterlookatthisbyincreasingtheheightofyourlayer.
FromtheModifymenu,chooseLayer.
Atthebottomofthiswindow,youcanchangethelayerheight.
Changeitto200%andclickOK.
OpentheSoundPanel.
SelectthesoundontheTimeline.
TheinformationaboutthatsoundfilewillshowupintheSoundPanel.
Itwillalsobevisibleinthetoppull-downmenu.
Ifyouhaveothersoundsimported,theywillbeinthemenualso.
Youcanchangethesoundfileyou'reeditingfromhere.
Directlyunderthatyouwillseethesoundfileinformation,MHzandfilesize.
YoucanapplydifferenteffectstoyoursoundNone-choosingthiswillremoveanypreviouseffectsLeftchannelRightchannelFadelefttorightFaderighttoleftFadeinFadeoutCustom–whenyouchoosethis,anotherwindowwillopen,allowingyoutoeditbothaudiochannels.
Theeditbuttonopensupthesameaudiochanneleditor.
Chooseeacheffect,opentheeditorandlookateacheffect.
Ifyouclickinoneofthechannels,itwillchangetoCustom,buttheseeffectscanbeusedasstartingpointstogettheeffectyouwantorusethemasis.
Thebestwaytogetafeelforthesoundeditoristoapplyeacheffecttoyoursound,listentoitandtrysomethingsinthecustomeffecteditor.
Belowtheeffectspanelisthesyncmenu.
Ithasthefollowingoptions:Event–associatedwithspecificactions,nottiedtothetimeline(likeasoundaccompanyingamouseclick)Start–sameasEvent,butwillcreateanewinstanceofthatsoundifitisalreadyplaying.
Stop–stopsthespecifiedsoundStream–syncsthesoundwiththeanimation,forcestheanimationtoplayatthesamerateasthesound,droppingframesifnecessary.
Youcanloopthesoundthenumberoftimesyoutypeinthebox.
Don'tloopstreamingsound;itwillincreaseyourfilesizedramatically.
Havefun!
SavingandPublishinginFlashMXSavingFlashmoviesTosaveyourworkingsitewithallitslayers,animations,etc.
fromtheFilemenu,chooseSave.
FlashwillsaveitasaFlashmoviewitha.
flaextension.
ThisissimilartoPhotoshopwhereyousaveyourworkingsitewithallitslayers,channelsandtextasa.
psdfile.
Archivethisfile.
Whenyou'rereadytoshowyourcreationtotheworld,youmustpublishorexportyour.
flafileintoafileformatthatwillplaybackontheWeborbeviewedasastillimageoraseriesofimages.
PublishingFlashmoviesontheWorldWideWebOneofthemostpopularwaystomakeyourmultimediaprojectavailabletotheworldisbyputtingitontheWorldWideWeb.
AneasywaytoaccomplishthisisbychoosingPublishSettingsfromtheFilemenu.
ThePublishcommandcreatestheFlashPlayerfile(SWF)andtheHTMLdocumentthatinsertsyourFlashPlayerfileintoaWebbrowser.
TopublishyourFlashproject,firstclickPublishthenOK.
Thisdialogboxgivesyoutheopportunitytocreatedifferentfileformats--GIF,JPEG,PNG,andQuickTime--andtheHTMLneededtodisplaytheminthebrowserwindow.
Thesealternativeformatsenableabrowsertodisplayyourmovie'sanimationandinteractivityforuserswhodon'thavetheFlashPlayerinstalled.
BecreativeandhavefunwithFlash!
http://www.
utexas.
edu/learn/flash/index.
htmlhttp://iea.
fmi.
uni-sofia.
bg/it/it_2002/flash5/index.
htmlhttp://www.
macromedia.
com/devnet/mx/flash/learning.
htmlhttp://www.
flashkit.
com/tutorials/http://www.
flashkit.
com/tutorials/Flash_Kit/http://www.
egret.
net/flash_examples.
htmhttp://www.
ori.
org/~kenl/flashstuff.
htmlhttp://www.
debwebonline.
com/dwflash.
htmhttp://www.
powersolution.
com/2001/10/services-flash.
shtmlhttp://www.
brazen.
co.
nz/design/flash.
htmhttp://iat.
ubalt.
edu/moulthrop/flashEx/http://www.
jwdc.
com/jwdc/flash.
htmlhttp://www.
site-maker.
com/flash-site-maker.
htmhttp://www.
deitel.
com/books/wirelessHTP1/flash_multimedia/ch31/examples.
html

野草云提供适合入门建站香港云服务器 年付138元起 3M带宽 2GB内存

野草云服务商在前面的文章中也有多次提到,算是一个国内的小众服务商。促销活动也不是很多,比较专注个人云服务用户业务,之前和站长聊到不少网友选择他们家是用来做网站的。这不看到商家有提供香港云服务器的优惠促销,可选CN2、BGP线路、支持Linux与windows系统,支持故障自动迁移,使用NVMe优化的Ceph集群存储,比较适合建站用户选择使用,最低年付138元 。野草云(原野草主机),公司成立于20...

Gcorelabs:美国GPU服务器,8路RTX2080Ti;2*Silver-4214/256G内存/1T SSD,1815欧/月

gcorelabs怎么样?gcorelabs是创建于2011年的俄罗斯一家IDC服务商,Gcorelabs提供优质的托管服务和VPS主机服务,Gcorelabs有一支强大的技术队伍,对主机的性能和稳定性要求非常高。Gcorelabs在 2017年收购了SkyparkCDN并提供全球CDN服务,目标是进入全球前五的网络服务商。G-Core Labs总部位于卢森堡,在莫斯科,明斯克和彼尔姆设有办事处。...

LOCVPS-2021年6月香港便宜vps宽带升级,充值就送代金券,其它八折优惠!

LOCVPS怎么样?LOCVPS是一家成立于2011年的稳定老牌国人商家,目前提供中国香港、韩国、美国、日本、新加坡、德国、荷兰等区域VPS服务器,所有机房Ping延迟低,国内速度优秀,非常适合建站和远程办公,所有机房Ping延迟低,国内速度优秀,非常适合做站。XEN架构产品的特点是小带宽无限流量、不超售!KVM架构是目前比较流行的虚拟化技术,大带宽,生态发展比较全面!所有大家可以根据自己业务需求...

flashwind为你推荐
mediawikiwiki,wikipedia与mediawiki三者的区别aspweb服务器如何搭建简易Asp Web服务器flashfxp下载我想下载一个FlashFXP 4.0.0 Build 1510 简体中文版的软件,可是不知道下载地址,希望大家帮帮我?大飞资讯新闻资讯包括什么内容?宜人贷官网宜信信用贷款上征信吗易名网易名网交易域名是怎么收费的三五互联南京最专业的网站建设公司是哪家?双尚网络做的好不好? 给分求答案qq头像上传失败我怎么总是QQ上传头像失败,开源网店开源网店系统 独立网店系统 淘宝 有什么区别?地址栏图标网站添加地址栏图标代码怎么写?
网站域名备案查询 网站域名备案 域名服务器上存放着internet主机的 漂亮qq空间 yardvps godaddy优惠券 debian6 java空间 免费网站申请 linux空间 vip购优汇 域名接入 如何建立邮箱 阿里云免费邮箱 iki lamp怎么读 阿里dns 新网dns fatcow windowsserver2008r2 更多