Copy link to clipboard
Copied
Hi,
I am building a user application using Flex 3. The application allows user to input information using input components such as text areas, etc. The application will create an xml file from user info. The application needs to save xml file in user's local hard drive. For user convenience, we want to be able to call the application from inside a DW menu. This requires an extension which implies installing an mxp. To avoid multiple installs, we want to deliver the application inside the extension. This involves creating an extension object that has my Flex app embedded in it. I have been able to create the extension object, have it show up in my insert bar, and deliver my Flex swf inside the extension. However, when I type inside a text area in my swf, I am not able to. It acts as if disabled. I explicitly set my text area as editable=true and enabled=true. Why? Here is my extension:
<html>
<head>
<title>WBT Ouline Tool</title>
<style>
body { margin: 0px; overflow:hidden }
</style>
<script language="javascript" type="text/javascript">
function createTextFile(textItem) {
//future code to create xml file will go here.
//it will use DW FILE I/O APIs
}
</script>
</head>
<body>
<form>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="wbtOutline" width="406" height="276"
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="flashvars" value="bridgeName=wbtOutlinePanel"/>
<param name="movie" value="wbtOutline.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#869ca7" />
<param name="allowScriptAccess" value="always" />
<embed src="wbtOutline.swf" quality="high" bgcolor="#869ca7"
width="406" height="276" name="wbtOutline" align="middle"
flashvars="bridgeName=wbtOutlinePanel"
play="true"
loop="false"
quality="high"
allowScriptAccess="always"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
</object>
</form>
</body>
</html>
Copy link to clipboard
Copied
Take a look here:
http://help.adobe.com/en_US/Dreamweaver/10.0_API_Ref/WS4FB61645-9C4E-4667-B6D4-0 E5F553BEF4F.html
HTH,
Randy
Copy link to clipboard
Copied
Do you know where I can find examples on how to use dreamweaver.flash.newControl()?
I am still having no luck. My control shows up but can not interact with it and external interface not available.
Copy link to clipboard
Copied
Search the DW CS4 Configuration folder for some examples.
Randy
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more