AS Reference  :  Notes Index  :  Resources  :  About/Contact  :  Downloads

Contents of Notes Section


The following is a list of all pages in the Notes section of flash-creations.com, with a keyword description of what's on each page. The first 5 sections are introductory Flash material. Following that are Actionscript Basics, Dynamic Content, Server Communications, Classes, AS2 Samples, and older AS1 ASTB Samples.


Intro
What is FlashFlash for web, Flash for standalone executables, Flash IDE, creating a Flash movie
Examples of Flash on the Webexamples of flash used for different purposes on the web

Create
Drawing in the Flash IDEdrawing fill and stroke objects in Flash IDE, how Flash is different from other drawing programs, 5 quirks of Flash, pen tool, subselect tool, selection methods, rectangle, oval, paint bucket, ink bottle
Creating Gradients in the Flash IDEcolor mixer for creating gradients, editing gradients in Flash IDE
More Drawing Tipssoften fill edges, paste in place, paint inside
Import Sound and Bitmapsimport sound files, bitmap graphics, illustrator files into Flash, convert bitmap to vector graphic, make animated gif into swf
A Drawing Sampleuse drawing tools, imported graphics, trace bitmap, transform tool, soften fill edges to make a scene

Animate
Using Keyframes to Animatemake keyframe, extend timeline, keyframe animation, drawing tools and import sound to main timeline to animate scene
Motion Tweens (plain and guided)motion tween to move an object across the stage, transform panel, motion tween requires symbol, start keyframe, end keyframe, guided motion tween to make an object follow a path, guided motion path, insert blank keyframe
Tweens for Fade Transitionsmotion tween for fade, grow, rotate, change color, example of photo transitions, move keyframe
Shape Tweensshape tweens, cartoon bouncing ball, onion skin outlines
Maskscreate mask, motion tweened mask, shaped tweened mask, convert text to shape with Modify, Break Apart, using a mask for handwriting or drawing effect

Control
Control the playheadplayhead commands, make movie stop at end, adding a replay button
Control movieclip playhead3 ways to make a movieclip, including from existing content, stop a movieclip, use a button to control a movieclip, give movieclip an instance name to make it addressable
Movieclip Reference pagemovieclip properties, _root and _parent, absolute vs relative addresses, instance names, default behavior of movieclips
Frame-based website structurewebsite structure with section content in keyframes, intro animation, navigation buttons
Creating a Movieclipcreate a movieclip from contents in another fla, copy frames, paste frames, put movieclip and control in section of website, edit movieclip on stage
Example Contact Formadd user input form to movie, static text, input text, dynamic textfield to display message, LoadVars and PHP code to send email, set tab order, set focus on form entry
Scrolling Graphics or Textmake movieclip with text or graphic content scrollable with buttons (Flash 5 style code)
Preloader for websitefind size of published movie, find size of each frame in movie, see how movie looks at different connection speeds, add 100-frame preloader to beginning of movie
Website structure with content swf'suse individual swfs for site content, each with own preloader, loadMovie

Publish
Placing Flash on HTML pageadjust swf location on html page, margins, center, javascript to open popup window from flash or html
Detectionupdated flash detection in flash mx 2004 and flash 8, specifying alternate content, flashobject, swfobject, kewbee flash plugin switcher
Compression notesset compression of bitmap graphics, sound, individually or throughout movie

