t.addEventListener(TimerEvent.TIMER, function onTimer():void{
shaked = false;
});
t.start();
}
lastAccelX = e.accelerationX;
lastAccelY = e.accelerationY;
lastAccelZ = e.accelerationZ;
}
What I do here is listen for accelerometer update Events and compare the values from the last with the current Event. If the delta is higher than the defined treshold value, the phone is shaken. To avoid to many shakes after another I set a timer. I'm not sure, if this is the best practice for doing this, but it works out well in my App.
First of all be aware to use RichEditableText instead of the RichText. Unfortunatly I couldn't get links to work in the RichText Component. Also set editable="false" focusEnabled="false" in the RichEditableText Component to make it clickable
Just a quick one that annoyed me a bit. After my Vacation I came back and was so happy that the Flashbuilder beta was released. It was really necessary coz I wasn't happy working with Flexbuilder 3 after seeing the Gumbo preview at Max.
So, I started a new AIR Project in Flashbuilder and got stuck imediatly. I wanted a transparent application and this was really easy in Flexbuilder 3.As we now have the Spark framework things have changed a bit. To get an application with no crome and transparency you have to do the following:
Set system Chrome to none in the application descriptor file
Set transparent to true in the application descriptor file
Copy the file ApplicationSkin.mxml from the flex4 library to your project in a folder skins and name it ApplicationAlphaSkin.mxml
add the state: <s:State name="normalInactive" /> as first state in ApplicationAlphaSkin.mxml
set alpa="0" on the solidcolor of the backgroundRect
set the new skin in you application tag: skinClass="skins.ApplicationAlphaSkin"
Hey you guys out there.
I'm sorry for not blogging for ages, but i was really busy with some awesome projects and and a long vacation in the US. I'll try to get all the stuff posted here in the next few days!
for those of you out there around Munich I'm talking about the new version of Flex Builder & Flash Catalyst. The talk is happening on the 27.01.09 at the Haus der Kommunikation, Brienner Straße 43-45 a-d, 80333 Munich(Service Plan).
It will be a hands on session with only a few slides. I'm going to show the great new workflow between designer and developer. You're going to learn how easy it will be to create a dynamic application starting with a photoshop file using Flash Catalyst and Flex Builder. I'm going to show how easy it is to convert artwork to components and export these to Flex Builder. In Flex Builder you will learn about the new features that will make a developers life a lot easier.
Today I had my Adobe Certified Expert Exam for Flex 3 and AIR here in San Francisco and what should I say, I passed! I must say it was pretty tough, because the exam covered a wide range of Flex and AIR Development including every different aspect there is.
These videos were recorded today at Max in San Francisco.
The Adobe Team showed us a demo of what is possible with Flash Catalyst. I had to split it up in two parts for youtube.
And guess what, Adobe was so kind to give us a DVD with Flash Catalyst and the new Flexbuilder 4, Codename Gumbo. As soon as the Catalyst videos are on youtube, I'm going to post an awesome preview on Gumbo. Stay tuned!
I arrived in Lovely San Francisoco yesterday night. After Alex and Sven picked me up at the Airport we went out for a decent dinner at a Thai place.
Today we registered for the Conference in the Mocone Center. We got our Bagdes and a quit ugly Bag. Fortunatly it's eco friendly... After that we did a little sightseeing including a Cable Car trip to Fisherman Warf. Really Nice!
Now I'm looking forward to tomorrow on what I'm going to see at the conference. There are quite some rumors about what we're gonna be presented. Flash Catalyst(Thermo) will be one of the Big ones. Stay tuned for more info tomorrow.