MochiKit will not help you as such. What you are talking about is creating a Flash movie which registers a couple of callbacks (using ExternalInterface.addCallback) and then calling those callbacks from JavaScript, right? It will all depend on how you create the Flash, you will only be able to call the callbacks you have registered, so what you can do with it is completely up to you. MochiKit will not help you to reach into the Flash movie and call arbitrary methods.
aflax seems to be more or less a canvas implementation, but all the code that makes the drawing possible is inside the Flash applications, which then exposes some callbacks which can be used to draw. What you can use MochiKit for is to build a wrapper library on top of the Flash app to do some logic on the outside, but depending on you preferences, the logic may just as well be inside the app. If I would create something like what I think you're talking about I would try to keep as much logic inside the Flash app, keeping the JavaScript code to a minimum. The reason behind that is that the ActionScript code will run exactly the same regardless of browser, whereas an implementation more in JavaScript would require browser awareness, which sucks, basically. I'm not really sure what you're asking, did any of this help, or even make sense for you? aflax seems to be what you want, so why not use that? yours, T# On Feb 17, 8:38 am, iain duncan <[EMAIL PROTECTED]> wrote: > Sorry if this is kind of general for this list, but seems one gets good > javascript answers here. Is there a smart way to use Mochikit to remote > control flash movies? And, more specifically, what would be the lowest > latency method to do so? I have looked at aflax a bit and Bob mentions > flashticle on his blog. > > Specifically, I would like to know the best way to make simple elements > with a flash frame ( moving balls specifically ) move with their > location controlled by data from a server in real time. I'm not sure > where to start, as I'm totally new to flash, but I would prefer to keep > as much usable with mochikit as possible. > > Pointers to best resources much appreciated too! =) > > Thanks, > Iain --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---
