Skip to main content
Participant
May 6, 2009
Question

Call Flex swf inside extension object

  • May 6, 2009
  • 3 replies
  • 1563 views

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>

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Randy Edmunds
Adobe Employee
Adobe Employee
May 6, 2009
jserpasAuthor
Participant
May 7, 2009

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.

Randy Edmunds
Adobe Employee
Adobe Employee
May 8, 2009

Search the DW CS4 Configuration folder for some examples.

Randy