We are currently working on making some changes in DIF. Soon we’ll have candy for you all! Check back for news!

The MXMLLoader Class > Dynamic load MXML In Flex Builder 3

Posted: April 24th, 2008 | Author: Ivan Valadares | Filed under: Actionscript3, Adobe Flex, Code, Events, WorkAround | 16 Comments »

First of all I don’t really use flex to do flex stuff and I’m not a big fan of flex. But in my latest project I had to build with flex an interface witch would be always diferent (a dynamic interface). In the beginning we thought in parsing some type of XML, but if we are in flex why not parse MXML? I took a look over the internet and I only found MXMLLoader component v0.01, witch didn’t compile on flex builder 3 and was really in the beginning. So there it is, as XMMLLoader class for flex builder 3. You just have to instantiate the class with the mxml :

You can access objects by name:

Or by id:

And have access to component events like:

The class with an example:

mxml-loader.zip

Example swf


Load an external flex swf into a flash project and communicate with him.

Posted: April 15th, 2008 | Author: Ivan Valadares | Filed under: Actionscript3, Adobe Flex, Code, Events | 5 Comments »

Loading the swf is easy; you can make a normal loader and load it. And now the tricky part, if the swf is a swf flash file you can call the function you want, but in flex, because it have 2 frames, (first frame is just for loading), you need to wait until frame 2 is available, you can’t also access directly to a swf, you have to refer application before, so there’s the code:

you can also add Event Listener's to myClip.application , like myClip.addEventLIstener(“ON_CHANGE”,function), so by this way you can embed flex swf into an flash application and communicate with him by calling function and receiving events.


Flex3 and AIR 1.0 are out!!!

Posted: February 25th, 2008 | Author: Idoru | Filed under: Adobe AIR, Adobe Flex, Events | 2 Comments »

These were the news everyone was waiting for, both AIR and Flex3 are out, they're final, ready to be taken by us and pushed to new levels!!!

The details and pricing for Flex3 can be found here and I find them quite accessible for a full version going only for CHF 319.00, it's a bargain for the best Flash/Flex development IDE.

As for AIR it now has a nice little official Adobe link, and they even show an impressive list of clients for a just released product, featuring the likes of ebay and nasdaq.

So get your copy of Flex3 while it's fresh, I know I'll get mine ;)

Ah, also for those of us who live in Europe we'll have plenty of chances to catching the on.air tour here's the link with the dates.


Interparla 2008

Posted: February 9th, 2008 | Author: Ivan Valadares | Filed under: Events | 2 Comments »

interparla2008.jpg

I haven’t been blogging for the past weeks because beside my regular Job I have been working with Patricia Gouveia on a flash interactive installation. This work (game) is based on the “The prisoner’s Dilemma”, it have 3 different distinct levels (maze, form, fight) and stimulate the users to act on a cooperative behavior mediated by two joysticks and a projection. It’s a fast game and required some skills.

The work is going to be show in Interparla 2008, which is a festival in Parla (Madrid) between January and February. This festival is going to combine a group of artists, musicians, cinema and companies from the digital area. This year the festival received Portugal as the guest country. In this context, installation came up, the game "The prisoner’s Dilemma" is based on the co-operation between opponents.


Customized actions for FLVPlayback Component

Posted: January 22nd, 2008 | Author: ruffy | Filed under: Actionscript3, Components, Events, Tutorial, WorkAround | 1 Comment »

If you need a standard flash videoplayer, then the FLVPlayback component is the right thing for you.

Just create a new FLA and drag&drop a FVLPlayback component from the components library into a movieclip in your library, export it for actionscript and compile the SWC.

All the functionallity stuff is already handled by adobe. But that's where I got stuck for quite some
time. I needed a player, that used the forwardButton and backButton for switching the videos (and not seeking forward and back).

The answer was really simple: Just override the functions once the component loaded its skin:




FITC Amsterdam 2008

Posted: January 14th, 2008 | Author: nuno | Filed under: Actionscript3, Events, FITC | No Comments »

Via the Papervision3D blog I heard about FITC Amsterdam 2008. Here are some of the talks that caught my eye:

- Papervision3D Workshop (by the Pv3D core team)
- Building Red5 Applications
- Chop the Hydra!
- Kaboom!!! Flash Pyrotechnics (and other particle effects)
- AIR Conditioning
- Adaptable Interfaces
- Flex Solutions For Your Daily Development
- etc..

Seems a nice event to attend ;)