User swf and iSpring swf communication?
Author | Message |
I have a Flash drag and drop that I created (AS2) and placed on a PowerPoint slide. Is there a way for my Flash exercise to let the iSpring swf know when the exercise has been completed so that the slide can either autoadvance to the next slide or I can display a "Click to continue" message via the PPT slide?
|
There is no any documented way to let the embedded SWF object to communicate with the presentation player. Code: function findPlayer(mc:MovieClip):Object
{ var p:MovieClip = mc; do { mc = p; if ( (mc.getPlayer != undefined) && (typeof(mc.getPlayer) == "function") ) { return mc.getPlayer(); } var p:MovieClip = mc._parent; }while(p != mc); return null; } // this function is called when user releases mouse on mc1 MovieClip mc1.onRelease = function() { findPlayer(this._parent).getPlaybackController().gotoNextSlide(); }
|
Thank you -- this is very helpful!
|
||||
|
Who is online | |
---|---|
![]() |
In total there are 11 users online :: 2 registered, 0 hidden and 9 guests (based on users active over the past 5 minutes) Most users ever online was 803 on Sat Dec 12, 2020 9:21 am Registered users: Baidu [Spider], Bing [Bot] |