Forum Moderators: open

Message Too Old, No Replies

Slide presentation (how to display dynamic text)

simple question

         

chejnik

4:31 pm on Aug 24, 2004 (gmt 0)

10+ Year Member


Hello,
I use slide presentation. The fact is that it does not show on which page the user is. I would like to put a dynamic text to each slide form which can display the number of page. I hope the dynamic text can take some variable from the slide itself. But I do not know.
The Action Script confuse me a lot. Thank you

glaze

2:27 am on Aug 25, 2004 (gmt 0)

10+ Year Member



Here's how I would do it:

1. Create a dynamic textbox. Set the font properties you want.

2. While still selecting the dynamic textbox look in the Properties panel for Var. In this field type: frameNumber

This text box will where your page number is displayed.

3. On the first frame of slide one place this:
frameNumber = "1"

For the first frame of your second slide type
frameNumber = "2"

etc.

Does that make sense?

chejnik

4:08 pm on Aug 26, 2004 (gmt 0)

10+ Year Member



I think, that the step with the dynamic text, and the var field (num_SLIDE) is OK.
But next step should be like - get some information on the slide (the order, the name etc.) and put it to the variable num_SLIDE
- then refresh the slide (maybe, I do not know).
Does this make sense? Do you know how to do it? Thank you

chejnik

7:32 am on Aug 28, 2004 (gmt 0)

10+ Year Member



Hello, here it is...
on (revealChild){
pepa2_txt.text =(_level0.main.currentSlide.indexInParentSlide+1)+"/"+(_level0.main.numChildScreens)

}

pepa2_txt is a name of a dynamic text placed on main
main is a name of the main, first screen
remember to place _txt after the field for text