MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Manual do Utilizador Página 87

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 124
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 86
TUTORIALS POINT
Simply Easy Learning Page 82
Consider the following application code
<?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"
width="100%" height="100%"
minWidth="500" minHeight="500" >
<s:Panel>
<s:Button id="clickMeButton" label="Click Me!" click="doAction( );"/>
</s:Panel>
</s:Application>
When the user clicks the Button, he or she has also clicked the Panel and the Application.The event goes through
three phases looking for event-handler assignments.
Let us follow the following steps to test event handing in a Flex application:
Step
Description
1
Create a project with a name HelloWorld under a package com.tutorialspoint.client as explained in
the Flex - Create Application chapter.
2
Modify HelloWorld.mxml as explained below. Keep rest of the files unchanged.
3
Compile and run the application to make sure business logic is working as per the requirements.
Vista de página 86
1 2 ... 82 83 84 85 86 87 88 89 90 91 92 ... 123 124

Comentários a estes Manuais

Sem comentários