Author Message

Posted: Wed Aug 22, 2007 4:16 am   Post subject: Steps in a slide

Is there any way to find out how many steps are in a current slide in the client API?


Profile profile test

Posted: Wed Aug 22, 2007 4:54 am   Post subject: Problem expounded

Here's the code that I'm having a problem with:


Code:
var temp0:IPresentationInfo = g_playerAPI.getPresentationInfo();
var temp1:ISlidesCollection = temp0.getSlides();
var temp2:ISlideInfo = temp1.getSlideInfo(g_controller.getCurrentSlideIndex());
var temp3:IAnimationSteps = temp2.getAnimationSteps();
var numOfSteps = temp3.getStepsCount();


Profile profile test

Posted: Wed Aug 22, 2007 4:57 am   Post subject: Re: Steps in a slide

Follower46 wrote:
Is there any way to find out how many steps are in a current slide in the client API?


Sure.
Here is an example.

=========================
import fsplayer.api.*;

// get player from the loaded presentation
var p:IPlayer = presentationMC.getPlayer();

// get current slide index
var currentSlideIndex:Number = p.getPlaybackController().getCurrentSlideIndex();

// get current slide
var curSlide:ISlideInfo = p.getPresentationInfo().getSlides().getSlideInfo(currentSlideIndex);

// get animation steps of the current slide
var curSlideSteps:IAnimationSteps = curSlide.getAnimationSteps();

// get steps count
var currentSlideStepsCount:Number = curSlideSteps.getStepsCount();
=========================


Profile profile test WWW www ICQ ICQ

Posted: Wed Aug 22, 2007 5:09 am   Post subject: Re: Problem expounded

Follower46 wrote:
Here's the code that I'm having a problem with:


Code:
var temp0:IPresentationInfo = g_playerAPI.getPresentationInfo();
var temp1:ISlidesCollection = temp0.getSlides();
var temp2:ISlideInfo = temp1.getSlideInfo(g_controller.getCurrentSlideIndex());
var temp3:IAnimationSteps = temp2.getAnimationSteps();
var numOfSteps = temp3.getStepsCount();


Make sure the presentation was generated by FlashSpring Ultra or FlashSpring server. Only these products produce Flash clips with an ActionScript API.

Make sure g_playerAPI is not undefined, i.e. the portion of the Flash clip containing the player has been loaded.

Make sure g_playerAPI.isInitialized() returns true. Presentation info and playback controller are unavailable until playerAPI has been initialized.

You can find an example illustrating animation steps navigation here:

C:\Program Files\FlashSpring Ultra 2\samples\samples\flash-player-samples\step_navigation.fla


Profile profile test WWW www ICQ ICQ

Posted: Thu Apr 23, 2015 8:34 am   Post subject: Re: Steps in a slide

hello, has the javascript sample code of this?


Profile profile test

Posted: Fri May 01, 2015 4:17 pm   Post subject: Re: Steps in a slide

Hello Ynvince.
You can get the javascript code of the animation steps in slide with iSpring Suite DX that has the documentaion inside the package.
The steps can be as follows:
1. convert the presentation with iSprig Suite DX
2. find the code in the following loctaion:
player-->view-->Playback controller-->current slide-->animation steps-->count


Profile profile test
Display posts from previous:  Sort by  

  


Who is online
Who is online In total there are 9 users online :: 2 registered, 0 hidden and 7 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]


cron