This question comes up a lot, mostly from the standpoint of creating lightweight app. managers in Flash CS3 that load independent portions of an application that are written in Flex. I’ve used this in the past for PureMVC applications that load other PureMVC apps, for example. The technique in the sample files is a quick hack, but hacks can be fun. No time for a full-on tutorial, so you’ll have to deconstruct it yourself. Pretty easy to figure out and you will probably be able to find the cleaner way to accomplish the task as well 🙂
The Flex -> Flash example shows how to create a simple Flex app. with a button that dispatches an event on click. The Flash CS3 Document class loads the .swf created by Flex and assigns a handler for the event. The handler manipulates the button and calls a public method defined in the Flex app’s SCRIPT block.
The same method can be used to load Flex into Flex and there are examples of both. The Flex -> Flex example shows a couple variations that may be of interest to you.
There is a README file with the code distribution. Download the files here and have fun!
Interesting draft weekend. Thought my two teams (Cowboys and Falcons) did okay. Kind of surprised the boys did not take a receiver, but for a good draft pick, need must coincide with opportunity. The added 3rd- and 4th-round picks next year could be parlayed into a trade-up for a good receiver, so we’ll have to hope Glenn has at least one good year left. Nice to see the Falcons put the Vick era behind them. Not sure that Ryan is really a top first-round QB, but I hope it works out and hope to see the Falcons on the rebound this year.
Although it’s been over 25 years since I touched a racket, I’ve decided to take up tennis as part of my general ‘get back in shape’ initiative 🙂 Just curious if there are any Flash/Flex tennis players in the D/FW area? Once I get my game back (interpretation – at least hold my own against an 8-year old), maybe we ought to have a Flash/Flex league or something. Might be a good way to network and keep in shape at the same time.
I remember bluffing my way through setting up PV3D to work in a Flex environment. If you’re just starting out with Papervision 3D, then check out Fabian’s Installing Papervision3D on Flash and Flex tutorial. So easy, a caveman could do it 🙂
A brief mention of some recent 3D developments. Been following the Alternativa engine development for a while and their blog shows some very interesting demos. At a glance, it seems to be optimized for interactive gaming, whereas PV3D is being developed for very general usage. I could be way off on that – just a quick observation 🙂 Check it out for yourself here.
Eduardo Dias da Costa pinged me about a 3D panoramic viewer, which you can see here. That’s it for now … back to work!
A quick update from the underground (should be coming up for a bit of air in the near future). A new method has been added (and a small bug fix) in the quad. Bezier class. As always, Singularity can be downloaded here.
A preview of upcoming methods include Bezier y at x and a possible TechNote on easing with parametric curves.