Archive for February, 2005 Page 2 of 2



An email from the FlashEurope venue

I was not going to post anything further about Flash Europe because I pulled out of speaking following a total lack of communication with the organizational committee (and a not-too-pleasant phone call I received following my last blog post on the subject) but I received an email from the venue today that I believe will be of interest to the community. I present it here without comment. You can make your own decisions.

* * *

Dear all,

Last July we received the request of Flash Europe to place their 2004 meeting in our facilities and met Harold Polo personally. On september 2004, the dates of the meeting were moved to March 2005. We confirmed our availability and interest to held this Event. After some time without emails, nither phone calls and the total lack of communication from Flash Europe' part, last december 2004 we have been forced to cancel all the meeting rooms reservation and we have not heard about HAROLD POLO so far. So please, be advised that as far as we are concerned the Flash Europe Meeting next march is not happening in our Campus. Thank you.

We hope this will clear some of the questions you had.

PS.As I cannot post my coment, I am sending an email to all ouf you.
We remain at your disposal,
Kindest Regards,

Agencia de Promocio d'Activitats i Congressos - UAB Campus

[Sent by Meritxell Navarro]

MXDU, here I come…

Note: You will need a recent version of QuickTime installed in order to view the mobile video entries.

MXDU may still be a over a week away but this is Australia we're talking about... it'll take some time to get there, surely!

Our trip to Oxfam

We presented Oxfam with our donation in hope that it will play a small but helpful part in the overall effort.

As you might remember, I had pledged 10% of the profit from our two Hands On courses in January to Oxfam for the Tsunami Relief effort. Well, I'm happy to report that today, Emilie and I presented our local Oxfam shop with a cheque for £350. Along with our personal donations at the start of January we hope that this will be a small but helpful drop in the bucket for Oxfam, who are not only helping with the current Asian crisis but with other, less-heard-of and sometimes less-spoken-of disasters around the world as well as longer-term programs like their current Make Poverty History campaign.

While talking with our local store manager, we were very happy to hear that Oxfam has actually received enough in donations to fund their work in the Tsunami-affected region for the next five years.

And her’s the proof, Emilie hard at work on the blog! Oh, i…

And her's the proof, Emilie hard at work on the blog! Oh, i's so hard not to abuse this new moblog feature :)

It had to happen…

... Emilie's got a blog!

Emilie, my partner in all things and the dynamo that really keeps Ariaware (and not to mention the London MMUG) going, can now be found posting her photographs of our lovely city (Brighton) on EmilieWood.com.

Right now it's a plain old WordPress installation but something tells me it's going to be her unique little corner of cyberspace in no time. Already we've implemented two hacks: One to allow comments only for registered users (similar to the system we have here on FlashAnt) and another small one I added to that hack so that the user's username will show up by default in the comment form's Name field. (Just replace <?php echo $comment_author; ?> with <?php echo $user_nickname ?> in the author text field of the comment form.)

It must be true what they say, geekiness rubs off on people... Welcome to the blogosphere, my love! :)

FlashAnt Moblog up and running!

It's woooorking! :)

One of the biggest problems with troubleshooting a gateway like this is seeing the responses being sent (since they're being sent to the phone.) I had hacked in a few debug messages yesterday that were getting emailed to me but I still couldn't see the actual response being sent back to the phone. I knew instinctively that there was a problem with the response string and I knew it was probably due to a runtime error in the PHP code but I couldn't see what it was.

Enter the poster.php file to save the day.

This little file lets you call the MMS gateway with an MMS message from your computer and so any responses that are sent by the gateway are also sent to your computer. Five minutes after running it for the first time, the two dependency-related bugs that had arisen during the b2 integration were fixed and the gateway was purring like a kitten!

The Moblog will be put through its paces in Australia as I will be posting pictures and videos live from MXDU.

Do’t you just hate it when this happens? Yo’re in a train/…

Do't you just hate it when this happens? Yo're in a train/plane/hot air balloon, etc. and try to wake your PC up from its slumber and it does't. So you hold down the power key until it turns off then restart it... All the while hoping you wo't get, well, this!

International date format

I just made a little change on FlashAnt so that dates are now shown in International date format (IS0 8601). I find it much less ambigious than the so-called US and/or European systems (and actually use it in "real life" too!) The format is YYYY-MM-DD. It's logical and doesn't leave any doubt as to which field is the year, which the month and which the date.

How to spam your own site from your phone!

I decided to take things easy yesterday, after a tiring but very successful two weeks with the Hands On courses (more on that later) and hack up my blog so I could post pictures and videos to it from my phone (a Nokia 7610 I got so I could play with FlashLite on it before deciding that life is just too short to go back to writing anything in Flash 4 syntax.)

I started out by integrating Stefan Hellkvist's excellent MMS Diary module into the site -- initially thinking I'd have the Moblog as a separate section. I got that working (you can see it here) but quickly realized that it would be a shame that my posts wouldn't show up in the FlashAnt RSS and that users couldn't comment on them. I could have hacked said functionality into the new module but I didn't want to duplicate what b2 already does (or create a Frankenstein's monster of sorts) so I decided to full integrate the MMS/moblog feature into b2. It was actually not too difficult.

