Question, using js in flash

Well hello guys… how is everything going?
well this is only like a question with multiple answers (that im not really sure if im right) but i need some one confirm me if im right.

here is my scenario: i have a html site with a flash section, swf is only like an intro and it automatically loads another swf in certain time using the following code:

 
_root.createEmptyMovieClip("container", 1);
loadMovie("swfs/intro.swf", "container");

once the “intro” movie is loadedit have about 8 btns that load different .swfs using the following code:

 
condorulregbtn.onRelease = function(){
 _root.currMovie  = "condominiumrulesandregulations_gmv";
 contenedor.loadMovie(_root.currMovie+".swf");
}

till here i dont have any problem… the thing is that in this “condominiumrulesandregulations_gmv.swf” section i have a “complex” btn that when release it should open a new browser window with a html file & with certain messurements, this is the code im using in this “complex” button:


stop(); 
 
this.onRollOver = function(){ 
 gotoAndPlay(2);
}
  
this.onRollOut = function(){ 
 gotoAndPlay(8); 
}
this.onRelease = function(){
 getURL("javascript:MM_openBrWindow('http://www.pvre.com/pd/conreg_gmv.html','myWin','toolbar=no,scroll bars=yes,width=410,height=450')");
}

But i tryed it live but the button doesn’t opens anything at all!
As i now i should add the “swLiveConnect=“true”>” code in my holder html file BUT HERE IS MY QUESTION:

  • I ADDED THE swLiveConnect=“true”> CODE IN MY HTML FILE, BUT OBVIOUSLY THE ONLY FLASH FILE THAT THE HTML FILE ID MY “HOLDER” ONE (THE ONE THAT LOADS ALL THE OTHER ONES, IN THIS CASE home.swf) SHOULD I ADD ANOTHER “<embed” CODE WITH THE NAME OF MY LAST .swf FILE IN THE HTML FILE JUST LIKE THIS??:

  • OR SHOULD I BETTER PLACE THE FUNCTION CODE “OUTSIDE” THE BUTTON CODE JUST LIKE THIS??:

stop(); 
 
pdfslinks.onRelease = function(){
 getURL("javascript:MM_openBrWindow('http://www.pvre.com/pd/conreg_gmv.html','myWin','toolbar=no,scroll bars=yes,width=410,height=450')");
}

OR IM TOTALY WRONG ON BOTH OF MY OPTIONS!?? :s

■■■■ IT WAS MORE DIFFICULT TO EXPLAIN THAN I THOUGHT.!!!

I REALLY HOPE YOU CAN UNDERSTAND WHAT MY BRAIN IS PROCESSING! :s AND I BELIVE YOU CAN PERSIVE HOW DESPERATE I AM!!!

WELL THNX IN ADVANCE FOR EVERYONE!!

PLEASE HELP!! IM GOING MAD!!