I found that AS3 does not allow tocall function from timeline if this function is inside MovieClip placed on the stage. Is there any other way to do that?
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