I downloaded the command-line compiler and lots of documentation PDF files from here earlier today.
Then I started working through the “getting started” tutorial PDF.
I made a few edits to my ~/_vimrc file so that working with mxml files would be a little easier:
” Do some specific maps for flex files (.mxml files).
” F10 rebuilds the swf.
autocmd BufNewFile,BufRead *.mxml map <F10> :! mxmlc %<CR>
” F11 executes the swf.
autocmd BufNewFile,BufRead *.mxml map <F11> :! start %<.swf<CR>
And I was able to build this do-nothing widget after about 15 minutes of goofing off:
That’s a screenshot of my homemade swf running above the vim session where I wrote it.
Next stuff to figure out:
- Where do my trace statements go?
- I need to figure out how to pass in locations of actionscript files when I compile my mxml files into swf files.
- I need to learn the tags in MXML. They’re different than HTML.
- I need to learn how to talk to a webserver.