Anyone who read this question can also help me with this.
Hi Amaze and all,
I have tried you method, I know what you meant…
But it is not working.
Below are the codes I copied from my HTML, can you point out what’s wrong?
<object classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” codebase=“http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0” width=“150” height=“453”>
<param name=“movie” value=“myHobby.swf”>
<param name=“quality” value=“high”>
<embed src=“myHobby.swf?domain=1” quality=“high” pluginspage=“http://www.macromedia.com/go/getflashplayer” type=“application/x-shockwave-flash” width=“150” height=“453”></embed></object>
From my Flash part,
if (domain == 1)
{
this.loadVariables(“myHobby_A.txt”, _root);
}
else if (domain = “BBB”)
{
this.loadVariables(“myHobby_B.txt”, _root);
}
else if (domain = “CCC”)
{
this.loadVariables(“myHobby_C.txt”, _root);
}
That’s all for the codes part.
Here are some questions.
-Where the flash loads the txt file, does it takes the (HTML page) or (the flash itself) as references to find the txt file.
-There is ‘param’ and ‘embed’ tag which one should I insert the &domain=1.
-when inserting the domain, should I use “&”(and) or “?”(question mark).
e.g
myHobby.swf?domain=1
or
myHobby.swf&domain=1
Sorrie about my long winded question but I am really stuck with this.
Thanks