Dynamic FLV content path
i'm displaying flash video (instance name = vid) through movie clip (instance name = top) in fla actionscript:
top.vid.contentpath = "0207.flv";
it works fine. need figure out how make content path dynamic. variable added swf's parent html file this:
<param name="movie" value="test.swf?videodate=0207" />
the goal make swf file can play flv file based on value of videodate variable. if videodate=0207, swf play 0207.flv. if videodate=0307, swf play 0307.flv. , on.
i can see how should work, i'm not enough of actionscript badass know how code it. in plain english, think need this:
videoarray = value of videodate variable html + .flv extension
top.vid.contentpath = videoarray
any really appreciated.
top.vid.contentpath = "0207.flv";
it works fine. need figure out how make content path dynamic. variable added swf's parent html file this:
<param name="movie" value="test.swf?videodate=0207" />
the goal make swf file can play flv file based on value of videodate variable. if videodate=0207, swf play 0207.flv. if videodate=0307, swf play 0307.flv. , on.
i can see how should work, i'm not enough of actionscript badass know how code it. in plain english, think need this:
videoarray = value of videodate variable html + .flv extension
top.vid.contentpath = videoarray
any really appreciated.
videoarray = videodate + ".flv";
More discussions in ActionScript 1 and 2
adobe
Comments
Post a Comment