Ok so I found this seamingly usefull mini tutorial on Actionscripts.org on how to use the FLASHVARS value in the ‘HTML’ to controll which part of the Flash movie is shown. But I can’t get it to work, the AS gives loads of errors in Flash. The value is set, as I have got a textbox showing it the values. here is the AS I did as an experement, It’s just supposed to move the playhead to a different named frame depending which page loads the Flash.
the FlashVars value in the html pages is page=one and page=two.
var siteManager:siteManager = new SiteManager(this, _root.page);
class SiteManager {
private var _tl:MovieClip;
public function SiteManager (timeline:MovieClip, page:String){
init(timeline, page)
}
private function init(timeline:MovieClip, page:String):Void{
_tl = timeline;
if (page)
switch(page){
case "one":
//code to load section One
gotoAndPlay("one");
break;
case "two":
//code to load section Two
gotoAndPlay("two");
break;
}
}
}
Have I compleately missunderstood the AS in the tutorial?
Any help please.