javascript - Dynamically load _gallery_ (not album) in SlideShowPro using SWFObject -
i have been successful in dynamically loading album in ssp before, using ssp standalone. did this:
var flashvars = { xmlfilepath: "http://site.com/ssp_director/images.php?album=5" }
what i'm looking now, though, dynamically load gallery when page loads, using text entered in javascript, or flashvars i'd assume. i'm using actionscript 3 this, i'm not sure if have ssp instance in flash. i'm not as3, following advice or tutorials can muster. i'm using ssp director, gallery xml urls similar above in example code.
i'd elated if possible, otherwise have find alternative solution. help!
reading flashvars
in as3 not simple used in as2. here's code this:
import flash.display.loaderinfo; var fvars = loaderinfo(this.root.loaderinfo).parameters; var xmlfilepath="http://site.com/ssp_director/images.php?album="+fvars.albumid;
assuming you'll have flashvars
variable named albumid
passed in object/embed
tag.
Comments
Post a Comment