Loading Raptivity SWF files with Adobe Connect
One of the folks on Raptivity Community asked how to load a Raptivity SWF file in Adobe Connect Pro. Following post shows how to do that.
I have not attached any files and please don't ask me to attach any file. Just follow the steps and everything should be taken care of.
1. Upload your SWF file to any web server. One of the free servers can be Google Sites. Copy the complete path of your SWF. Lets say the path is http://yourserver/yourswfToLoad.swf.
2. Create a SWF file. (Any blank swf file)
3. Now load your movie inside this new SWF you just created by inserting the following script on Frame 1 of your newly created SWF.
3. Now load your movie inside this new SWF you just created by inserting the following script on Frame 1 of your newly created SWF.
//Create an empty MovieClip and use the MovieClipLoader to load your SWFinto it.
var container:MovieClip = createEmptyMovieClip("container", getNextHighestDepth());
container._lockroot = true;
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(this);
mcLoader.loadClip("http://yourserver/yourswfToLoad.swf",container);
function onLoadInit(mc:MovieClip) {
_level0.mainMC.m_room.scaleArea.m_pods.module2.m_thePod.m_imgSwfLoader.m_swfHolder.swf_mc.innerClip._lockroot = true;
}
4. Once done use this file with Adobe Connect.
This resolution can work out for loading any type of SWF files that use _root terminology for accessing the movie content.
NOTE: When your SWF's are on external sites, there's a chance you may need a cross domain policy (basically a crossdomain.xml file) on each of the sites you are trying to load content from. Flash player has security built in that restricts loading content from other sites without this policy in place.
NOTE: When your SWF's are on external sites, there's a chance you may need a cross domain policy (basically a crossdomain.xml file) on each of the sites you are trying to load content from. Flash player has security built in that restricts loading content from other sites without this policy in place.