Should work like you wrote...
//assuming myvar is our flashvar containing "myframelabel1" or "myframelabel2" ... etc. //set myvar with a default value if it not given as flashvar if(!myvar)myvar = "myframelabel1"; _root.gotoAndStop(myvar);
... should be same
I added your check function to my movie, but it is still not working.
Then, after some more investigations, I discovered that I'm using Dreamweaver 8.0.1.
The updated dreamweaver 8.0.2 should add the AC_FL_CONTENT js file that should make it work on IE.
But I cannot upgrade in this moment, so I tried creating the same thing on another copy of dreamweaver, regularly upgraded.
Then I copied the AC_FL script to my pages, but, again, it's not working.
I solved it by adding a preload scene.
It seems that flash can't go to the right place if the movie is not 100% loaded.
HTH someone else.
it can't goto a frame that's not loaded at the time the goto code executes.