gpt4 book ai didi

apache-flex - 使用 Flash Builder 4.6 的 Flex 中的 HelloWorld

转载 作者:行者123 更新时间:2023-12-02 05:40:00 24 4
gpt4 key购买 nike

我的代码如下;

1, ) 标签和按钮重叠。我该如何解决? (我知道布局默认设置为 absolute,但是当我删除 minWidth="955"minHeight="600" 并包含 layout="水平” 我收到以下错误)

Description Resource    Path    Location    Type
Initializer for 'layout': values of type spark.layouts.supportClasses.LayoutBase cannot be represented in text. HelloFlex.mxml /HelloFlex/src line 4 Flex Problem

2.) 我可以知道标签是什么意思 xmlns:fx xmlns:s xmlns:mx 以及我应该在哪些情况下使用它们?

3.) 在 FLex Builder 4.6 中,在设计模式下,我可以拖放组件来设计用户界面吗?

 <?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>
<mx:Label text="Hello World"/>
<mx:Button label="Click"/>


</s:Application>

最佳答案

以下代码可能对您有所帮助:-

<?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:layout>
<s:HorizontalLayout paddingTop="5" paddingLeft="5" paddingRight="5" paddingBottom="5"/>
</s:layout>
<mx:Label text="Hello World"/>
<mx:Button label="Click"/>
</s:Application>

关于apache-flex - 使用 Flash Builder 4.6 的 Flex 中的 HelloWorld,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11131459/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com