开发者

How to implement a all-fit full screen mode in actionscript 3?

By all-fit I mean it should also work when embedded in an <iframe> whose size is limited.

Code like below won't 开发者_C百科work in that case:

        main.media.videoWidth = event.stage.stageWidth;
        main.media.videoHeight = event.stage.stageHeight

Is that possible?


You can use swfobject(js library) to manipulate with swf's sizes. You should use something like

swfobject.embedSWF(loader, "flashcontent", "100%", "100%", playerMinVersion, null, flashvars, params, attributes);

take a closer look at http://code.google.com/p/swfobject/wiki/documentation

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