Skip to main content
Participant
June 12, 2009
Question

Number of total frames of a slide

  • June 12, 2009
  • 2 replies
  • 1231 views

Hi Guys,

I work with Captivate 3 and I need to know from Flash the number of total frames of current slide.

I saw here http://pipwerks.com/journal/2009/05/16/captivate-4-variables-gone-wild/ that there are these system variables:

rdinfoCurrentFramestring1Returns the number of the current frame (NOT slide), counting from the beginning of the movie's timeline.

rdinfoFrameCountstring2889Returns the number of frames in the entire SWF.

but it's not that I'm searching.

Thanks in advance for help.

Daniela Remogna

This topic has been closed for replies.

2 replies

Participating Frequently
June 12, 2009

Hi Daniela,

Use this to get the total fromes of the current slide if you are directly loading main swf

captivateSwf.movie.getCurrentSlideData().m_rdSlide_mc._totalframes;

//captivateSwf is the reference to captivate main swf ( not skin swf )

If you are having Skin swf too, use this,

cpSkinSwf.cpSkinLoader_mc.movie.getCurrentSlideData().m_rdSlide_mc._totalframes;

//captivateSkinSwf is the reference to captivate skin swf

Hope this helps,

Ravi Kishore.

Inspiring
June 14, 2009

Hi Ravi,

Interesting..

Is it possible that you could provide a list of other variables / properties that you are able to get like this?

The variable you posted here is not listed anywhere in the official lists or documentation so it would be great to know what else is possible to do.

/Michael


Click here to visit the www.captivate4.com blog

Inspiring
June 12, 2009

You can't get the total frames per slide from a variable unfortunately. As you found yourself you are only able to get the current frame and the total amount of frames for the entire project.

/Michael


Click here to visit the www.captivate4.com blog