PDA

View Full Version : Where can we summon the MMExecute?


str3ber
08-21-2007, 09:28 AM
Hi!

I have read a lot about the MMExecute command and as I understand it you can't just create a new .fla and in frame 1 try to execute a jsfl-file. That makes sense since jsfl is doing its magic within the IDE. I have seen examples where MMExecute is used with WindowSWF and it makes sense. But as I am developing a component and try to figure out how to list all the current embedded fonts in the library, the windowSWF-feature is not really helping.

My thought was to try to use the MMExecute in the draw-method for my component since it is executed in the IDE. But that does not seem to work..

So exactly where and when can you use the MMExecute command?

jjbilly
09-24-2007, 04:15 PM
as you say, in the windowSWF; it looks like you probably need to use a command here instead. One of the limitations of JSFL that irritates is that you can't watch for events in the IDE - I'm guessing you'd like to do this, so that you can run your command when a components parameters get changed on the screen? In that case, perhaps you should look at using a windowSWF to configure your component. (though won't catch things like a user dragging to resize).

hangalot
09-28-2007, 04:34 PM
no events (even now) sucky. but you can poll, there is a bug with doing this using the selection object/
http://www.lennel.org/blog/2006/02/26/bug-in-jsfl-using-selection-object/

jjbilly
10-01-2007, 11:52 AM
In fact, polling seems even more generally buggy - frequent polling with Flash open a long time seems to cause Flash (on Windows) to carve out more and more resource for itself. We've never quite pinned it down any better than that...

hangalot
10-01-2007, 02:16 PM
jsfl sucks behind. its a great pitty. one of the reasons i like flex so much, i can truly automate processes

jjbilly
10-01-2007, 04:03 PM
Good - I think I'm finally going to get a chance to have a look.