Flex:HelloWorld应用程序上的空窗口(Flex: empty window on HelloWorld app)

系统教程 行业动态 更新时间:2024-06-14 17:02:18
Flex:HelloWorld应用程序上的空窗口(Flex: empty window on HelloWorld app)

我是flex的新手,并试图创建helloWorld应用程序失败。 脚步:

1)在Flash Builder中创建flex项目; 2)在默认包中将<s:Label text="Hello World" x="100" y="100" />到HelloWorld.mxml文件中; 3)使用Flash Builder运行项目; 4)在浏览器窗口中看到一个空的flash页面;

我错过了什么?

HelloWorld.mxml :

<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> <s:Label text="Hello World" x="100" y="100" /> </s:Application>

PS - Flash Builder 4.6; - SDK 4.5.1; - 其他Flash页面在浏览器(Chrome)中正常工作;

I'm totally new to flex and tried to create helloWorld app unsuccessfully. Steps:

1) Create flex project within flash builder; 2) Added <s:Label text="Hello World" x="100" y="100" /> to HelloWorld.mxml file in default package; 3) runned project with Flash Builder; 4) saw an empty flash page in browser window;

Did I miss something?

HelloWorld.mxml:

<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> <s:Label text="Hello World" x="100" y="100" /> </s:Application>

P.S. - Flash Builder 4.6; - SDK 4.5.1; - Other flash page do work correctly in browser (Chrome);

最满意答案

好的,转发自评论。

你试过在不同的浏览器中打开这个swf吗?

当swf未在任何地方打开时,请务必清除浏览器缓存,并且可以尝试手动删除文件。

有时很容易忘记保存已编辑的文件,这不是你的情况,是吗?

查看您的swf是否更新的可靠方法是Alert.show('version')或在您的应用程序中使用图形绘制大红线。

Ok, reposted from comment.

Did you try to open this swf in different browser?

Make sure to clear browser cache when your swf is not opened anywhere, and you can try to delete files manually.

Sometimes it's easy to forget to save edited file, this isn't your case, is it?

Reliable approach to see if your swf is updated or not is to Alert.show('version') or to draw big red line across your app with graphics.

更多推荐

本文发布于:2023-04-21 19:03:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/c0cfdccf96b401b76ba857ff28fb6f85.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   窗口   HelloWorld   Flex   window

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!