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:
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.
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.
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.
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:
- 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
Seems a nice event to attend