org.concord.flash.player
Class FMovieClip

java.lang.Object
  |
  +--org.concord.flash.player.FScriptObject
        |
        +--org.concord.flash.player.FComponent
              |
              +--org.concord.flash.player.FMovieClip
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, com.anotherbigidea.flash.SWFConstants
Direct Known Subclasses:
FMovie, FSprite

public abstract class FMovieClip
extends FComponent
implements com.anotherbigidea.flash.SWFConstants

Parent class for both FMovie and FSprite. Its major purpose is to implement the movie clip logic.


Field Summary
 int _currentframe
           
 
Fields inherited from class org.concord.flash.player.FComponent
movie, symbol
 
Fields inherited from class org.concord.flash.player.FScriptObject
members, name, parent
 
Fields inherited from interface com.anotherbigidea.flash.SWFConstants
BITMAP_FORMAT_16_BIT, BITMAP_FORMAT_32_BIT, BITMAP_FORMAT_8_BIT, BUTTON2_IDLE2OVERDOWN, BUTTON2_IDLE2OVERUP, BUTTON2_OUTDOWN2IDLE, BUTTON2_OUTDOWN2OVERDOWN, BUTTON2_OVERDOWN2IDLE, BUTTON2_OVERDOWN2OUTDOWN, BUTTON2_OVERDOWN2OVERUP, BUTTON2_OVERUP2IDLE, BUTTON2_OVERUP2OVERDOWN, CLIP_ACTION_DATA, CLIP_ACTION_ENTER_FRAME, CLIP_ACTION_KEY_DOWN, CLIP_ACTION_KEY_UP, CLIP_ACTION_MOUSE_DOWN, CLIP_ACTION_MOUSE_MOVE, CLIP_ACTION_MOUSE_UP, CLIP_ACTION_ON_LOAD, CLIP_ACTION_UNLOAD, FILL_CLIPPED_BITMAP, FILL_LINEAR_GRADIENT, FILL_RADIAL_GRADIENT, FILL_SOLID, FILL_TILED_BITMAP, FONT_ANSI, FONT_BOLD, FONT_ITALIC, FONT_SHIFTJIS, FONT_UNICODE, FONT_WIDECHARS, FONT2_32OFFSETS, FONT2_ANSI, FONT2_BOLD, FONT2_HAS_LAYOUT, FONT2_ITALIC, FONT2_SHIFTJIS, FONT2_UNICODE, FONT2_WIDECHARS, SOUND_FORMAT_ADPCM, SOUND_FORMAT_MP3, SOUND_FORMAT_RAW, SOUND_FREQ_11KHZ, SOUND_FREQ_22KHZ, SOUND_FREQ_44KHZ, SOUND_FREQ_5_5KHZ, TAG_DEFINEBITS, TAG_DEFINEBITSJPEG2, TAG_DEFINEBITSJPEG3, TAG_DEFINEBITSLOSSLESS, TAG_DEFINEBITSLOSSLESS2, TAG_DEFINEBUTTON, TAG_DEFINEBUTTON2, TAG_DEFINEBUTTONCXFORM, TAG_DEFINEBUTTONSOUND, TAG_DEFINEFONT, TAG_DEFINEFONT2, TAG_DEFINEFONTINFO, TAG_DEFINEMORPHSHAPE, TAG_DEFINEQUICKTIMEMOVIE, TAG_DEFINESHAPE, TAG_DEFINESHAPE2, TAG_DEFINESHAPE3, TAG_DEFINESOUND, TAG_DEFINESPRITE, TAG_DEFINETEXT, TAG_DEFINETEXT2, TAG_DEFINETEXTFIELD, TAG_DOACTION, TAG_ENABLEDEBUG, TAG_END, TAG_EXPORT, TAG_FLASHGENERATOR, TAG_FRAMELABEL, TAG_FREECHARACTER, TAG_GEN_EXTERNAL_FONT, TAG_GENERATOR_TEXT, TAG_IMPORT, TAG_JPEGTABLES, TAG_NAMECHARACTER, TAG_PLACEOBJECT, TAG_PLACEOBJECT2, TAG_PROTECT, TAG_REMOVEOBJECT, TAG_REMOVEOBJECT2, TAG_SERIALNUMBER, TAG_SETBACKGROUNDCOLOR, TAG_SHOWFRAME, TAG_SOUNDSTREAMBLOCK, TAG_SOUNDSTREAMHEAD, TAG_SOUNDSTREAMHEAD2, TAG_STARTSOUND, TAG_TEMPLATECOMMAND, TEXT_HAS_COLOR, TEXT_HAS_FONT, TEXT_HAS_XOFFSET, TEXT_HAS_YOFFSET, TEXTFIELD_ALIGN_CENTER, TEXTFIELD_ALIGN_JUSTIFY, TEXTFIELD_ALIGN_LEFT, TEXTFIELD_ALIGN_RIGHT, TEXTFIELD_DISABLE_EDIT, TEXTFIELD_DRAW_BORDER, TEXTFIELD_FONT_GLYPHS, TEXTFIELD_HAS_FONT, TEXTFIELD_HAS_LAYOUT, TEXTFIELD_HAS_TEXT, TEXTFIELD_HAS_TEXT_COLOR, TEXTFIELD_HTML, TEXTFIELD_IS_MULTILINE, TEXTFIELD_IS_PASSWORD, TEXTFIELD_LIMIT_CHARS, TEXTFIELD_NO_SELECTION, TEXTFIELD_WORD_WRAP, TWIPS
 
Constructor Summary
FMovieClip(java.lang.String name, FScriptObject parent)
           
FMovieClip(java.lang.String name, FScriptObject parent, com.anotherbigidea.flash.movie.MovieClip clip)
           
