dynamic flash using ssp director
hey thanks.. imagemagick and todd dominey..who actually did all of the really hard work on this one.. dominey knows what he’s doing.. smart move licensing director per domain..it’s worth it..i’ll gladly pay for it…. and i can customize and use it now pretty seamlessly..almost anywhere to manage video, audio, text, html, and imagery.. including the entire layout and dynamic text /html with css attached inside of flash based pages…. which i would embed in this page (click image above for files) but it seams that kimili flash embed won’t support (bc the swf is dependent on other imported .swfs) an absolute src path from a url that is dynamic.. as this one is generated….. i’ll have to work on this in the near future.. i’m just glad that i can now begin to build so many more dynamic sites using director to manage the media files, layout and text in swfs.
i’ll add more parameters to it.. as i use it for other projects.. and thks in particular for the original array goes to Shannon Jensen a talented photographer as well.
//modified from ssp user forums. http://slideshowpro.net by http://davidawindham.com
var totalImgs:Number;
var currentImgNumber:Number;
var theArr:Array;
var menublisten:Object = new Object;
menublisten.galleryData = function(eventObject):Void {
theArr = eventObject.data;
var menu_mc:MovieClip = _root.createEmptyMovieClip("menu_mc",350);
var nexty:Number = 0;
for (i=0; i<thearr.length; i++)="" {="" var="" mb:movieclip="menu_mc.attachMovie("mb","mb_"+i,50+i," {_x:0,_y:nexty});="" mb.txt.text="theArr[i][0].title;" nexty="" +="mb._height;" mb.onrelease="function()" albumnum:number="Number(this._name.split("_")[1]);" ssp1.loadalbum(albumnum);="" sspt1.loadalbum(albumnum);="" }="" ssp1.addeventlistener("gallerydata",="" ssplistener);="" adata="new" object();="" adata.onalbumdata="function(eventObject):Void" t_txt.html="true;" t_txt.htmltext="eventObject.data.title;" t2_txt.html="true;" t2_txt.htmltext="eventObject.data.description;" totalimgs="eventObject.data.totalImages;" ssp1.addeventlistener("onalbumdata",="" adata);="" sspt1.addeventlistener("onalbumdata",="" idata="new" idata.onimagedata="function(eventObject):Void" t3_txt.html="true;" t3_txt.htmltext="eventObject.data.caption;" t4_txt.html="true;" t4_txt.htmltext="eventObject.data.title;" currentimgnumber="eventObject.data.number;" ssp1.addeventlistener("onimagedata",="" idata);="" sspt1.addeventlistener("onimagedata",="" function="" nextimage()="" if="" (currentimgnumber="" <="" totalimgs)="" ssp1.nextimage();="" sspt1.nextimage();="" else="" ssp1.loadimagenumber(0);="" sspt1.loadimagenumber(0);="" previmage()="">= 2) {
ssp1.previousImage();
sspt1.previousImage();
} else {
ssp1.loadImageNumber(totalImgs-1);
sspt1.loadImageNumber(totalImgs-1);
}
}
nextImage_bttn.onRelease = function() {
nextImage();
}
nextImage_bttn2.onRelease = function() {
nextImage();
}
prevImage_bttn.onRelease = function() {
prevImage();
}
var stylie:TextField.StyleSheet = new TextField.StyleSheet();
stylie.onLoad = function(success:Boolean) {
if (success) {
//nada
}
};
stylie.load("stylie.css");
t2_txt.styleSheet = stylie;
stop();
</thearr.length;>