Failed to find fun uniSWF - Api Reference -InteractiveMovieClipBehaviour

InteractiveMovieClipBehaviour


Description

The InteractiveMovieClipBehaviour implements user input functionality for Mouse/Keyboard and Touch devices.

Mouse clicks are converted from camera space to stage space when the user interacts with the movieclip. see MovieClipBehaviour for base functionality.


Functions

Awake

Update

Behaviour update.

setInteractionDebugEnabled


Variables

enableMouse

Set to allow mouse or keyboard interaction.

enableMouseOver

Set mouse over interactions.

multitouch

Enable multiple touch events otherwise the first touch down event will only be used.

enableKeyboard

Set keyboard input enabled

mouseInputCamera

Camera to use for mouse input, defaults to Camera.main or any other camera.


Inherited members

Functions

Awake

OnUpdate

Frame update handler, renders the scene and handles user input etc.

calcOthoScale

Set a pixel perfect scale to render display objects on an orthographic camera.

getDefaultDrawScale

Gets default draw scale

setUri

Set the MovieClip URI.

renderFrame

Renders one frame of the active movieclip and advances the timeline.

OnStart

Behaviour state event.

Update

Behaviour update.

OnUpdate

Update event, called once per frame.

OnDestroy

Internal destroy handler.

OnDestroyBehiavour

Destroy event.

SetState

Set the next state.

SetState

Set the next state with delay.

UpdateSleep

Schedule the next Update() or StateName() update for n seconds from now.

GetStateName

Get the active state name.

IsStateActive

Compare state name to the active one.

GetStateTime

Get the active state run time in seconds.

GetStateTimeMs

Get the active state run time in milliseconds.

RemoveComponent

Remove component by name.

AddComponent

Add component by name


Variables

defaultDrawScale

Default global draw scale to initialise the drawScale .

swf

Set the swf asset name eg.

symbolName

Set the exported symbol name to load from the swf asset file.

gotoAndStopLabel

Set the current frame to the specified label ( editor only update ).

gotoAndStopFrame

Set the current frame to the specified frame ( editor only update ).

billboard

Set the orientation to always look at the main camera.

billboardCamera

Billboard mode camera to use, defaults to Camera.main.

loop

Loop timeline.

flipY

Flip the Y coordinates, usefull for handling coordinate between flash and uniSWF.

drawScale

Draw scale sets the stage scale.

editorPreview

Enable live editor preview.

blendMode

Set the blendmode.

fps

Target framerate to render the MovieClip timeline.

colorTransform

Stage color transform.

staticRemoveOnStart

Static object will render on Awake then remove on the first Update.

movieClip

Active MovieClip player instance.

stage

Active Stage instance.

gfxGenerator

Active mesh generator.

currentFrame

Get or set the current frame on the active MovieClip's timeline.

zDrawDisplayObjectSpace

Get or set the depth spacing of each DisplayObject.

zDrawDisplayObjectContainerSpace

Get or set the depth spacing of each DisplayObjectContainer.

userData

Associate user data with this behaviour.