Passing dynamic variable from HTML to swf

I[COLOR=blue] have searched the forum, and the wider internet for a couple of days but am unable to solve this problem.[/COLOR]

[COLOR=blue]I want to pass a variable from one SWF to another swf, both embedded within individual HTML files (lets call them main.html and Events.html) . In movie 1 I have 3 buttons. Based on whichever button is clicked I want to attach a different number in the variable (jumpframe), then pass that through to the second movie over HTML, where it opens at that specific frame number.[/COLOR]

[COLOR=blue]The code from movie 1, on the buttons, works fine, in that it all appears in the address bar and the website loads. This is an example of the code on button1, button 2 would read jumpframe=15, button 3 would read jumpframe=20[/COLOR]

[FONT=Arial][SIZE=2][COLOR=navy][FONT=Arial][COLOR=blue]on (release) {[/COLOR][/FONT][/COLOR][/SIZE][/FONT]
[FONT=Arial][SIZE=2][COLOR=navy][FONT=Arial][COLOR=blue]getURL([/COLOR][COLOR=blue]http://www.myurl.com/Events.html?jumpframe=10[/COLOR][COLOR=blue], “_self”);[/COLOR][/FONT][/COLOR][/SIZE][/FONT]
[FONT=Arial][SIZE=2][COLOR=blue][COLOR=navy][FONT=Arial]}[/FONT][/COLOR][/COLOR][/SIZE][/FONT]

[FONT=Arial][SIZE=2][COLOR=blue][COLOR=navy][FONT=Arial]I have added this code into Frame 1 of the second swf movie, it reads:[/FONT][/COLOR][/COLOR][/SIZE][/FONT]

[FONT=Arial][SIZE=2][COLOR=blue][COLOR=navy][FONT=Arial][COLOR=navy][FONT=Arial]trace(jumpframe); gotoAndStop(jumpframe);[/FONT][/COLOR][/FONT][/COLOR][/COLOR][/SIZE][/FONT]

[FONT=Arial][SIZE=2][COLOR=blue][COLOR=navy][FONT=Arial][COLOR=navy][FONT=Arial]I believe this is also fine, and should the variable jumpframe have been populated, this would work.[/FONT][/COLOR][/FONT][/COLOR][/COLOR][/SIZE][/FONT]

[FONT=Arial][SIZE=2][COLOR=blue][COLOR=navy][FONT=Arial][COLOR=navy][FONT=Arial]However, I understand that I must get that jumpframe variable from the HTML line into the second flash movie somehow. I believe by adding some code into either the first (main.html) or second HTML file (Events.html), but I have tried so many different solutions I have confused myself. I am sure this is very simple, but I am pretty stuck. Hope someone can help.[/FONT][/COLOR][/FONT][/COLOR][/COLOR][/SIZE][/FONT]