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
gcorelabs提供美国阿什本数据中心的GPU服务器(显卡服务器),默认给8路RTX2080Ti,服务器网卡支持2*10Gbps(ANX),CPU为双路Silver-4214(24核48线程),256G内存,1Gbps独享带宽仅需150欧元、10bps带宽仅需600欧元,不限流量随便跑吧。 官方网站 :https://gcorelabs.com/hosting/dedicated/gpu/ ...
无忧云怎么样?无忧云服务器好不好?无忧云值不值得购买?无忧云,无忧云是一家成立于2017年的老牌商家旗下的服务器销售品牌,现由深圳市云上无忧网络科技有限公司运营,是正规持证IDC/ISP/IRCS商家,自营有国内雅安高防、洛阳BGP企业线路、香港CN2线路、国外服务器产品等,非常适合需要稳定的线路的用户,如游戏、企业建站业务需求和各种负载较高的项目,同时还有自营的高性能、高配置的BGP线路高防物理...
青果云香港CN2_GIA主机测评青果云香港多线BGP网络,接入电信CN2 GIA等优质链路,测试IP:45.251.136.1青果网络QG.NET是一家高效多云管理服务商,拥有工信部颁发的全网云计算/CDN/IDC/ISP/IP-VPN等多项资质,是CNNIC/APNIC联盟的成员之一。青果云香港CN2_GIA主机性能分享下面和大家分享下。官方网站:点击进入CPU内存系统盘数据盘宽带ip价格购买地...
flashwind为你推荐
美要求解锁iPhoneiPhone连接Mac的时候出现提示需要解锁iPhoneinternetexplorer无法打开为什么Internet Explorer浏览器无法打开重庆网站制作我想做个网站,我是重庆的人。想在本地找个做网站的公司,请教一下在重庆那个公司比较好一点,,,,谢谢申请支付宝账户支付宝账户怎么申请?邮件eset滴滴估值500亿滴滴出行股权项目投资怎么投 100w怎么可以投资不piaonimai跪求朴妮唛的的韩文歌,不知道是哪一部的,第一首放的是Girl's Day《Oh! My God》。求第三首韩文歌曲,一男一女唱的。免费代理加盟免费加盟代销怎么回事,能具体介绍下么最土团购程序你好,请问你有团购网的程序吗无忧代理网无忧考网怎么样
域名空间购买 老左 naning9韩国官网 云网数据 rackspace 谷歌香港 新家坡 服务器是干什么的 isp服务商 1g空间 免费dns解析 电信主机 drupal安装 香港亚马逊 备案空间 主机管理系统 贵阳电信测速 主机返佣 购买空间 江苏徐州移动 更多