開發 Flex 情境 17 -- 關於 : 第一個 MXML、第一個 ActionScript

晚上9:22

開發 Flex 情境 17 -- 關於 : 第一個 MXML、第一個 ActionScript

1. 第一個 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:Application>

    (1). 第一個 app.module.ts

    import { NgModule }       from '@angular/core';
    import { BrowserModule }  from '@angular/platform-browser';
    import { HttpClientModule }    from '@angular/common/http';
    import { FormsModule }    from '@angular/forms';
   
    import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api';
    import { InMemoryDataService }  from './in-memory-data.service';
   
    import { AppRoutingModule }     from './app-routing.module';
   
    import { AppComponent }         from './app.component';
    import { DashboardComponent }   from './dashboard/dashboard.component';
    import { HeroDetailComponent }  from './hero-detail/hero-detail.component';
    import { HeroesComponent }      from './heroes/heroes.component';
    import { HeroSearchComponent }  from './hero-search/hero-search.component';
    import { MessagesComponent }    from './messages/messages.component';
   
    @NgModule({
      imports: [
        BrowserModule,
        FormsModule,
        AppRoutingModule,
        HttpClientModule,
   
        // The HttpClientInMemoryWebApiModule module intercepts HTTP requests
        // and returns simulated server responses.
        // Remove it when a real server is ready to receive requests.
        HttpClientInMemoryWebApiModule.forRoot(
          InMemoryDataService, { dataEncapsulation: false }
        )
      ],
      declarations: [
        AppComponent,
        DashboardComponent,
        HeroesComponent,
        HeroDetailComponent,
        MessagesComponent,
        HeroSearchComponent
      ],
      bootstrap: [ AppComponent ]
    })
    export class AppModule { }



2. 第一個 ActionScript

package
{
import flash.display.Sprite;

public class Main extends Sprite
{
public function Main()
{

}
}
}

3. 第一個 .flexProperties

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flexProperties enableServiceManager="false" flexServerFeatures="0" flexServerType="0" toolCompile="true" useServerFlexSDK="false" version="2"/>

  • Share:

You Might Also Like

0 意見