Hi Justin,
Are you running this test in IE ? IE has a strange behavior where it
can only handle one call into Javascript per frame. I don't think
firefox has this restriction.
Unfortunately, I haven't checked out the Integration kit code, but I
assume that flashProxy.call() issues a callback when the Javascript
method completes? If so, you can chain them together. If not, then I
would queue up the calls and run them once per frame.
Regards,
-Daniel
Justin Peck wrote:
Hello all.
I have checkout out the lastest Flash / JS Integration kit code (via
svn), compiled it, and am running into the following problem:
I have several ActionScript calls (8 total) to a JavaScript function
named doCommand(). These I see and are all received by my JavaScript
function. So far so good...
Now each time the doCommand() function is called, it immediately
issues a call back ActionScript using the FlashProxy object. Listed
below are those eight commands:
flashProxy.call("setCoreChildren","student_id,student_name,lesson_location");
flashProxy.call("setCoreMode","browse");
flashProxy.call("setLessonLocation","");
flashProxy.call("setSuspendData","");
flashProxy.call("setTotalTime","00:00:00");
flashProxy.call("setObjectivesCount","0");
flashProxy.call("setInteractionCount","0");
flashProxy.call("setStudentName","Smith, Jonathan");
In my flash movie, I have each of these methods trace what they
receive, and unfortunately the last ActionScript function
"setStudentName" is the only one being called.
I recall someone posted bug and a fix for this issue, but I wasn't
sure if the fix addressed the problem from ActionScript rapidly
calling JavaScript, or vice versa. Can someone please shed some light
on this? Is there a known issue calling the FlashProxy object
multiple times in rapid succession?
~Justin
------------------------------------------------------------------------
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org