played a bit with the parameters and got a much smoother result:
view
source
Blog
-
Playing flv in slowmotion
I found a nice solution for playing flv files in slowmotion. You basically play the original video and store BitmapData Objects while it`s playing in an Array. Than you can just show these stored BitmapData Objects in at a given intervall slower than the original flv is playing. You just need to store the difference between what has been showed and were the original flv playhead is. This way the RAM increase is not too big.
Here is a basic prove of concept.
and here is the source.In a final implementation one would layer the Bitmaps above the actual Video.
The whole thing is done in Flex but the same technique can be applied to Flash 8 projects as well. -
cheap java hosting in germany?
Having all those nice tools like Flex Data Services, the new Socket class… lying around and playing with them localy i would like to bring it to the web. For now i just have a “standard” hosting package that just offers me php5. Does anyone can recommend a not to expensive hosting company that allows me to install all those tools. I would need a tomcat, be allowed to run my own SocketServer and install extensions like the open transaction manager.
Thanks for any advise. -
Clone Instances and keep Class reference
While checking out the Socket class i found a cool little trick. I´m sure everyone knows of the possibility to clone an Object with the help of the ByteArray Class. This method was introduced (at least to me ;-)) by senocular here.
The function looks like this:
function clone(source:Object):* {
var copier:ByteArray = new ByteArray();
copier.writeObject(source);
copier.position = 0;
return(copier.readObject());
}
The problem was that all the class information was lost. With class information i mean type info and thinks like methods were unavailable after cloning the object. When you try this:var t:Test=new Test();
t.test=”hallo”;
var newObj=clone(t);
out.text=newObj.test;
out.text=newObj.sayHello();I get the following error:
TypeError: Error #1006: sayHello ist keine Funktion.
at test/::show()
at test/___Button2_click()
But there is this nice Method registerClassAlias from the flash.net package. Using this:registerClassAlias(“de.benz.something”, Test);
var t:Test=new Test();
t.test=”hallo”;
var newObj=clone(t);
out.text=newObj.test;
out.text=newObj.sayHello();will keep the class information intact and the call to the method will be succesfull.
Man this is sooo cool. I´m loocking forward using this in two years when my company switches to flash 9 🙂
Anyone looking for a flex developer?cheers
Benz
I
-
My First Steps With Flash Data Services
Today i finally got the time to install the flex data services. For me this is quite an adventure as i`m not really a server or java guy. So for me the first thing was to get tomcat. I know it would have been easier to use the integrated jrun but i think tomcat is a more common setup.
Installing Java Open Transaction Managet (JOTM)
With this decision comes the first problem. In order to use the data management features one has to install the Java Open Transaction Managet (JOTM). No big deal if you know that 😉 You can grab a version here.
Unzip the file and locate the lib folder. Now copy all of those jars into your tomcat project folder under WEB-INF/lib. Here i struggled for a moment. I thought know the CRM example that ships with FDS should work fine but it didn`t. The solution was to create a config file under TomcatInstallation/conf/Catalina/localhost/ . The file needs to be an xml file named after your webapp directory e.g. samples.xml. Assuming your webapp directory is called samples the content should look like this:
<Context docBase=”${catalina.home}/webapps/samples” privileged=”true”
antiResourceLocking=”false” antiJARLocking=”false”>
<Transaction factory=”org.objectweb.jotm.UserTransactionFactory” jotm.timeout=”60″/>
</Context>Replace ${catalina.home}/webapps/samples with your location.
With this setup i was able to run the CRM samples. Next step will be to configure everything for messaging. What would be the best messaging provider for tomcat?
As i said i`m pretty new to all this server/java stuff but i`m allready really impressed by FDS.Anyone knows of good tutorials for starters? Any suggestions?
Cheers
Benz -
Flexbuilder Extensions
Dirk of richinternet.de recently released a TODO/FIXME extension for Flexbuilder 2.
It´s nice to see those extensions come up so quickly. I just hope Adobe is going to release ASDoc quickly.Anyone knows of other extension?
-
Flex Sample Code at DeveloperCenter
The Flex example page at adobe has been updated. They added SourceView for three of those examples:
MyToDoList
SoundVisualisation Component
and Flickr PhotoSearchthey also posted four new Quick Start tutorials here.
-
Flex in Germany?
I would like to know which companies in germany are doing flex applications or at least plan to do so.
So far i only know of http://www.msg-websolutions.de/. -
Cairngorm for starters
I`m in the process of exploring the cairngorm framework i collected a lot of useful links that i want to share here:
- Cairngorm home http://labs.adobe.com/wiki/index.php/Cairngorm
- How Business Logic can manage Views by Alex Uhlmann part 1 and part 2
- Simple Sample Application by Alex Uhlmann
- The best introduction to Cairngorm i found from the inventor himself (Steve Webster). Part: 1,2,3,4,5,6
- Cairngorm and Webservices Sample Application by Jesse Warden
- Cairngorm Clock Sample Application by Richard B.
- Slides from a RocketBoots Seminar fairly old by still some valuable information.
- Web Developers & Designers Journal article about Cairngorm and Flex
- Architecting a Flex App very informative blog entry from the Adobe Kiwi Project
- Note Tag: Anatomy of a Flex Mashup DevNet Article about the Note Tag application
this list will be updated as i continue my exploriations.
-
Actionscript 3 Resources
Here are some useful links to get started with AS 3:
From www.helpqlodhelp.com:
- Actionscript 3 – First Steps
- Actionscript 3 – First Steps II
- Actionscript 3 – First Steps III
- Actionscript 3 – First Steps IV
- Actionscript 3 – First Steps V
- Actionscript 3 – First Steps VI
- Actionscript 3 – First Steps VII
- Actionscript 3 – First Steps VIII
- Actionscript 3 – First Steps IX
- Actionscript 3 – First Steps X
- Actionscript 3 – First Steps XI
- Actionscript 3 – First Steps XII
- Actionscript 3 – First Steps XIII
- Actionscript 3 – First Steps XIV
- Actionscript 3 – First Steps XV
Tutorials from by Betaruce:
- Basic tutorials for AS3 with focus on the Flash 9 alpha preview
Flashguru posts:
- Loading external Resources (Bitmaps) with AS3 here.
Senocular:
- Using AS3 with the free Flex SDK here.
GoToAndPlay() Tutorials:
assertTrue:
to be continued…