Hello Everyone,

I need help building a template that loads multiple sub swfs and multile dynamic text. Currently I was able to create a preloading swfs that contains 1 dynamic text and loads several subswfs.

import flash.events.Event;
import demo feed url.CMComponent;
import demo feed url.SearchUtil;
import demo feed url.GraphicLoader;
import com.Joe.Resizer;

/*var parameters:Object = {};
parameters.configUrl = "URL Subswfs";
parameters.defaultImgUrl = "";
parameters.defaultImgClickUrl = "";
parameters.debugDC = false;*/


var DynamicElements:Object = {
"Product" : {"swfs" : [swfs]},"dynamictxt" : {"dynamictxt" : [dynamictxt]}};

var C:CMComponent;
C = new CMComponent(DynamicElements, loaderInfo.parameters, this, false, false);


C.addEventListener(CMComponent.ENDED, go);
C.init();


function go(e:Event)
{
Resizer.decreaseFontSize(msg.msg1, C.getText("dynamictxt"), true);
image.setURL(C.getImg("swfs"), false);

image.addEventListener(GraphicLoader.ENDED, startAnimation);
}

function startAnimation(e:Event):void
{
white.visible = false;
play();
}

stop();

Above is the script I use and it works loading several sub swf and 1 dynamic text. Also this is a feed template to test out the banner ad. The problem is loading several subswfs on this template that are different from each other (animation timeline, dynamic text position on the ad). Both the sub swfs and dynamic text will come from the client so they randomly change. How do I build a MASTER template with several dynamic text that positions exactly on a specific sub swf that changes randomly.


Much appreciate any input on this Thanks

Please note I have little knowledge on AS3 and very much still a beginner.