This content has been marked as final. Show 5 replies
Flash does not dispatch any events when it reaches its last frame. I'm going to assume that the SWFs cannot be rewritten. What I suggest is writing one more Flash 8 SWF. This one would use LocalConnection to communicate with Flex (there's an article about this on my blog, just search for LocalConnection). This new SWF would also load all of the other SWFs and monitor their running. When it completes, use LocalConnection to tell the Flex SWF that the movie had completed. Flex could then communicate back when it was time to load another SWF.
I'm sure there are some other ways to do this, but that's what comes off the top of my head.
Thanks for the information. I think I have ready your post about it few hours back. and it did make sense to me. I also read similar thing written on weblycan. I see what you are saying and thanks for the idea.
But, if you don't mind... I've another question; you said we can load existing Flash8 movie into newly created Flash8 movie and the newly created Flash8 movie will do all the communication. Then why can't we just add that "communication" part of code to the existing movies? That ways each movie, now, can communicate with Flex on it's own. Isn't that it? Or am I missing something?
In my earlier reply I said I was under the assumption that you cannot change the SWFs. If you can change the SWFs, then put the LocalConnection code in them.
My bad. I did read it, but I was assuming that when you said "modifying existing SWF" you were saying "modifying them in AS3 or Flash9" or something. And now, that doesn't sound right in my head...
Anyway, thanks for the guidence.
I'm sure this is going to solve our problem.
If you get a chance, you'll find that Flash CS3 integrates smoothly with Flex 2 so you might want to explore that for the future.