FMovieClip(java.lang.String name, FScriptObject parent, com.anotherbigidea.flash.movie.MovieClip clip, com.anotherbigidea.flash.movie.Instance instance)
           
 
Method Summary
 void addMovieClipListener(MovieClipListener l)
           
 void executeFrame(int frame)
          Executes code at the specified frame
 void executeFrame(java.lang.String label)
          Executes code at the specified frame
 int get_currentframe()
          Gets the current frame number
 java.awt.geom.Rectangle2D getBounds2D(java.awt.geom.AffineTransform t)
           
 FButton getButton()
          Hack, for getting the first button in the first frame
 FFrame getCurrentFrame()
           
 int getNumFrames()
           
 java.lang.String getObjectType()
           
 java.lang.String getPath()
           
 void gotoAndPlay(int frame)
          Go to the specified frame and start playing
 void gotoAndPlay(java.lang.String frameLabel)
          Go to the specified frame and start playing
 void gotoAndStop(int frame)
          Go to the specified frame and stop playing
 void gotoAndStop(java.lang.String frameLabel)
          Go to the specified frame and stop playing
protected  void initializeFrames(com.anotherbigidea.flash.movie.TimeLine clip)
          Initializes the frames in the movie clip with the data from clip
 boolean isPlaying()
           
 void nextFrame()
          Move to the next frame Usually called by the timer
 void play()
          Start playing at the next frame
 void prevFrame()
          Sends the playhead to the previous frame and stops it
 void removeMovieClipListener(MovieClipListener l)
           
 void set_currentframe(int frame)
          Sets the current frame pointer.
 void set_currentframe(java.lang.String frameLabel)
          Sets the current frame pointer by the label.
 void stop()
          Stop playing
 void stopAll()
          Stops playing and removes all button entries
 
Methods inherited from class org.concord.flash.player.FComponent
compareTo, get_alpha, get_name, get_rotation, get_visible, get_x, get_xscale, get_y, get_yscale, getBounds, getBounds2D, getClipDepth, getColorTransform, getDepth, getParentClip, getToolTipText, getTransform, getTransformed, isModified, isTransformed, paint, set_alpha, set_alpha, set_name, set_rotation, set_rotation, set_rotation, set_visible, set_x, set_x, set_x, set_xscale, set_xscale, set_xscale, set_y, set_y, set_y, set_yscale, set_yscale, set_yscale, setClipDepth, setColorTransform, setDepth, setToolTipText, setTransform, setTranslation, setTranslation, translate, translate
 
Methods inherited from class org.concord.flash.player.FScriptObject
callMethod, clone, getAllMembers, getMember, getName, getParent, removeMember, setMember, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_currentframe

public int _currentframe
Constructor Detail

FMovieClip

public FMovieClip(java.lang.String name,
                  FScriptObject parent,
                  com.anotherbigidea.flash.movie.MovieClip clip)

FMovieClip

public FMovieClip(java.lang.String name,
                  FScriptObject parent,
                  com.anotherbigidea.flash.movie.MovieClip clip,
                  com.anotherbigidea.flash.movie.Instance instance)

FMovieClip

public FMovieClip(java.lang.String name,
                  FScriptObject parent)
Method Detail

getPath

public java.lang.String getPath()

initializeFrames

protected void initializeFrames(com.anotherbigidea.flash.movie.TimeLine clip)
Initializes the frames in the movie clip with the data from clip
Parameters:
clip - The clip object from javaswf

addMovieClipListener

public void addMovieClipListener(MovieClipListener l)

removeMovieClipListener

public void removeMovieClipListener(MovieClipListener l)

getButton

public FButton getButton()
Hack, for getting the first button in the first frame

getObjectType

public java.lang.String getObjectType()
Overrides:
getObjectType in class FScriptObject
Returns:
the object type. For FMovieClip, return the string "movieclip"

set_currentframe

public void set_currentframe(int frame)
Sets the current frame pointer. Note : this method does not modify the playing status.
Parameters:
frame - The frame number

set_currentframe

public void set_currentframe(java.lang.String frameLabel)
Sets the current frame pointer by the label. Note : this method does not modify the playing status.
Parameters:
frameLabel - the frame with the label to set the current frame

get_currentframe

public int get_currentframe()
Gets the current frame number

getNumFrames

public int getNumFrames()
Returns:
the number of frames in the clip

nextFrame

public void nextFrame()
Move to the next frame Usually called by the timer

prevFrame

public void prevFrame()
Sends the playhead to the previous frame and stops it

executeFrame

public void executeFrame(int frame)
Executes code at the specified frame
Parameters:
frame - The frame number

executeFrame

public void executeFrame(java.lang.String label)
Executes code at the specified frame
Parameters:
label - The frame label

isPlaying

public boolean isPlaying()
Returns:
True if the clip is current playing

gotoAndPlay

public void gotoAndPlay(int frame)
Go to the specified frame and start playing
Parameters:
frame - frame number to go to

gotoAndPlay

public void gotoAndPlay(java.lang.String frameLabel)
Go to the specified frame and start playing
Parameters:
frameLabel - the frame label to go to

gotoAndStop

public void gotoAndStop(int frame)
Go to the specified frame and stop playing
Parameters:
frame - frame number to go to

gotoAndStop

public void gotoAndStop(java.lang.String frameLabel)
Go to the specified frame and stop playing
Parameters:
frameLabel - the frame label to go to

play

public void play()
Start playing at the next frame

stop

public void stop()
Stop playing

stopAll

public void stopAll()
Stops playing and removes all button entries

getCurrentFrame

public FFrame getCurrentFrame()

getBounds2D

public java.awt.geom.Rectangle2D getBounds2D(java.awt.geom.AffineTransform t)