Here's a test case:

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute" creationComplete="init()">
        <mx:Script>
                <![CDATA[
                        
                        private function init():void {
                                testhtml.location = "index.html";
                        }
                ]]>
        </mx:Script>
        <mx:HTML id="testhtml" />
</mx:WindowedApplication>


index.html:


<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Insert title here</title>
<script>
        function changeSelector() {
                document.getElementById("mySelector").selectedIndex = 0;
        }
</script>
</head>
<body>
<div>
<select id="mySelector" name="mySelector">
        <option value="1">One</option>
        <option value="2">Two</option>
        <option value="3">Three</option>
        <option value="4">Four</option>
</select>


Reply via email to