Author Message

Posted: Fri Nov 13, 2009 6:37 pm   Post subject: User swf and iSpring swf communication?

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?


Profile profile test

Posted: Mon Nov 16, 2009 8:12 am   Post subject: Re: User swf and iSpring swf communication?

There is no any documented way to let the embedded SWF object to communicate with the presentation player.

However the following way does work (it requires iSpring Presenter or iSpring SDK and will not work with iSpring Free or iSpring Pro):

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();
}


Profile profile test WWW www ICQ ICQ

Posted: Mon Nov 16, 2009 4:14 pm   Post subject: Re: User swf and iSpring swf communication?

Thank you -- this is very helpful!


Profile profile test
Display posts from previous:  Sort by  

  


Who is online
Who is online In total there are 7 users online :: 2 registered, 0 hidden and 5 guests (based on users active over the past 5 minutes)
Most users ever online was 108 on Thu Nov 21, 2013 3:41 pm

Registered users: Bing [Bot], Yahoo [Bot]