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
|
*.swf
|
||||||
|
*.swc
|
||||||
|
@ -13,11 +13,13 @@
|
|||||||
import mx.rpc.events.FaultEvent;
|
import mx.rpc.events.FaultEvent;
|
||||||
import mx.controls.Alert;
|
import mx.controls.Alert;
|
||||||
|
|
||||||
|
import RequestParams;
|
||||||
|
|
||||||
[Bindable]
|
[Bindable]
|
||||||
private var photoFeed:ArrayCollection;
|
private var photoFeed:ArrayCollection;
|
||||||
|
|
||||||
private function requestPhotos():void {
|
private function requestPhotos():void {
|
||||||
var params:Object = new Object();
|
var params:RequestParams = new RequestParams();
|
||||||
params.format = 'rss_200_enc';
|
params.format = 'rss_200_enc';
|
||||||
params.tags = searchTerms.text;
|
params.tags = searchTerms.text;
|
||||||
photoService.send(params);
|
photoService.send(params);
|
||||||
|
24
Makefile
24
Makefile
@ -3,10 +3,11 @@
|
|||||||
# http://learn.adobe.com/wiki/display/Flex/Getting+Started
|
# 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:
|
# if not overridden in command line like so:
|
||||||
# make MXMLC=/path/to/my/mxmlc
|
# make MXMLC=/path/to/my/mxmlc
|
||||||
MXMLC ?= mxmlc
|
MXMLC ?= mxmlc
|
||||||
|
COMPC ?= compc
|
||||||
|
|
||||||
|
|
||||||
# define all target swf paths (which don't yet exist if
|
# 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))
|
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,
|
# define an implicit build rule for any file matching %.swf,
|
||||||
# using the $< (input) and $@ (output) automatic variables
|
# using the $< (input) and $@ (output) automatic variables
|
||||||
%.swf : %.mxml
|
%.swf : %.mxml
|
||||||
$(MXMLC) $< -warnings -output $@
|
$(MXMLC) $< -warnings -l+=./comps -output $@
|
||||||
|
|
||||||
|
|
||||||
# build all expected swf files
|
# define an implicit build rule for any file matching %.swc,
|
||||||
all: $(SWFS)
|
# 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
|
# remove all swf files in the tree
|
||||||
clean:
|
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