Yes it is just a typo in email. It is not a class. It is mc in library. In AS2 we just attach it to any mc on timeline and can call any function in it. I try convert AS2 file to AS3 without writing classes. But I found this problem.
2010/9/10 Merrill, Jason <jason.merr...@bankofamerica.com>: > Maybe because you declared your function as "statVideo" in the class and > you're trying to call "startVideo" from the timeline. If that was just > a typo in your e-mail, and not the case in your project, then be sure > your function is declared public. Other than that, you've done it right > so must be something else you've done in your setup we don't know about. > > > > Jason Merrill > > Instructional Technology Architect > Bank of America Global Learning > > Join the Bank of America Flash Platform Community and visit our > Instructional Technology Design Blog > (Note: these resources are only available for Bank of America > associates) > > > > > > -----Original Message----- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of natalia > Vikhtinskaya > Sent: Friday, September 10, 2010 5:17 AM > To: Flash Coders List > Subject: [Flashcoders] Get function problem > > AS3. I have linked mc with name videoPanel in library. This mc has > function statVideo() on his own timeline frame; > > Then on main timeline I have code > theVideo=new videoPanel(); > panelItem.addChild(theVideo); > and I want to play function startVideo, so > > theVideo.startVideo(); > > but that gives me error > TypeError: Error #1006: startVideo is not a function. > I can get any variables in theVideo but I can not get function. How to > solve this problem in this situation? > > Thanks in advance. > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders