Movie Clips, Dot Syntax, Dynamic Text - PowerPoint PPT Presentation

1 / 8
About This Presentation
Title:

Movie Clips, Dot Syntax, Dynamic Text

Description:

Movie Clips. Repetitive Animation. Using actionScript to control 'other' ... ActionScript and Movie Clips. Instance names 'Pathing' to instances (not symbols) ... – PowerPoint PPT presentation

Number of Views:154
Avg rating:3.0/5.0
Slides: 9
Provided by: aew2
Category:
Tags: clips | dot | dynamic | movie | syntax | text

less

Transcript and Presenter's Notes

Title: Movie Clips, Dot Syntax, Dynamic Text


1
Movie Clips, Dot Syntax, Dynamic Text
2
Topics
  • Movie Clips
  • Repetitive Animation
  • Using actionScript to control other timelines
  • Instance names
  • root, parent (object hierarchy and dot syntax)
  • Variable Casting
  • Dynamic Text
  • Combining Motion

3
Movie clips
  • Uber symbol
  • Independent timelines
  • Mini flash files
  • Car example

4
Dynamic Text
  • Can be modified at run-time.
  • Update the .text property
  • Has to have an instance name
  • Example
  • faceState.text Im sad!

5
ActionScript and Movie Clips
  • Instance names
  • Pathing to instances (not symbols)
  • (root as variableType).instanceName.functionOrProp
    erty
  • (for absolute pathing)
  • For example (root as MovieClip).faceState.text
    sad
  • (parent as variableType ).instanceName.functionOrP
    roperty
  • (for relative pathing)
  • For example (parent as MovieClip).faceState.text
    sad
  • this.instanceName.functionOrProperty
  • (this refers to current location in heirarchy)
  • For example faceFrame this.faceClip.nextFrame(
    )
  • this. is usually not necessary, already implied

6
Hierarchy example
betterB.addEventListener()
this.faceClip.nextFrame()
(parent as MovieClip).faceState.text Man, Im
sad
7
Another Hierarchy example
  • From sky to mushroom
  • (parent as MovieClip).mushroom
  • From mushroom to sky (parent as MovieClip).sky

mushroom
sky
8
Combining Motion
  • Car Driving off screen (example)
  • Ball revisited (example)
Write a Comment
User Comments (0)
About PowerShow.com