ANIMATION FOR NEW MEDIA COMM2720 Tutor: Catherine Stones c'm'stonesleeds'ac'uk Office Hours: Mon 23, - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

ANIMATION FOR NEW MEDIA COMM2720 Tutor: Catherine Stones c'm'stonesleeds'ac'uk Office Hours: Mon 23,

Description:

We need to build in interactivity! ... Rollover it. Rolloff it... Create a button. Drag onto the stage. Attach script: On(press){ getURL('nameofdoc.html' ... – PowerPoint PPT presentation

Number of Views:21
Avg rating:3.0/5.0
Slides: 13
Provided by: steve222
Category:

less

Transcript and Presenter's Notes

Title: ANIMATION FOR NEW MEDIA COMM2720 Tutor: Catherine Stones c'm'stonesleeds'ac'uk Office Hours: Mon 23,


1
ANIMATION FOR NEW MEDIA COMM2720Tutor Catherine
Stonesc.m.stones_at_leeds.ac.ukOffice Hours Mon
2-3, Wed 12-1
2
Today! Getting Interactive
  • Taking control of the playhead
  • Stopping the playhead
  • Moving the playhead
  • Creating Buttons
  • Events and Types of Scripts
  • Loading and Unloading Movies
  • Linking to a website

3
We need to build in interactivity!
  • Otherwise the movie will continually loop and the
    user cant change anything
  • To make the experience more memorable
  • To give the user choice
  • To get the user to our site

4
Actionscript Basics
  • How to type Normal vs Expert mode
  • Keep organised - set up an actions layer
  • If you want a command to run on a certain
    frameinsert a new keyframe

5
Stopping the Playhead
  • Dead Easy -
  • Stop()
  • Put this command in the frame where you want the
    playhead to stop.

6
Moving the Playhead
  • Just as easy
  • Gotoandplay(framenum)
  • Or
  • Gotoandstop(framenum)

7
Where do I put scripts?
  • Put them on frames if you want something to
    happen on its own, without user interaction.
  • Put them on button instances if they should run
    WHEN someone clicks there.
  • and other places that well deal with in further
    lectures

8
Buttons
  • To create one go to Modify New Symbol
  • Click on Button as the type
  • Youll see 4 states in a timeline UP, OVER,
    DOWN and HIT.
  • Youll need a different keyframe if you want the
    button to change during these four stages.
  • Whats HIT???? REALLY IMPORTANT. Hit is the
    hotspot area..ie. The user doesnt see it - but
    it tells flash which bit of the button is active
    and clickable.

9
Button Events
  • What can you do to a button?
  • Press it
  • Release it
  • Rollover it
  • Rolloff it
  • So we have EVENTS in actionscript which let us
    specify which each interaction could do.

10
To attach script to a button
  • Drag the button symbol onto the stage.
  • Click on the instance and go to the Actions
    Window
  • Select EXPERT mode
  • Typeon(press)Stop()

11
Loading Other .swf files
  • Create two flash files and publish each one (or
    test-movie) to get 2 swf files.
  • In one flash file create a button.
  • Attach script to the button..
  • On(press)loadMovieNum(nameof2ndmov.swf,1)
  • 1 stands for the LEVEL

12
Linking to a website
  • Create a button
  • Drag onto the stage
  • Attach script
  • On(press)getURL(nameofdoc.html)
Write a Comment
User Comments (0)
About PowerShow.com