javascript to alter parts of a flash file

Is it possible alter a Flash file from a html form? I have four form drop-down boxes, each containing several colours (red, blue, green etc). When the user selects a colour, part of the image changes to that colour. The image will most likely be just an outline with four distinct areas. Can it also be done without refreshing the page?

Thanks
Martin




Flash can read javascript can't it? I am not a flash guy but I think it does.

If this is so you could just update a variable from your from:


<select onchange=\"variable=this.value\">
<option value=\"1\">One</option>
<option value=\"2\">Two</option>
</select>

but you'd have to do some thing in flash to detect when the variable updated. Maybe a loop or perhaps there is some event that's triggered.

You Javascript would be


<script type=\"text/javascript\">
var variable = 'something';
</script>

Thanks Rimian. I'm not a flash guy either so I might throw it up as a job for someone.

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options