Ill*_*lep 2 apache-flex flexbuilder flex4 flashbuilder4 flex4.5
我的代码如下:
1,)标签和按钮都重叠.我该如何解决这个问题?(我知道absolute默认情况下布局设置为,但当我删除minWidth="955" minHeight="600"并包含时layout="horizontal"我得到以下错误)
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
Run Code Online (Sandbox Code Playgroud)
2.)我可以知道标签的含义xmlns:fx xmlns:s xmlns:mx以及我应该使用它们的情况吗?
3.)在FLex Builder 4.6中,在设计模式下我可以用Drag-and-drop组件来设计用户界面吗?
<?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>
Run Code Online (Sandbox Code Playgroud)
小智 5
以下代码可以帮助您: -
<?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>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3365 次 |
| 最近记录: |