Actionscript Basics
Actionscript Syntaxactionscript in frame, actions panel, syntax, variable naming, code block, case sensitivity, expressions
Actionscript Playhead Commandsmovieclip timeline, gotoAndPlay, gotoAndStop, scope, path to instance, adding code to actions panel, errors, output panel
Playhead Commands and Addressing Nested Movieclipscontrol continuous loop movieclip, play, stop, address nested movieclips
Coded Motion with the Tween Classcontrol movieclips via properties, visible, alpha, tween class, named functions
Creating transitions & motion with onEnterFrameonRollOver, onRollOut, onEnterFrame, use of this, moving buttons
About ActionScript Classesclass, property, method, storing data, datatype, Array, using flash help, online documentation
Declare, Assign variablesdeclare variable, assign value to variable, every variable is a property of a timeline
Comments, Tracesingle-line, multiline comments, use trace to debug
Simple Datatypes in Actionscriptnumber, boolean, true/false, string, String methods, find string, concatenate string, substring, replace one string with another
Arrays and Objectsarray, Array methods, push, pop, splice, object, dot syntax, associative array, array of objects, recordset, dataprovider for v2 component
Code Blockscode block, if then else, for loop, syntax check, indent code, check equals, functions, event handler, assignment, randomBetween function
Actionscript Operatorsoperators, increment, decrement, compare, equals, greater than, less than, bit operators, and, or, not, modulo, remainder, bit shift, ternary
Using Event Handlers instead of buttonsonrelease, onrollover, onrollout, onmousemove, onpress, event handlers, actionscript in frames versus on buttons, using movieclip controls instead of buttons, this, examples of controls
Code Structurean example framework for putting code in main frame of movie: set up areas to document movie, import classes, declare and/or initialize variables, define functions, start movie
Toggle Buttonson/off button, pause/play button, controls with two states, examples of using a variable to track state or using _currentframe in the toggle button itself to track state
Button Groupscontrol group of nav buttons, show state of selected control, controls that grow, controls with different labels, array to hold group information, nav buttons and slideshow
Dragging, Detecting Collisionscollision detection, make movieclip draggable, onEnterFrame for continuous checking, drag in a line, rectangle drag constraints, collision between point and movieclip, collision between between bounding box of 2 movieclips, collision between mouse and movieclip bounding box
Distorting Magnifieruse duplicateMovieClip or attachMovie to create a distoring magnifier, mask, create copies of movieclip
Scrolling and Formatting Textscroll text, html format text, text behind a mask, scrollbar, embed font, make button movieclip from button, flash 8 text aliasing options
Example bee gameevent handler (onRollover, onRollOut) example, difference between registration point and transformation point, use align panel to make center registration point, hittest, keeping score, displaying score
Dart Shooter Gamedownloadable shoot bubbles example game, onenterframe, collision detection, random placement (Math.random), shape tween, drag multiple objects
Controlling Soundput sound in movieclip, control sound volume, control volume of whole movie, slider control
Easing Slider with Tween classkeeping fla and actionscript separate, as file, button pulse on mouseover, Tween class, slider, easing, make generic function, why upper left registration point, addressing movieclips by dot syntax or string representation of name, ways to link a control with a particular movieclip
Easing Slider 2: Group of Buttons, Delegateexample of using a group of buttons with an information array to show a visual indication of which control was selected, and track information related to each control, Tween onMotionFinished method, use of Delegate to change scope
Intro to Using v2 Components in Flashusing components, UI components, radio button, checkbox, push button, textarea, combobox, dropdown, setstyle, edit content in multiple frames, addeventlistener, framework for listener, component help
Timers, Intervals and Delaysways to control timing in flash: onEnterFrame, Tween with onMotionFinished, getTimer, setInterval, clearInterval, elapsed time, timers, countdown, time between button clicks, detecting a double-click

Dynamic Content
Dynamic Contentincluding dynamic content, asynchronous events
Flash Drawing APIdrawing API, createEmptyMovieClip, beginFill, lineStyle, draw line, draw curve, draw circle, MovieClip.prototype, registration point, draw shape with cutout, reverse direction to make mask with cutout
Creating Dynamic Textfieldscreatetextfield, textformat, text and htmlText, how to embed fonts
Attach Movieclips Dynamicallyuse attachMovie to attach snowflake movieclips from the library, apply random position, alpha, rotation, speed
Easing Slider 3: Attaching graphics dynamicallyuse array of information to attachMovie dynamically
Easing Slider 4: Creating text dynamicallyuse createTextField to create text fields dynamically, format with css or with TextFormat class, Flash 8 anti-aliasing properties, setNewTextFormat
Load External Jpg's and Swf'suse external jpg, load external swf, MovieClipLoader, onLoadInit, onLoadProgress, loadClip, load jpgs sequentially, path to jpg, MovieClipLoader framework to cut and paste, simulate download
Scrolling Photo Viewercontinuous scroll under mask, dynamic load jpgs sequentially, respond to mouse position
Preloading a swfexample load swf, show load progress, set up movie with init function, sound off during preload
XMLwhat is xml, how to use xml with flash, xml structure, read xml and convert to array of objects, use xml data as dataprovider for v2 components
Easing Slider 5: XML as Data Source, HTML linkseasing slider example with xml as data source, including html-formatted text with links, css styling for a tags, use of cdata, single-click scrollable textfield