I had it working (at around 2am last night) to the point where I posted a test video (don't ask -- it was late!) and a test image and then hit the sack... Only to wake up to six posts (or was it eight?) this morning. Apparently, there's something wrong with the response my phone is getting that makes it think that the MMS was unsuccessful and the phone queues these unsuccessful attempts for resend. In effect, my phone kept spamming the site every so often, throughout the night!

My apologies to any aggregators this may have messed with. I should have the response message working correctly this morning so that won't happen again!

In the process of integrating MMS Diary into b2, I was able to add a few neat features to it. In the Moblog-as-separate section version, I added paging and in general I hacked it so it can now show 3gpp Video correctly (you need the Quicktime plugin to view it) instead of just saving it out as an unknown ".bin" file. Also, I implemented a primitive form of security, whereby you need to send a passcode with your message so that not anyone can use your gateway to post to your blog.

All this, so I can post live updates from MXDU starting in about a week's time :)

Fundamental bug in Flex Builder 1.5?

Flex Builder 1.5 appears to have such a fundamental bug in it that I was actually afraid to post something about it earlier, without double-and-triple checking my results and extensively testing it out, for fear of having overlooked something very minor. Basically, Flex Builder loses the ability to preview your applications in Design View if you subclass mx.core.Application or mx.containers.Form. Although this is perfectly legal -- and actually, I would argue, a best practice (more on that later) -- and although the resulting applications run when compiled, Flex Builder's Design, Run and Debug features stop working.

I am still hoping that there is at least an undocumented way to tell Flex Builder, "Hey, I'm extending Application/Form, so you can go ahead and display it as if it was an Application/Form" but I haven't been able to find such a way as of yet (and I've looked extensively into to the extensibility layer for Dreamweaver too without any luck in locating hooks into the Flex Design View renderer.)

Thus, the following simple example renders correctly in Flex Builder:

ActionScript:
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" childrenCreated="onChildrenCreated()">
  3. <mx:Script>
  4. <![CDATA[
  5. var counter:Number = 0;
  6.  
  7. function click ()
  8. {
  9. counter++;
  10. aTextInput.text = "You've clicked "+counter+" time";
  11. aTextInput.text += ( counter == 1 ) ? "": "s";
  12. aTextInput.text += "! Good on you!";
  13. }
  14. function onChildrenCreated ()
  15. {
  16. aButton.addEventListener ( "click", this );
  17. }
  18. ]]>
  19. </mx:Script>
  20. <mx:TextInput id="aTextInput" />
  21. <mx:Button id="aButton" label="Button"/>
  22. </mx:Application>

While the following does not:

ActionScript:
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <flexBuilderBug:ApplicationSubclass
  3. xmlns:flexBuilderBug="com.ariaware.flexbuilderbug.*"
  4. xmlns:mx="http://www.macromedia.com/2003/mxml"
  5. >
  6. <mx:TextInput id="aTextInput" />
  7. <mx:Button id="aButton" label="Button"/>
  8. </flexBuilderBug:ApplicationSubclass>

The code for the ApplicationSubclass, which you need to place in the WEB-INF\flex\user_classes\com\ariaware\flexbuilderbug folder of your Flex application, is given below:

ActionScript:
  1. class com.ariaware.flexbuilderbug.ApplicationSubclass extends mx.core.Application
  2. {
  3. // Components
  4. var aButton:mx.controls.Button;
  5. var aTextInput:mx.controls.TextInput;
  6. // Properties
  7. var counter:Number = 0;
  8. function init ():Void
  9. {
  10. super.init();
  11. addEventListener ( "childrenCreated", this );
  12. }
  13. //
  14. // Event Handlers
  15. //
  16. function childrenCreated ()
  17. {
  18. aButton.addEventListener ( "click", this );
  19. }
  20. function click ()
  21. {
  22. counter++;
  23. aTextInput.text = "You've clicked "+counter+" time";
  24. aTextInput.text += ( counter == 1 ) ? "": "s";
  25. aTextInput.text += "! Good on you!";
  26. }
  27. }

Similarly, if you were to include a Form subclass instead, Flex Builder cannot render a preview of that either.

If, indeed, there isn't a way to get the current build to display subclasses of Application/Form correctly, this is a major, fundamental bug and needs to be fixed as the first order of business. Subclassing the Application and Form classes is how Flex applications should be built. By following this methodology, you remove all code from the MXML files, making your applications easier to maintain and scale. (The currently de facto practice of including <script> tags and mixing code into your MXML are stages that we went through in the Flash world and grew out of.) ARP also supports this latter method of working and, in a series of articles that will be released this month (along with an update to ARP itself), you will see how this way of working also makes it child's play to migrate applications from Flash to Flex.

I do hope that there is a way to workaround this issue in Flex Builder currently and, if not, that it will be fixed in the next update.






Bad Behavior has blocked 0 access attempts in the last 7 days.