|
-
Loading Var from Javascript to External Swfs
Hi
I am loading one variable from javascript to one main swf file which does have 2 more links to other 2 external swf files, i want to use the same var to be transfered to those 2 files when they are loaded, how to do it any help would be much appreciated.
This is teh javascript in the header:
function CountryCode(){
document.getElementById('Spotlight_en_gb').SetVari able("ccode", "SU");
}
This script is triggered onLoad when the page loads.
One dynamic text box var name is ccode and instance name countrychk is taking the values and action accordingly, other two files need the same var to use but on LoadMovie they dont get teh value.
Here are the links:
1.
on (release) {
unloadMovie(1);
loadMovie("Movies.swf", 1);
}
2.
on (release) {
unloadMovie(1);
loadMovie("Series.swf", 1);
}
I have tried adding it like that:
on (release) {
unloadMovie(1);
loadMovie("Movies.swf?ccode="+_root.countrychk.tex t+"", 1);
}
But that doesnt worked out.
Please help
Fahad.
[email protected]
I won't change directions and i won't change my mind, How much difference does it made?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|