Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the basic knowledge of Flex

Shulou Source: shulou.com Published: 2022-06-02 07:59:25 09月11日 Update

This article mainly shows you "what are the basic knowledge of Flex", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "what are the basic knowledge of Flex" this article.

Basic knowledge of Flex

Can 1:Flex be embedded in html?

Yes, you need to use iframe, the iframe is not well defined, but needs to be defined by yourself.

Can 2:Flex access resources in the system, such as C disk D files?

No, AIR can.

Can 3:Flex operate on files?

No, it does not have the operation of IO, it needs to call java or other languages to read and write files.

4: why is the read data Objectobject?

The data type read is Object, and it is recommended to convert it to string. If not, debug to see if there are many layers in the object, and if so, take them out in turn.

5: how do I access the parent object?

ParentApplication.

6: how to remove the scroll bar?

Bar: horizScrollPolicy= "off"

Vertical bar: verticalScrollPolicy= "off"

7: how to change the zoom size of the picture?

You can use Resize.

Example:

Can 8:Flex and swf interact with each other?

Yes, use LocalConnection.

9.Flex commonly used data exchange. Httpservice and webservice.

1. Use httpservice

{xxx} / / here are the parameters you want to pass to the background, or you can use request. (optional), and there are other ways to write it, which is 1. PrivatefunctiondoResult (evt:ResultEvent): void {/ / the data returned by the backend after this is myhttpsend}

2: use webservice

Ws generally exists as wsdl. Asmx viewing and testing methods can be directly executed in net. Java also provides a xml tool to achieve the same effect. Make sure that ws is successful and then you can start writing Flex to communicate. / / Parameter name {name} / / Parameter value privatefunctiononWs (event:ResultEvent): void {/ / get the return of ws. } FlexSite.HelloWorld.send (); / / call the HelloWorld method and use onWs to receive the return value. These are all the contents of the article "what are the basics of Flex?". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Knowledge basic knowledge data content parameters files articles background methods learning help no success no between writing pictures size objects hierarchy Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Docker vpn Shulou Tech Info Shulou Technology