getting crap figured out wrt compiling components, including with mxmlc
This commit is contained in:
parent
cd79dbdbec
commit
64f116a83d
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
*.swf
|
||||
*.swc
|
||||
|
@ -13,11 +13,13 @@
|
||||
import mx.rpc.events.FaultEvent;
|
||||
import mx.controls.Alert;
|
||||
|
||||
import RequestParams;
|
||||
|
||||
[Bindable]
|
||||
private var photoFeed:ArrayCollection;
|
||||
|
||||
private function requestPhotos():void {
|
||||
var params:Object = new Object();
|
||||
var params:RequestParams = new RequestParams();
|
||||
params.format = 'rss_200_enc';
|
||||
params.tags = searchTerms.text;
|
||||
photoService.send(params);
|
||||
|
24
Makefile
24
Makefile
@ -3,10 +3,11 @@
|
||||
# http://learn.adobe.com/wiki/display/Flex/Getting+Started
|
||||
|
||||
|
||||
# sets mxmlc to just the basename "mxmlc"
|
||||
# sets mxmlc and compc to their respective basenames
|
||||
# if not overridden in command line like so:
|
||||
# make MXMLC=/path/to/my/mxmlc
|
||||
MXMLC ?= mxmlc
|
||||
COMPC ?= compc
|
||||
|
||||
|
||||
# define all target swf paths (which don't yet exist if
|
||||
@ -14,16 +15,29 @@ MXMLC ?= mxmlc
|
||||
SWFS = $(patsubst %.mxml,%.swf,$(wildcard [0-9]*-*/*.mxml))
|
||||
|
||||
|
||||
# define all target swc paths (same as with swf paths above)
|
||||
SWCS = $(patsubst %.as,%.swc,$(wildcard comps/*.as))
|
||||
|
||||
|
||||
# define an implicit build rule for any file matching %.swf,
|
||||
# using the $< (input) and $@ (output) automatic variables
|
||||
%.swf : %.mxml
|
||||
$(MXMLC) $< -warnings -output $@
|
||||
$(MXMLC) $< -warnings -l+=./comps -output $@
|
||||
|
||||
|
||||
# build all expected swf files
|
||||
all: $(SWFS)
|
||||
# define an implicit build rule for any file matching %.swc,
|
||||
# using the $< (input) and $@ (output) automatic variables
|
||||
# just like with the %.swf implicit rule above
|
||||
%.swc : %.as
|
||||
_CLS=$$(echo $< | sed 's@.*/\(.*\)\..*$$@\1@') && \
|
||||
$(COMPC) -sp ./comps -output $@ -include-classes $$_CLS
|
||||
|
||||
|
||||
# build all expected swf and swc files
|
||||
all: $(SWCS) $(SWFS)
|
||||
|
||||
|
||||
# remove all swf files in the tree
|
||||
clean:
|
||||
find -name \*.swf -exec rm {} \;
|
||||
find -name \*.swf -exec rm {} \; ; \
|
||||
find -name \*.swc -exec rm {} \;
|
||||
|
8
comps/RequestParams.as
Normal file
8
comps/RequestParams.as
Normal file
@ -0,0 +1,8 @@
|
||||
package
|
||||
{
|
||||
public class RequestParams
|
||||
{
|
||||
public var format:String;
|
||||
public var tags:String;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user