Documentation ¶
Index ¶
- Variables
- func CallEventFuncs(w screen.Window, eventFuncs *ClipFuncs)
- func InitClips(events *ClipFuncs) bool
- func MainLoop(w screen.Window, eventFuncs *ClipFuncs) bool
- type ClipFuncs
- type EventID
- type MovieClip
- func (this MovieClip) AttachMovie(id string, name string, depth int) *MovieClip
- func (this MovieClip) CreateEmptyMovieClip(instanceName string, depth int) *MovieClip
- func (this MovieClip) GetChild(childIndex int) *MovieClip
- func (this MovieClip) NextFrame()
- func (this MovieClip) PassEventCallToChildren(event EventID, data any) (bool, bool)
- type MovieClipIface
Constants ¶
This section is empty.
Variables ¶
View Source
var Root = MovieClip{ Children: []MovieClip{}, Events: ClipFuncs{}, }
Root clip
View Source
var Successful = true
Functions ¶
func CallEventFuncs ¶
Types ¶
type ClipFuncs ¶
type ClipFuncs struct { OnData func() OnDragOut func() OnDragOver func() OnEnterFrame func() (bool, bool) OnKeyDown func() OnKeyUp func() OnKillFocus func(newFocus any) OnLoad func() OnMouseDown func() OnMouseMove func() OnMouseUp func() OnPress func() OnRelease func() OnReleaseOutside func() OnRollOut func() OnRollOver func() OnSetFocus func() OnUnload func() }
holds clip events, for convienence
type MovieClip ¶
type MovieClip struct { Children []MovieClip Events ClipFuncs InstanceName string Depth int // contains filtered or unexported fields }
MovieClip struct, do not create this yourself, instead use (MovieClip).CreateEmptyMovieClip
func (MovieClip) AttachMovie ¶
func (MovieClip) CreateEmptyMovieClip ¶
Creates an empty movie clip as a child of the current clip. Returns pointer to created clip. P.S. Yes, I know, you aren't supposed to use "this" as a reciever, but I'm trying to remain as close to the original flash version as possible
type MovieClipIface ¶
type MovieClipIface interface { CreateEmptyMovieClip() GetChild() NextFrame() PassEventCallToChildren() }
Interface for movieclips
Click to show internal directories.
Click to hide internal directories.