video size
Is SM2 capable of playing flash files? Aka *.swf?
I was looking for a solution to control sound in flash files from javascript. Apperntly I can't use native library's Sound object due to security restrictions therefore I started investigating the problem and bumped into the SM2.
Any help appreciated.
Thanks,
Rod
I was looking for a solution to control sound in flash files from javascript. Apperntly I can't use native library's Sound object due to security restrictions therefore I started investigating the problem and bumped into the SM2.
Any help appreciated.
Thanks,
Rod
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?I don't believe there's a simple way to load and play SWF files as they can contain 0, 1 or multiple sound resources (?). There may be a "SWF Audio" (audio-only?) file container format, but I'm not familiar with the details.
Flash 8's sound object may only load MP3 files, no WAV or anything else; it's possible Flash 9 may allow for more formats, though I've only seen MP3 and MP4/MovieStar (AAC) audio in Adobe's documentation.
-
Inappropriate?So there is no way to adjust the volume of the flash movies (stored locally) from Javascript?
P.S. Named topic falsely by mistake.
I’m curious
-
Inappropriate?SM2 can't load SWF audio movies as far as I'm aware, but you can load and control the volume of MP3 and MP4/AAC sounds.
eg.
var mySound = soundManager.createSound('aSound','/path/to/an.mp3');
mySound.setVolume(50):
If you just have one or two movies which you're editing in the flash IDE (or AS2/3 code), that's a discussion outside of the scope of this forum - but basically you'd want to look at ExternalInterface, and allowing Flash to talk to JS (and JS to flash) - and you'd set up a function in your Flash movie that would allow it to be called from JS.
-
Inappropriate?Hey Scott,
Thanks for the reply.
I don't have access to the flash movies though. I have javascript that loads them via native api. That's pretty much about it. I need to implement the ability to load flash movie with predetermined sound volume.
I thought I could do it with SM2 however turns out that it's not a case.
Anyways thanks and all the best.
I’m frustrated
1 person says
this answers the question
-
Yeah, you can't load and control SWFs (to the best of my knowledge) unless they have some sort of API themselves that allows for volume control.
Loading Profile...



EMPLOYEE