Archive for the 'Flex' Category
PaperCube without Flex and only pure AS3
Because of that comment were i was asked if the papercube will be run without Flex but also with XML-files, so i looked what is the difference between Flex Datahandling and pure AS3-Datahandling with XML. There is no big difference. Of course the Main-Classes (Document-Classes) can’t extend the UIComponent-Class and must extend the MovieClip-Class to be visible on Stage. The main difference is to handle the XML-Data. The refactored class looks like this.
package net.borishorn.pv3d.data
{
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import net.borishorn.pv3d.events.PaperEvent;
public class PaperData extends Sprite
{
public var sides:XMLList;
public function PaperData()
{
getData();
}
private function getData():void
{
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
loader.addEventListener(Event.COMPLETE, resultHandler);
loader.load(new URLRequest("xml/papercube.xml"));
}
private function resultHandler(event:Event):void
{
try
{
sides = new XMLList(event.target.data);
sides = sides.children();
dispatchEvent( new Event(PaperEvent.XML_DATA_LOADED, true, false));
}catch (e:TypeError)
{
trace("There was something wrong");
trace(e.message);
}
}
}
}
The whole package will be found here
No commentsFive3D is now managing Bitmaps
Yes, it’s true my favourite 3D-Engine Five3D is now competing with bitmaps and videos. All you need to do this is grabbing the new 2.1 Package of Five3D and if you plan to build some crazy apps with Flex you have to include the Flash CS3-Classes into your Flex Build Path, because Five3D 2.1 needs to import fl.motion.Color ( don’t ask me why, ask Mathieu)

When you succeded with that step everything is ready for takeoff and you can start. My first try to bring some bitmaps into the vector-world of Five3D is this piece. The inspiration came across by a photo by my buddy Sören Rogoll who take a picture from my closer backyard.
When you click the button and the ships appear, you see bitmaps in Five3D.
var ship:Bitmap3D = new Bitmap3D(new Images.mary().bitmapData); scene3D.addChild(ship);
This line adds a Bitmap3D into the DisplayList. Now you access to rotationY, rotationX, rotationZ and the z-Index. Combine it with the smooth 3D Vectors. There is a big potencial in Five3D.
3 commentsFirst Steps with FIVe3D and Flex
Hola,
a few weeks ago, Mathieu Badimon published the AS3 Version of his incredible 3D-API FIVe3D and i decided to play a little with it. The demos that Badimon posted in his Lab are really stunning and when i first saw these amazing vector-driven pearls of modern flash-design, i couldnt close my mouth for a long time. This is what i call passion.
PaperCube - Loading Videos and Bitmap at runtime with Papervision3D
Good morning,
instead of chilling in the sun, i decided to refactor the PaperCube. In that version, you could load videos and bitmaps at runtime, driven by a XML-File.
Note: In some cases (i didn’t had the time to inspect the code), there is a bitmap error( ArgumentError: Error #2015: Ungültiges BitmapData.) In that case just refresh with the f5-key and everything will works fine. Computer are sometimes like girls
Papergrid - Get more into PV3D and Flex
Ok, not that new but i think why not share that experiment. Again it`s based by a PV3D-Flash App coded by Lee Brimelow
It show how to integrate a bitmap into the Flex Framework - I like it more to code AS3 in Flex because it`s so intuitive to extend the built in Flex-Classes. How said it Doug McCune :
Flex changed my life
![]()
PaperGrid in action
PaperGrid’s code
PaperCube - How to use MovieMaterial in a Flex App
Moin,moin
influenced by the one an only Lee Brimelow , who made a demo using the Great White Repository of Papervision 2.0, in which he gave interactivity for MovieClips, i tried to make the same with a Flex based application. It`s not that easy, than it is in a Flash based app, but the good thing, when using the Flex Framework, that everything works, when you understand the core functionality. So that line is the magic for creating a silly cube with Papervision
var cube_right:DisplayObject = new Images.skyline() as DisplayObject; cube_right.name = "right";
That is the same approach when using a MovieClip with the Flash IDE. But in Flex you have to cast an embedded image as a DisplayObject for the sake of interactivity.
UPDATED VERSION WILL BE FOUND HERE
11 commentsFlex BulkLoader
Today i’ve played a little bit with Arthus Debert’s BulkLoader and put it together in a really simple Flex-Application. It does nothing more than loading content in a streamlined form, so the perfomance for asset-overheaded applications should be better. Next time i give Donovan Adams QueueLoader a try.
1 commentA so called Adventskalender
In Germany there is a tradition, that you get some goodies in form of an calendar and i had the time to experiment with Tink’s FlexPapervisionEffects. Next year i’m gonna take that thing to another level and fill some life in this app.
http://labs.vizar.de/advent (Because ‘im a smart developper view source is always enabled
)



