I am going to clarify some more on this question and add some stuff I tried..
I have a getURL function in my flash movie(print.swf) which calls on Javascript to open a popup window with another flash movie(samples.swf) in it...the pop window works great but now I need to pass a variable as well.
The global variable(samples) is declared in print.swf (which is on level 2 if that matters) and the button is pressed a value is assigned to it.
Ideally, I want the variable be passed to the the next movie(samples.swf...which is embeded into an ASP file.) and then go the appropriate frame and start playing based on that variable. (frames labels in samples.swf are the same as the assigned values). I do not know how to do this through Javascript and ASP. I am very new to Flash and am extremely limited with Javscript so this has been very painful for me. I would appreciate any help anyone can give me.
Am I missing anything in my ASP page?
Also i discovered that the Javascript needs to be on my LEVEL 0 HTML file not my level 2 HTML file. Does this level 0 file need to also be ASP?
Below I have put my action script and javascript.
*Note: fsCommand does not work with IE on Mac. I am in the graphic design field so many potential employers will be on a mac. I would like it function on most browsers on both mac and pc.
Thank you
Isabelstripes
on (release) {
worksamples = "recsports";
getURL("javascript:openNew
Window('sa
mples.asp?
worksample
s=recports
','portfol
io','heigh
t=400,widt
h=400,tool
bar=no,scr
ollbars=no
')");
}
<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures){
newWindow=window.open(URLt
oOpen, windowName, windowFeatures);}
</script>
In the first frame of samples.swf:
load variables ("samples.asp", 0, var=GET);
gotoAndPlay(worksamples);
Start Free Trial