Hello Guys,
My project loads models with the embed technique:
[Embed(source="/../embeds/tank.obj", mimeType="application/octet-stream")]
private var OBJData : Class;
The index.html has the javascript code:
[removed]
var flashvars = {
};
var params = {
menu: "false",
scale: "noScale",
allowFullscreen: "true",
allowScriptAccess: "always",
bgcolor: "",
wmode: "direct" // can cause issues with FP settings & webcam
};
var attributes = {
id:"Away3daway3dexamplesbroomstick20a270c"
};
swfobject.embedSWF(
"Away3daway3dexamplesbroomstick20a270c.swf",
"altContent", "400px", "320px", "11.0.0",
"expressInstall.swf",
flashvars, params, attributes);
[removed]
My question: how can I link the two together.
So if I want to load the house.obj instead of the tank.obj, and I select the file with a drop-down menu in my site (html), then what should I write in the acrion script. (I assume I should define a variable, which will be equal to the flashvar=“xxxxx”).