Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sound/ff/rew/question

Status
Not open for further replies.

manfishj

Programmer
May 30, 2002
44
US
I've got a question. I'm making a flash movie with many pages. I have each page saved as a movie clip. Within each of these movie clips, there is a narration sound file.
Up until now, I have had ff and rew buttons in each of these movie clips that go to the "_currentframe + 20" or"_currentframe - 20" in order to navigate through the sound.

My question is...is it possible to have these ff and rew buttons on the main timeline that would navigate within the movieclip that is currently playing. This way, I would only have to write one script as opposed to 50.
 
hei manfishj,

sure that would work. just give the mc an instance name on the main timeline. then you'll be able too address them with dot-syntax.

_root.InstanceName._currentframe + 20

adrian
 
Thanks, but for some reason it's not working. I gave the movie clip an instance name of "slide1". I put the ff button on the main timeline, with the following action:

on (release) {
_root.slide1.gotoAndPlay( _currentframe + 20);
}


When I test it, the ff button just brings the audio back to the beginning. When I take away the "gotoAndPlay", the ff button doesn't do anything. Any other ideas?

manfishj
 
hm.

maybe you want to trace the currentframe?! if you don't figure it out, can you post the fla-file somewhere?
adrian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top