Loading local SWF might not be working because of Security Sandbox. Try giving the permission to your main to load SWFs from context-menu of Flash Player.
Context-menu > Settings > <first tab> Advanced
It would show advanced settings manager from macromedia.com, from there you can the directory.
Though, I expect somebody would confirm this. You can also try reading the security white paper for Flash Player 8 here: http://www.macromedia.com/devnet/flashplayer/articles/flash_player_8_security.pdf
Things might be different in Macromedia Flash Player 8.5, so information in above white paper might not totally apply.
As far as embedding swfs is concerned, I think that should work. I don't remember the exact syntax, but if you do quick search to this mailing-list archive, I am sure you would find the exact syntax. Roger has replied many such queries.
A quick search gave me following results:
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg20285.html
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg20239.html
Hope that helps...
BTW! Are you Bruce Eckel of Mindview.net?
-abdul
On 2/28/06, Bruce Eckel <[EMAIL PROTECTED]> wrote:
I'm creating an app that displays SWF "slides" and plays MP3 files associated with those slides. When I create this application under Flexbuilder, at runtime it opens the external SWF slide files and plays the MP3 files just fine. But when I move the application to a different directory (containing the expected SWFs and MP3s) I get a runtime error complaining about loading the SWF files. Even stranger is the fact that the security message is only complaining about loading SWF files from the local directory. When I comment out the SWF file loading, it's perfectly happy to load MP3 files from the local directory.
I've tried a number of experiments, including copying the SWF file from the directory where flexbuilder creates it (where it works) to a different directory (where it pops up a security message).
I don't know if this is expected behavior or a bug, but if it is expected behavior then I think I could solve it if I can compile the SWF files into the app instead of having them as separate files, but I don't know how to do that (and note my previous message about an apparent bug in the @Embed command).I'd be perfectly happy to compile the external SWF slides directly into the application as some kind of array of images (thus solving the access problem), but so far I haven't been able to figure out how to do that. Any hints would be greatly appreciated.
--
Bruce Eckel
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service .
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.