注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

神魔破杜梓的叨叨堂

Programming every day!

 
 
 

日志

 
 
 
 

Flash 帮助文档生工具  

2008-06-25 13:52:53|  分类: My Tech |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
原文来自TheWebPageOfDan

此工具可生成一个flash Extension ,用于向Flash help中添加类似ActionScript library的文档,并且让代码编辑器支持代码提示和关键字高亮。

Flash Help Book Creator

A tool to create a Flash extension for an ActionScript library that adds a help book to Flash Help and adds syntax highlighting and code hints to the editor.

∨ Follow the steps below to create your extension ∨

  1. Run ASDoc

    Run the ASDoc tool (more info) and add the -keep-xml option to the command line, which generates an XML file called toplevel_classes.xml along with the standard HTML documentation pages. The -skip-xsl option can be added to skip the creation of the HTML output if you already have it.

  2. Create/Download necessary files

    Provide the requested information below and upload your toplevel_classes.xml file. The information is required to create the files necessary to package a Flash extension with a help book. After submitting the form, an archive of those files will download automatically.

    ∨ Show form ∨
    General extension info
    Name (?) Author (?) Version (?) Description (?) Adds syntax highlighting and documentation for ... to Flash.
    UI-access (?) Adds syntax highlighting and documentation for ... to Flash. Documentation can be found in Flash Help. License (?)
    Help book info
    toplevel_classes.xml file (?)
    Title (?) Book version (?) Language (?)
    Categories (?) Directory (?) Sort order (?)
    Extra options
    Archive type .zip .tar .tar.gz .tar.bz2
    Remember my extension info
    Note: The upload/download may take a while depending upon the size of your toplevel_classes.xml file.
  3. Package the extension

    • Extract the files in the downloaded archive to the same directory as your HTML documentation created with ASDoc.
    • Download and install Adobe Extension Manager (free!).
      • Open Adobe Extension Manager and under the File menu choose "Package Extension..."
      • Find the extension.mxi file that was extracted and click "Ok" to create a *.mxp file in the same directory.
  4. Install and test

    • Run the newly created *.mxp file with Adobe Extension Manager by opening the file directly or choosing "Install Extension..." under the File menu. The *.mxp fill will be in the same directory as the extension.mxi file unless changed while packaging.
    • That's it! Restart Flash and check it out!
      • Optional: For those of you who have a web site that supports your application, you might be using some sort of ActionScript syntax highlighting script (like GeSHi) to add readability to posted code. After uploading your toplevel_classes.xml file, a list of keywords (class names, methods, properties, etc.) to incorporate into such a script will be in a file called keywords.txt within the downloaded archive.

Known issues

  • When right-clicking on keywords in the editor and choosing "View Help," it will find the correct item in the help book's table of contents, but not the correct help page. If someone can figure out what's wrong here, send me your solution and I'll add the fix.

Other notes

  • I have only tested this on Flash CS3 with ActionScript 3 libraries. Let me know if your created extension has missing elements or was made incorrectly.
Made by Dan

  评论这张
 
阅读(507)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017