开发者

Flex Builder: generate html wrapper parameters

how can I set embed parameters for html wrapper using Flex Builder ?

For example, I would like to generate the code that allows fullscreen, directly from Flex Builder, so I can debug properly.

Where can I find these parameters ?

thanks

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
     开发者_运维问答       id="${application}" width="${width}" height="${height}"
            codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
            <param name="movie" value="${swf}.swf" />
            <param name="quality" value="high" />
            <param name="bgcolor" value="${bgcolor}" />
            <param name="allowScriptAccess" value="sameDomain" />
            <param name="allowfullscreen" value="true" />
            <embed src="${swf}.swf" quality="high" bgcolor="${bgcolor}"
                width="${width}" height="${height}" name="${application}" align="middle"
                play="true"
                loop="false"
                quality="high"
                allowfullscreen="true"
                allowScriptAccess="sameDomain"
                type="application/x-shockwave-flash"
                pluginspage="http://www.adobe.com/go/getflashplayer">
            </embed>
    </object>






  /* fullScreen */
    public function fullScreen():void {
        Application.application.stage.displayState = (!isFull) ? StageDisplayState.FULL_SCREEN : StageDisplayState.NORMAL;
        if (isFull) {   

             isFull=false;
        } else {    
            //Application.application.stage.displayState = StageDisplayState.FULL_SCREEN;   
            isFull=true;
        }

        debugF.text = isFull.toString();
    }


You will have to modify your html wrapper by hand, because only several things (like flash player version, deep linking) can be configured from the FB interface. Or you can modify the template files. You can find them in .metadata.plugins\com.adobe.flexbuilder.project\html-templates\


It's very easy.

Each project contains "html-template" folder with index.template.html file. Change this file according to your needs.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