OZONE Asylum
Forums
Multimedia/Animation
Flash Question pertaning to sound actions
This page's ID:
11267
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Yeah, no problem. I'll tell you what's the problem - getting the sound to start again when the remote closes. :( I did this for a friend recently. He wanted to show some multimedia projects he had done with school kids. The main movie had a soundtrack, but some thumbnails open windows with quicktime movies with their own soundtrack. I had to stop the main sound so it didn't interefere. I hoped to do something slick with javascript and on.focus(), on.blur() kind of things - stop the music when the main window loses focus, start it again when the main window regains focus. But ... for a variety or feasons (chief being that Mac IE5 doesn't take javascript chatter very gracefully from Flash) I needed a workaround. Here's the basis for what I did. This is a simplification, but you'll hopefully make it fit your situation. I have 2 frames in the main movie. Frame one has a stop() action, and a button with script saying (in pseudocode): on(release) {stop the sound, open the popup, and go to and stop frame 2} Go it? Okay, what's tricky about frame 2 of the main movie? Frame 2 had a giant, invisible button covering pretty much the whole move (with holes for whatever other buttons you need to stay "live"). This button has a script that says something like: on (rollOver){start the sound up again, go to and stop on frame 1} So the sequence goes like this: you click a button. The main sound stops, the movie advances a frame, the new window pops up; You close the pop up, you can't avoid rolling over the big button, the sounds start again and the movie rolls backward one frame. Is that clear? It's a wonky approach, but it worked for me.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »