Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Call Flex swf inside extension object

New Here ,
May 06, 2009 May 06, 2009

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>

TOPICS
Extensions
1.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 06, 2009 May 06, 2009
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 07, 2009 May 07, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 07, 2009 May 07, 2009
LATEST

Search the DW CS4 Configuration folder for some examples.

Randy

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines