Luar's Flash Playground:基於AS1 OO MVP相冊
基於AS1 OO MVP相冊 (12-04-2004)

這是我第二本書其中一個範例,以MVP模式設計,ActionScript 1.0的OO語法寫成的相冊,所有相片都是動態載入,而且分為預覽圖和正常大圖,所有相片記錄在XML檔案中。這相冊是非常容易修改,基本上只需要修改每行有多少預覽圖和XML檔案便可。。(AS2版本)

[示範][源文件]

本文章由發表。
意見
"; print "沒有意見。
 "; } ?>
  • not bad , but.. why actionscript 1.0 oop when 2004 MX is out and true OO is supported, and why use old way on your new book?

    由guest於13-04-2004發表

  • Thanks for your sharing~

    由Iden於13-04-2004發表

  • 因為AS2版才是主角,比較兩者分別。

    luar於13-04-2004發表

  • Do you mean MVC or MVP? I'm confused...

    If you mean MVP, where are the model, view and presenter classes?

    You have a control class, which is a movieclip, and it contains the XML model. Can you explain why you structured it like this? Thanks.

    由confused於14-04-2004發表

  • 是MVP,Control Class只是我習慣叫法,它實際是在做Presenter工作,為免使人混亂,源文件我將它名稱叫回PhotoAlbumPresenter,這樣好吧?

    luar於14-04-2004發表

  • thanks

    由vinny於16-04-2004發表

同組文章