Server Communications
LoadVars (and PHP) introLoadVars, Flash to PHP, Flash to server communications, send, sendAndLoad, get data from server, send data to server
AP - PHP Lookuplookup for actionscript php equivalents, conversion, array, string, type, syntax
Read from text fileread content from text file, onData, onLoad, variable=value pairs, utf-8 encoding
Datagrid, LoadVars with PHP & MySQLdatagrid component, loadvars, retrieve records, display records in datagrid, insert record, delete record, php, mysql, phpmyadmin, addslashes, stripslashes, methods of flash-database communication, custom sort, use addItem and removeItem instead of push and splice for dataprovider
Flash Remoting Exampleusing remoting for binary data communication between flash and web server, amfphp, remoting components, php class, methodtable, recordset sort
Display pictures in a directoryPHP script to return list of all jpgs in a directory, Flash createEmptyMovieClip holders for jpgs to display, buttons to tween previous, next

Actionscript Classes
Intro to Actionscript ClassesActionScript 2 classes, where to store, path, class structure, import
Math ClassMath class, random, floor, round, create new method, trigonometry functions, radians, degrees, rotation, sin, cos, tan, Atan2, object follows mouse example, turn dial, tweened rotation
Key Class (for keyboard interaction)finding which key was pressed, getcode, getascii, keylistener, onKeyDown versus onEnterFrame check, make Enter key like button press, table of keycodes
Date Classget current date or time, set date variable, date methods, clock, append date string to keep from pulling cached version of swf
ActionScript Color Classuse instance of color class to set color of movieclip, color transition, random color, for/in loop
Using EventDispatcherusing built-in eventDispatcher to communicate between classes, dispatchEvent, broadcast, listener, sender, receiver

New Samples
Drawing API generated Pie Chartpiechart, drawing api example, createtext, read from text file
Event-model Email Sampleuse ActionScript 2 classes to separate function, EventDispatcher, v2 button component with Delegate to set scope
Creating a Tween SequenceCreate named instances of Tween class and use onMotionFinished to set up a sequence of tweens, addressing movieclips in a loop, array of colors, embed font, change color dynamically, recursive tween function, perpetual motion example
Tweened Sequences Using Fusefuse for sequential tweens, fuse class, array of objects
Using SVG in Flashread svg file, parse svg path tag, d attribute, animation package, animate outline, display svg in flash
Using the BitmapData class to Draw an Elevation Maprepresentation of bitmap data in flash, bitmapdata class for quick rendering of pixel-based data, noaa, goedas, elevation data, topographic map, color range, parse comma-delimited (csv) file with onData
Using a SWF as a data holderUsing a SWF as a data holder for elevation data as source for a map drawn with bitmapdata class
Two-Level Menutwo level menu with easing, tween class with onMotionFinished, photos fade in
Flash and Yahoo! Map APIUse Yahoo map api with Flash, geocode, latitude, longitude, marker, swf, library, loadVars in, XML out
Class-based Dart Shooter GameActionscript 2 game using game manager class and movieclip extensions, eventdispatcher

ASTB Samples
Notes about ASTB Samplesnote about samples in this section
3D Outline Samplebezier curves, 3d outlines, shape properties, ActionScript 1 classes, matrices for projecting 3d vectors into 2d space
Edge collision detection samplecollision detection, point on shape hits any point on other shape's border, localToGlobal, hittest, simulating physics (gravity, damping)
Flash and PHP address book sampleFlash LoadVars, PHP and MySQL to create addressbook with clickable photo links, server communications, asfunction, movieclip addressing
Create and save shapes sampleallow user to draw shapes by dragging mouse or creating bezier curves, save as shared object, output SVG, output shared object equivalent text, reduce points in drawing

Home  :  Notes Index  :  Resources  :  About/Contact  :  Downloads