Difference between revisions of "MovieClip.new"

From GiderosMobile
(typo)
Line 3: Line 3:
 
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
 
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/MovieClip|MovieClip]]<br/>
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/MovieClip|MovieClip]]<br/>
 +
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
<translate><br />
+
Creates a new [[Special:MyLanguage/MovieClip|MovieClip]] object. After constructing the MovieClip object, it starts playing. You don't need to call [[MovieClip:play]].
Creates a new [[Special:MyLanguage/MovieClip|MovieClip]] object. After constructing the MovieClip object, it starts playing. You don&#039;t need to<br />
 
call [[MovieClip:play]].<br />
 
<br /></translate>
 
 
<source lang="lua">
 
<source lang="lua">
MovieClip.new(timeline)
+
MovieClip.new{timeline} -- *PLEASE NOTICE THE BRACKETS { } INSTEAD OF ( )*
 
</source>
 
</source>
 +
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===
 
'''timeline''': (table) <translate>array of timeline elements</translate> <br/>
 
'''timeline''': (table) <translate>array of timeline elements</translate> <br/>
  
 
{{MovieClip}}
 
{{MovieClip}}

Revision as of 10:15, 2 April 2020


Available since: Gideros 2011.6
Class: MovieClip

Description

Creates a new MovieClip object. After constructing the MovieClip object, it starts playing. You don't need to call MovieClip:play.

MovieClip.new{timeline} -- *PLEASE NOTICE THE BRACKETS { } INSTEAD OF ( )*

Parameters

timeline: (table) array of timeline elements