TwelvestoneFlash

Control the timeline and sounds of a loaded SWF


Sign in

  • Waiting for Godot ( 720 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 4.8 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.8 k posts )
    general front end design an...
  • Back End ( 9.6 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
DontBogartMe
 
2007-11-08

this is all a bit new to me and I'm getting a bit confused and stuck.

I'm building a SWF that serves as a player for Flash animations. Not scripted animations, plain Jane timeline anims.

TURN YOUR SPEAKERS DOWN LOW (NOT OFF) BEFORE TRYING THESE!

Mediaplayer for SWFs That should give you an idea of what I'm trying to do. Currently it's loading in a SWF with an MP3 on the timeline - sorry, it gets very annoying to listen to very quickly.

That version is attempting to control the Sound, although it's failing and you can easily get multiple sound tracks overlapping each other.

Here's another version of the same player SWF, but without any use of the Sound object - just to compare results: NO SOUND CONTROL BE WARNED - it plays the tune immediately and you can't turn it off!

Can someone give me a quick low down on how to approach this?

JLM
 
2007-11-08

not sure you can usually use sound connected to _root to control all sounds?

sort of totally guessing

rewind_btn.onRelease=function(){ stopAllSounds(); noise = new Sound(_root); noise.Stop(); content_mc.gotoAndPlay(1); content_mc.onEnterFrame=function(){ if( this.currentframe==1 ){ noise.setVolume(currentVolume); delete this.onEnterFrame; } } }

Off to the denist soon, but if you fire me over some stuff I can have a look as I have day off today.

Justin

DontBogartMe
 
2007-11-08

yep I can control the volume on the whole movie, that's no problem,

The real problem is how to make it work so I can use the FFWD and RWD buttons and the seek bar to move the playhead around in the SWF, and how to keep the sound track in synch with that movement.

Storm
 
2007-11-08

The sound has to be set to stream to have any hope in hell of keeping the soundtrack in sync. Are you loading the sound in the loaded animation or are you putting it right on the timeline?

DontBogartMe
 
2007-11-08

right on the timeline

DontBogartMe
 
2007-11-08

Originally posted by: Storm The sound has to be set to stream

... I've had a dig around the options and found the Synch: Stream option in the Properties panel - that's made a world of difference to it!

Got some control over it now I think

.

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

Control the timeline and sounds of a loaded SWF