Package: pumpkin.display

WWWMovieClip

This class is known to leak memory and will cause your application to crash.

[Expermimental class] to load compiled uniSWF MovieClips from a remote url, please read detailed notes ( link ).

This will be merged into the core of the MovieClip class with a http:// scheme.

Note: Only works with embeded and external assets.

WARNING: Will not work with raw swf files from flash. WARNING: Texture memory is based on references to this class instance but also will need to be manualy unloaded using WWWMovieClip.unload(). please use with caution on mobile devices as memory use will be high.


Constructors

WWWMovieClip

Create new WWWMovieClip.


Inherited members

Functions

gotoAndStop

Set the frame of the movieclip.

gotoAndPlay

Start playing at the specified frame.

stop

Stop playing the current timeline.

stopAll

Stop playing the current timeline and any child animations.

play

Play the timeline.

playBackwards

Play the timeline in reverse.

updateFrame

Frame update event.

newInstance

Returns new instance of the current MovieClip.

getMovieClipLayout

Returns MovieClipLayout associated with the MovieClip.

FrameCallback

Frame callback for addFrameScript()

setSymbolName

Set exported swf symbol name.

setFrameLabel

Set frame by frame label.

getFrameLabel

Get frame number from a label name.

setFrame

Set frame number.

invalidateFrameCache

Invalidate frame cache.

updateFrame

Frame update handler.

setPlayState

Set player state eg.

getTotalFrames

Get total number of frames.

getCurrentFrame

Get current frame.

getSymbolName

Get symbol name.

addFrameScript

Add frame callback for a frame or label.

preloadSWF

Preload swf data.

preloadSWF

Preload swf data with textures.

preloadSWFTextures

Preload swf with textures.

clearContextCache

Clear swf MovieClip cache.

unloadSwf

getRuntimeContent

Returns runtime asset context.

getObjectUnderPoint

Get the DisplayObject under the position.

updateBounds

Updates local bounding box from the DisplayObject contents.

addChildAt

Add DisplayObject to the DisplayObjectContainer at a specified index.

addChild

Add DisplayObject to the DisplayObjectContainer.

removeChild

Remove DisplayObject from the DisplayObjectContainer.

setChildIndex

Changes the index or draw order of the DisplayObject in the DisplayObjectContainer.

removeAllChildren

Remove all child DisplayObjects.

removeChildAt

Remove child DisplayObject at index.

getChildIndex

Get child index from a DisplayObject reference.

getChildAt

Get a DisplayObject from a child index.

contains

Determins if the DisplayObject exists in the DisplayObjectContainer.

getChildByName

Get a child DisplayObject by name.

updateFrame

Frame update handler ( internal )

getObjectUnderPoint

Get the DisplayObject under the position.

updateBounds

Updates local bounding box from the DisplayObject contents.

invalidateMatrix

Invalidate internal transform matrix cache.

broadcastEvent

Broadcast event to the DisplayObject and its children.

getFullMatrix

Get the combined matrix.

getFullMatrix

Get the combined matrix.

setBounds

Set the DisplayObject local bounding box.

getBounds

Returns a Rectangle of the DisplayObject relative to the target.

updateBounds

Updates local bounding box from the DisplayObject contents.

getMatrix

Get the DisplayObject transform matrix.

setMatrix

Set the local transform matrix.

setMatrixOverride

Same as getMatrix but does some tweaks for converting coordinate systems (internal).

getObjectUnderPoint

Get the DisplayObject under the x,y position.

getObjectUnderPoint

Get the DisplayObject under the position.

localToGlobal

Transform the local position to global stage space.

globalToLocal

Transform the global position to local space.

getInheritedAlpha

Helper to calculate the inherited alpha blend value from the DisplayObject parents.

getInheritedColor

Helper to calculate the inherited color transform from the DisplayObject parents.

getInheritedBlendMode

Helper to calculate the inherited blendmode from the DisplayObject parents.

updateFrame

Frame update handler ( internal )

invalidateMatrix

Invalidate internal transform matrix cache.

getChildByName

Get a child DisplayObject by name.

getChildByName< T >

Get a child DisplayObject by name.

getChildAt

Get a child DisplayObject at an index.

getChildAt< T >

Get a child DisplayObject at an index.

setBlendmodeChildren

Sets the color transform and every child object ( unstable ).

setColorTransformChildren

Sets the color transform and every child object ( unstable ).

broadcastEvent

Broadcast event to the DisplayObject and its children.

fireEvent

