Hi everyone,
Im trying to use flashvars, so that depending on the variable sent to the flash movie it would go and play a specific scene. So let me set the scenario for you. I have an index.php page which has three buttons. If the user clicks button1 it opens a popup.php that contains the flash movie and plays the flash movie relative to button1. if the user clicks button2 it opens that same popup.php playing the scene relative to button2, and as im sure you’ve guessed. if the user clicks button3, it opens popup.php playing the scene relative to button3.
I would be greatful if you could help me find a solution to this problem. I put a test version of the site up at http://www.wineandmint.co.uk/fox. so at the moment it reads the correct section but doesnt go to and play the relative movie. Any suggestions would be appreciated. Thanks 
The code inside the flash movie is:
if(section==“connaught”){
//gotoAndPlay(“ConnaughtHome”);
section_text.text = “connaught”;
}else if(section==“excel”){
// gotoAndPlay(“ExcelHome”);
section_text.text = “excel”;
}
else if(section==“stratford”){
// gotoAndPlay(“StratfordHome”);
section_text.text = “stratford”;
}
Hey, your example URL isn’t working… but I’ll assume you’re passing the flash vars in your HTML or PHP properly.
Also, I should state that I’m hardly an expert in FlashVars, but I did get them working in AS3 in the past 
I did the following:
loadURL is the name of the flashvar being passed.
if ( root.loaderInfo.parameters.loadURL != null) {
loadURL = root.loaderInfo.parameters.loadURL;
}
imageLoader.load(new URLRequest(loadURL));
You can find a working example of this code on my blog:
http://blog.organa.ca/?p=5
Peter Organa
[quote=Enebreus;2329153]Hey, your example URL isn’t working… but I’ll assume you’re passing the flash vars in your HTML or PHP properly.
Also, I should state that I’m hardly an expert in FlashVars, but I did get them working in AS3 in the past 
I did the following:
loadURL is the name of the flashvar being passed.
if ( root.loaderInfo.parameters.loadURL != null) {
loadURL = root.loaderInfo.parameters.loadURL;
}
imageLoader.load(new URLRequest(loadURL));
You can find a working example of this code on my blog:
http://blog.organa.ca/?p=5
Peter Organa[/quote]
Hi,
thanks very much for your reply. I am working in AS2, havent quite got as far to AS3, just yet, but I think its about time i did, lol.
http://www.wineandmint.co.uk/fox
thats the URL above, it wasnt working last time, because it had a “.” after it. Do you have any solutions that comply with AS2? That would be very much appreciated. I have been sitting here, and every now and then giving it ago, but everything fails.
Chers, T Singh
Hey,
I’ve done this in AS2 as well. Your example looks right to me assuming that your embed code is properly formatted something like that.
<PARAM NAME=FlashVars VALUE="section=connaught">
<embed FlashVars="section=connaught" src="yourproject.swf" quality="high" bgcolor="#ffffff" width="220" height="50" name="yourProject" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"/>
Ehh… shot in the dark. But I have an idea:
Are you preloading your swfs before calling the gotoAndStop()?
It’s possible that you’re calling gotoAndStop() before the swf is completely loaded, so your gotoAndStop() is going to frames that don’t exist yet.
If you don’t have a preloader yet toss this on your first frame.
this.onEnterFrame = function() {
if (this.getBytesLoaded()>=this.getBytesTotal()) {
delete this.onEnterFrame;
trace("READY");
////PUT THE GOTOANDSTOP CODE HERE
}
};