Archive for July, 2007
I am constantly changing the default index.template.html in my Flex projects. This is quite nice, as you can even change the index.template.html to index.template.php and it will generate the file correctly. But in most cases I have ANT builds on the servers that do all the building. This is where I found the Flex ANT html-wrapper task falling short.
The Flex ANT html-wrapper task does not let you use custom/modified template files. But don't worry its actually quite easy to do this in ANT, as its just a bunch of token substitution. Here is one way to accomplish the task (I was having issues with filterchain and replacetokens):
CODE:
-
<copy file="${app.base.dir}/html-template/index.template.html"
-
tofile="${app.webroot.dir}/MyApp.html" />
-
<replace file="${app.webroot.dir}/MyApp.html" token="$${swf}" value="MyApp"/>
-
<replace file="${app.webroot.dir}/MyApp.html" token="$${width}" value="600"/>
-
<replace file="${app.webroot.dir}/MyApp.html" token="$${height}" value="600"/>
-
<replace file="${app.webroot.dir}/MyApp.html" token="$${bgcolor}" value="#000000"/>
-
<replace file="${app.webroot.dir}/MyApp.html" token="$${application}" value="MyApp"/>
-
<replace file="${app.webroot.dir}/MyApp.html" token="$${version_major}" value="9"/>
-
<replace file="${app.webroot.dir}/MyApp.html" token="$${version_minor}" value="0"/>
-
<replace file="${app.webroot.dir}/MyApp.html" token="$${version_revision}" value="28"/>
July 31st, 2007
I will speaking to the Adobe RIA User Group in Kansas City.
Here is the info:
Tuesday, July 31st, 6:00PM to 8:30PM. Renaun Erickson via Acrobat Connect presents Cairngorm Micro Architecture for Flex and Model Locator Pattern at Centriq - 8700 State Line Road, Suite 200 - West side of State Line Road across from Ward Pkwy Shopping Center.
July 21st, 2007
I have had some code working for a while that stopped working with the latest build of Flex Builder 3 I installed. The code was an AIR application that received messages from arbitrary Flex applications using LocalConnection. The problem with LocalConnection and AIR is the inherent security issues that arise. AIR is on the desktop with no domain sandbox and the Flex apps usually are coming from application with domains. So typically I set the allowDomain() method on the LocalConnection instance, and then it works.
I didn't change any of my code and I was getting a mystery "Error #2044: Unhandled statusEvent:. level=error, code=". After digging around for a while I noticed the Security class in the AIR framework and that it also had an allowDomain method. I added Security.allowDomain("*"); to my code and it started working again.
LocalConnection with AIR and Flex on the Mac OS X seems to be a bit weird at times. So I am not sure it was a Mac, AIR, or Flex thing. But if you come across some strange #2044 with no explanation make sure your Flash Player/AIR security sandboxes are correct by setting allowDomain where ever needed (Security, LocalConnection instance, etc...).
July 21st, 2007
A fellow Adobe employee helped make a very successful iPhoneDevCamp happen over the last weekend. I would have loved to attend but I am in vegas waiting for a new addition to the family to arrive.
Here are some of the highlights:
Large group of iPhone owners
Attendee's thoughts
LA Times Article on iPhone and dev camp in San Francisco
Application created during the hack-a-thon
Top 10 Apps created that weekend
July 9th, 2007
Disclaimer: I work as a Flash/Flex Developer for Adobe Systems Incorporated. The opinions expressed here represent my own and not those of my employer.
Calendar
July 2007
| S |
M |
T |
W |
T |
F |
S |
| « Jun |
|
Aug » |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 |
|
Posts by Month
Posts by Category