Fire event on the current DisplayObject.

startDrag

Start dragging the DisplayObject, locks position relative to the mouse position.

startDrag

Start dragging the DisplayObject, release on global mouse up.

startDrag

Start dragging the DisplayObject, constrain to a rectangle.

stopDrag

Stop dragging this DisplayObject.

EventCallback

addEventListener

Add listener function to response to the event type.

addEventListener

Add listener function to response to the event type with capture.

addGameObjectEventListener

Add GameObject message handler, dispatching event sends message to the method name listenerFun.

addGameObjectEventListener

Add GameObject message handler, dispatching event sends message to the method name listenerFun with capture.

dispatchEventReturnVoid

Same as dispatchEvent but void return type workarround for closures.

dispatchEvent

Dispatches an even bound using addEventListener.

removeAllEventListeners

Remove all event listeners.

removeEventListener

Remove event listener.

removeEventListener

Remove event listener with capture.

removeGameObjectEventListener

Remove event listener.

removeGameObjectEventListener

Remove event listener with capture.

willTrigger

Returns true if the event is being listened on.

hasEventListener

Returns true if the event is being listened on.


Variables

swfUri

STATE_STOPPED

MovieClipPlayer.playState stopped.

STATE_PLAYING

MovieClipPlayer.playState playing.

STATE_PLAYING_REVERSE

MovieClipPlayer.playState playing backwards.

swfRoot

Global swf resource root prefix.

swfProfile

Swf asset profile prefix.

profilerSettings

Global movieclip profile setting.

enableAdvancedTextfield

[alpha][dev][future] Experimental textfield that support htmltext like xml tags.

enableDepreciatedPreFrameCallback

[alpha][dev][future] Disables timeline tweens if user changes or override proporties on the DisplayObject.

enableScale9

[alpha] Enable scale9 grid on movieclips ( experimental use only )

rootResourceLoader

Root resource loader, handles swf resource loading.

enableTextfieldKeyframes

[alpha] Enable TextField contents to be keyframed.

loadTextures

Set texture loading enabled during movie playback.

playState

Set the playState id.

isPlaying

Indicates if the MovieClip is playing.

totalFrames

Get total number of frames.

currentFrame

Get current frame.

currentLabel

Get current frame label.

looping

Timeline looping.

graphics

Graphics handle to setup drawing operations.

mouseEnabled

Enable mouse interaction.

mouseChildrenEnabled

Disables mouse interaction on child DisplayObjects.

buttonMode

Enables sprite to act as a button.

depreciatedInvalidateMatrixAfterAddChild

Migration fix, addChild will invaldate matrix when enabled.

numChildren

Gets the total number of DisplayObjects in the DisplayObjectContainer.

stage

A reference to the Stage when this or one of its parents exist on the stage.

name

Indicates the name of the DisplayObject.

srcWidth

Exported source width in pixels.

srcHeight

Exported source height in pixels.

rotateX

Not imlemented.

rotateY

Not imlemented.

rotateZ

Not imlemented.

userData

Associate user data with this display object.

cachedCid

updateCounter

translateX

Not implemented.

translateY

Not implemented.

translateZ

Not implemented.

clipRect

Clip rect, clips contents this object and its children in the given rectangle in local space.

hasClipRect

Has clip rect.

mask

[alpha][dev] Experimental bitmap mask implementation.

mouseX

Indicates the local mouse x position in pixels.

mouseY

Indicates the local mouse y position in pixels.

x

Indicates the x coordinate of the DisplayObject in local coordinates relative to the parent DisplayObjectContainer.

y

Indicates the y coordinate of the DisplayObject in local coordinates relative to the parent DisplayObjectContainer.

rotation

Indicates the rotation of the DisplayObject in degrees relative to the parent DisplayObjectContainer.

scaleX

Indicates the x scale of the DisplayObject in normal units relative to the parent DisplayObjectContainer.

scaleY

Indicates the y scale of the DisplayObject in normal units relative to the parent DisplayObjectContainer.

alpha

Indicates the alpha blending value of the DisplayObject.

internalAlpha

visible

Indicates the DisplayObject visibility.

internalVisible

parent

Set when the DisplayObject is attached to a parent DisplayObjectContainer.

width

Indicates the DisplayObject width in pixels.

height

Indicates the DisplayObject height in pixels.

blendMode

Indicates the DisplayObject blend mode.

colorTransform

Indicates the DisplayObject color transform.

scale9Grid

MAX_RECURSE

Global max call depth all event dispatchers can recurse.