English 中文(简体)
LoaderInfo.width != phase.width in flex 3.5.
原标题:LoaderInfo.width != stage.width in flex 3.5

Running into strange behaviour with flex 3.5. Here is a minimal code: build.xml target:

<target name="player">
        <mxmlc
            file="${APP_ROOT}/player.mxml"
            output="${APP_ROOT}/player_old.swf"
            keep-generated-actionscript="false"
            static-link-runtime-shared-libraries="true"
            debug="false">
            <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
            <source-path path-element="${FLEX_HOME}/frameworks"/>
            <compiler.library-path dir="${APP_ROOT}" append="true">
                <include name="lib"/>
            </compiler.library-path>
        </mxmlc>
</target>

player.mxml:

<?xml version="1.0"?>
<PlayerApp
xmlns="*"
xmlns:fx="http://www.adobe.com/2006/mxml">
</PlayerApp>

运动员:

package {
import flash.display.Sprite;
import flash.media.Video;
import flash.events.*;

    public class PlayerApp extends Sprite {
        public function PlayerApp() {
            this.loaderInfo.addEventListener(flash.events.Event.INIT, init);
        }

        private function init(e:Event):void {
            this.addChild(new Video());
            trace("loaderInfo: "+root.loaderInfo.width+"x"+root.loaderInfo.height+"
");
            trace("root stage: "+root.stage.width+"x"+root.stage.height+"
");
        }
    }
}

物体:

<object width="320" height="240" id="_261178285" name="_261178285" data="player_old.swf" type="application/x-shockwave-flash">
<param name="allowfullscreen" value="true">
<param name="allowscriptaccess" value="always">
<param name="quality" value="high">
<param name="cachebusting" value="true">
<param name="wmode" value="opaque">
<param name="flashvars" value="config={irrelevant}">
</object>

用精彩的演员进行追踪,可得出以下痕迹:

loaderInfo: 500x375

root stage: 320x240

由此导致一种情况,即只展示250x154或50x375×320x240元的镜子,该录像带上了该片。

回答问题: 有可能避免这种ug,以便 s子仍然使用9.0.115号闪电版本。 由于参与者的规模在不久的将来会发生变化,我也不想把建筑群的大小编码起来。

申斥: 使用3.5法作为第9.0.115号闪电器的每米,必须支持第9.0.115号闪电,因为公司客户<>。 (9.0.115号文件似乎太过要求一些) 我也注意到,我可以编集,因为没有午餐,但我离开这里。

最佳回答
问题回答

暂无回答




相关问题
Disable button tooltip in AS3

I want to disable the tooltip on certain buttons. The tooltip manager seems to be an all or nothing solution. Is it possible to disable the tooltip for just one or two buttons?

Multiple Remote call made simultenously

I was making multiple remote calls and they are done sequentially and when I am getting a result event back it s triggering calls to all the methods with ResultEvent as an argument . I am supposed to ...

Attaching a property to an event in Flex/AS3

I have a parameter that needs to be passed along with an event. After unsuccessful attempts to place it on the type by extending the class, I ve been advised in another SO question to write a custom ...

Clearing RSL in Cache

I have built a flex application which has a "main" project and it is assosciated with a few RSL s which are loaded and cached once i run my "main" application. The problem i am facing is that the ...

What s a good way of deserializing data into mock objects?

I m writing a mock backend service for my flex application. Because I will likely need to add/edit/modify the mock data over time, I d prefer not to generate the data in code like this: var mockData =...

AS3 try/catch out of memory

I m loading a few huge images on my flex/as3 app, but I can t manage to catch the error when the flash player runs out of memory. Here is the what I was thinking might work (I use ???? because i dont ...

热门标签