I have an example on my forum, which I dragged from my library at design time. This example links to a custom class that argues the constructor.
Package {import flash.display.MovieClip; Import Flash. Media. Sound; Public category Pianoki extends movie clips {var Note: Sound; Public Function Pianoki (note: sound) {this.note = note; }}}
Obviously, trying to run the code, the following argument number error occurs:
ArgumentError: error # 1063: logic count On the mismatch pianako (required), found 1, 0.
Is there any way that has been manually dragged to the stage?
this can help you just need a little change in custom class
package {import flash.display.MovieClip; Import Flash. Media. Sound; Public category Pianoki extends movie clips {var Note: Sound; Public Function Pianoki (note: sound = zero) {if (note! = Null) {this.note = note; }}}}
Comments
Post a Comment