Hi Stefan,
the rendering process is done asynchronously. So you can't not directly
access the flash movie in your example, because it is not rendered when
you try to access the flash method.
Please do this for example in the "apper" event:
flashObj.addListener("appear", function(e) {
flashObj.Print();
flashObj.GotoFrame(2);
}, this);
Cheers,
Chris
Am 31.07.2010 00:20, schrieb Stefan Andersson:
I have tried to get the
The embedded name is flashxx
var m;
if (navigator.appName.indexOf ("Microsoft") !=-1) {
m = window["flashxx"];
} else {
m = document["flashxx"];
}
then I want to access the methods of Flash:
m.Print();
m.GotoFrame(2);
etc
In qooxdoo I try the "sun" example demo and modify it:
flashObj.getContentElement().setAttribute("name", "flashxx");
flashObj.getContentElement().Print();
flashObj.getContentElement().GotoFrame(2);
etc
var val = flashObj.getFlashElement();
which always gives null. Should it be null?
Now I do not know how to access these methods! Someone can help me
with that?
I want to control the Flash from outside Flash by scripting in
javascript inside qooxdoo.
Stefan
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel