MACROMEDIA FLEX - DEVELOPING COMPONENTS AND THEMES Manuale Utente Pagina 20

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 36
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 19
Version#1.0#(May#14,#2009)#
!
Figure'9')' Flex'Application'Lifecycle'
Flex+Application+Ph a s es:+Construction+
The!Construction!Phase!of!a!Flex!Application!is!a!little!more!in‐depth!then!the!
component!Construction!phase!because!it!begins!with!the!loading!of!the!compiled!
SWF!before!any!Classes!are!actually!constructed.!
When!a!SWF!is!loaded!into!the!Player!the!first!frame!of!the!SWF!is!prepared!and!
then!executed.!!One!of!the!powerful!features!of!Flash!is!that!not!all!of!the!application!
SWF!has!to!be!loaded!before!the!Player!starts!to!execute.!!The!Player!is!responsible!
for!streaming!in!the!content!and!begins!execution!as!the!frames!are!loaded.!!This!
ability!enables!SWF!applications!of!larger!size!to!start!playing!and!showing!content!
to!the!user!while!the!rest!of!the!application!SWF!content!loads.!!
The+Dark+Art+of+the+Flex+Compiler+
From!our!current!research,!the!first!piece!of!the!Flex!Framework!code!that!is!
created!and!executed!is!the!SystemManager.!!How!the!SystemManager!is!linked!into!
the!SWF!and!defined,!as!the!first!Class!to!be!created!and!executed,!is!not!clearly!
described!in!available!documentation.!!We!do!know!the!Flex!Complier!defines!this!
linkage!when!it!is!generating!the!output!SWF!by!defining!the!application’s!
SystemManager!class!as!the!root!MovieClip!of!the!SWF,!which!tells!the!Flash!Player!
to!construct!the!SystemManager!instance!on!load.!!
Unfortunately,!the!actual!mechanics!of!the!Flex!Compiler!and!how!it!creates!the!
initial!frame!stack!is!a!bit!out!of!scope!for!this!paper.!!Hopefully,!as!we!do!further!
research!over!time,!we!can!update!this!section!and!explain!in!excoriating!detail!
Vedere la pagina 19
1 2 ... 15 16 17 18 19 20 21 22 23 24 25 ... 35 36

Commenti su questo manuale

Nessun commento