Not sure that's true, but never tried. If you're moving to classes, you should consider moving code off the timeline. Add your movie clip to a document class - call the function in there. I think people who try and do a hybrid mix of timeline and class coding are only asking for headaches. Pick one or the other if you can.
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: [email protected] [mailto:[email protected]] On Behalf Of natalia Vikhtinskaya Sent: Friday, September 10, 2010 10:04 AM To: Flash Coders List Subject: Re: [Flashcoders] Get function problem 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 <[email protected]>: > 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: [email protected] > [mailto:[email protected]] 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 > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

