Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.anotherbigidea.flash.movie
Class MovieClip  view MovieClip download MovieClip.java

java.lang.Object
  extended bycom.anotherbigidea.flash.movie.Symbol
      extended bycom.anotherbigidea.flash.movie.MovieClip
All Implemented Interfaces:
TimeLine

public class MovieClip
extends Symbol
implements TimeLine

A Movie Clip (aka Sprite) Symbol


Field Summary
protected  int depth
           
protected  int frameCount
           
protected  java.util.SortedMap frames
           
 
Fields inherited from class com.anotherbigidea.flash.movie.Symbol
id
 
Constructor Summary
MovieClip()
           
 
Method Summary
 Frame appendFrame()
          Append a frame to the end of the timeline
 Frame appendFrame(Frame frame)
           
protected  int defineSymbol(Movie movie, com.anotherbigidea.flash.interfaces.SWFTagTypes timelineWriter, com.anotherbigidea.flash.interfaces.SWFTagTypes definitionWriter)
          Override to provide symbol definition
 int getAvailableDepth()
          Get the next available depth in the timeline
 Frame getFrame(int frameNumber)
          Get the Frame object for the given frame number - or create one if none exists.
 int getFrameCount()
          Get the current number of frames in the timeline.
 void setAvailableDepth(int depth)
          Set the next available depth in the timeline
 
Methods inherited from class com.anotherbigidea.flash.movie.Symbol
define, getId, getNextId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frames

protected java.util.SortedMap frames

frameCount

protected int frameCount

depth

protected int depth
Constructor Detail

MovieClip

public MovieClip()
Method Detail

getFrameCount

public int getFrameCount()
Get the current number of frames in the timeline.

Specified by:
getFrameCount in interface TimeLine

getFrame

public Frame getFrame(int frameNumber)
Get the Frame object for the given frame number - or create one if none exists. If the frame number is larger than the current frame count then the frame count is increased.

Specified by:
getFrame in interface TimeLine

appendFrame

public Frame appendFrame()
Append a frame to the end of the timeline

Specified by:
appendFrame in interface TimeLine

appendFrame

public Frame appendFrame(Frame frame)

getAvailableDepth

public int getAvailableDepth()
Get the next available depth in the timeline

Specified by:
getAvailableDepth in interface TimeLine

setAvailableDepth

public void setAvailableDepth(int depth)
Set the next available depth in the timeline

Specified by:
setAvailableDepth in interface TimeLine

defineSymbol

protected int defineSymbol(Movie movie,
                           com.anotherbigidea.flash.interfaces.SWFTagTypes timelineWriter,
                           com.anotherbigidea.flash.interfaces.SWFTagTypes definitionWriter)
                    throws java.io.IOException
Description copied from class: Symbol
Override to provide symbol definition

Specified by:
defineSymbol in class Symbol