Last night I playing Animal Crossing City Folk over the Internet with voice chat for the first time, it was a great experience. The Nunchuk and Wiimote are great in walking around, fishing and picking up thing and the WiiSpeak work pretty well, sometimes there’s an echo but overall it’s ok I think. Check my other post to get my Wii code and Friend code at http://bit.ly/vestegal
There’s great people to meet, you have Team Impact, and iJustine to name a few. Once you’ve exchanged the Friend codes you’re ready to go.
Team Impact: http://www.youtube.com/user/TheTeamImpact
iJustine;
http://twitter.com/ijustine/statuses/1779233608 http://twitter.com/ijustine/statuses/1779506726
I uploaded the video I made also to other sites using Tubemogul, Youtube is not listed because the file was too big.
Yahoo! http://video.yahoo.com/watch/
And then the mouse joined the party and said, where is everybody? Who brought the paint and the cookies?, I thought we had a deal he said. Moments passed as he was chasing the reflections on the dancefloor. He had good fun, but there was no painting whatsoever. He felt a bit timeless, yes he wasted his time, so he disapeared. The party continued but in a different timelapse. The mouse was dreaming while the crowed started to gather and fill the dance floor. The dream entered the dance floor and the people were all awed by the beautiful colors that the mouse was dreaming. There were people with iPhones who took pictures and uploaded them to the internet. The media started to pickup these images. The mouse was still dreaming and the colors became more vibrant. The tv people showed up and entered the venue with their camera’s and recording the amazing happening. The party lasted till late. When the mouse woke up he turned on the tv, and watched his dream unfold before his eyes and was really excited, so he walked to the refridgerator and took his cheese and a belgium beer. He had so much fun and called up all his friends, but all his friends were sleeping. To be continued …
My Wii Animal Crossing friend code 1204-6041-3270 name/town : wiibart/Vestegal
Super dad movies No Comments »We were a bit surprised that the html var didn’t contain the json object, after a little search I found that you have to use eval to get it to work.
var html = $.ajax(
{
url: “json.txt”,
contentType : “json”,
async: false,
contentType : “script”
}).responseText;
alert( eval(’('+ html +’)').user );
[json.txt]
{
”user” : “wiibart”, “password” : “secret”
}
I thought code behind was easy to implement in Flex, but I guess it’s not! I guess I have to stick to the following approach to separate logic in a .as file. Note: the .as file cannot be a class, it’s just a import, where you use the applicationComplete=”init()” to simulate what you normaly would do in the constructor of the ‘code behind’ <?xml version=”1.0″ encoding=”utf-8″?> <mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml“ xmlns:app=”*“ layout=”absolute“ applicationComplete=”init()” backgroundColor=”#000000“ horizontalScrollPolicy=”off“ verticalScrollPolicy=”off“> <mx:Script source=”Main.as” /> </mx:Application In my attempt to get code behind of the main mxml I used a tutorial provided by Adobe, see code below. It was nice to see that the constructor was executed, but when I tried to access label1.text I got a null reference error. This is documented also in the Tink document (see the quoted article) [CodeBehindTest.mxml]
<?xml version=”1.0″ encoding=”utf-8″?> <app:MyClass xmlns:mx=”http://www.adobe.com/2006/mxml“ xmlns:app=”*“ layout=”absolute“> <mx:Label x=”50” y=”38” text=”Label” fontSize=”24” id=”label1“/> </app:MyClass> [MyClass.as]
package { import mx.core.Application; public class MyClass extends Application { public function MyClass() { super(); // this.label1.text = “test”; <- label1 is not available from this //label1 is available! but running this results in a null reference error… Application.application.label1.text = “test”; } } } Quoted article;
I was just reading a bunch of blogposts and I saw one about code behind which hooked me. Code behind is a pattern consisting in separating the view and the logic. There is an official way to implement it in Flex, as advocated by Adobe : Using Code Behind. A bunch of time ago, I created my own component using this pattern and really couldn’t see any use to this, but I kept the thing in mind thinking it could become useful sometimes. When I saw this article today, I thought “oh maybe I will be able to get the point in using this”, and I started reading… I learnt really few things in the post, but one comment had a link to aTink BlogPost where he advocated that Flex’ way of doing code behind is bad. I must admit I agree with some of his statements, most in fact, but I don’t love his method any much than the classic one using inheritance : it looks like the very classical include everybody has been using with javascript, and which clearly wasn’t very really easy to maintain. So I think I will go on using nothing like partial classes and code behind, and the script tag along with data binding should be fine for me.
.NET ASPX is pretty straightforward, every aspx page has a .cs file that contains the class wich is used. You can access components in the aspx from the .cs class. The contructor and other init events just are available. I wanted this also for Flex/As, but apparently it’s not just that easy.
Code behind, or not code behind ?
http://flexme.wordpress.com/2007/07/06/code-behind-or-not-code-behind/




Recent Comments