Quote:
Originally Posted by julianboolean
You could call a function on the main timeline from an AS3 class instance, especially from a document class, or from other class instances in certain circumstances. But why would you want to put any code on the timeline if you want to go the OOP way? By the way, where does the ON_FINISH event you mentioned come from? Is it a custom vimeo event?
|
Ok ok got it, it is a vimeo custom event and I finally found the code in their docs.
ActionScript Code:
vimeoPlayer.addEventListener('finish', finishFunction, true, 0, true);
Sorry for the confusion, a lack of knowledge of classes and vimeo combined really threw me. And thanks for the link to q-trax, OOP is starting to make more sense to me but I'm still confused about some things related and that example seems like much more syntax and parts than should be necessary to do what it does.
Still I do though see the value of external classes, but I also yet to see why I shouldn't at all have any code on the timeline. I like having that as my home base. But maybe one day I'll see the light?
Thanks for the help.