我是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.
更多推荐
发布评论