Share Posted October 4, 2010 I have a preloader SWF that loads in main.swf and sounds.swf via LoaderMax. I would like main to have access to the sounds in the library of sounds.swf. I know that I can use the MP3Loader, but I need to work within the current framework of the project that has all of the sounds in the main library. Any idea how I can easily access a sound class in one SWF from another? (Both being loaded in with LoaderMax) Thanks! Shane Link to comment Share on other sites More sharing options...
Share Posted October 4, 2010 You can get any class from within the subloaded swf using SWFLoader's getClass() method (assuming you didn't run into any security errors while loading, like from another domain with no crossdomain.xml in place). See the ASDocs for details. http://www.greensock.com/as/docs/tween/_loadermax.html Link to comment Share on other sites More sharing options...
Author Share Posted October 5, 2010 Great, thanks Jack! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now