Archive for the ‘Uncategorized’ Category

Flash Freelancer wanted

Thursday, June 5th, 2008

TwistImage, the company I work for is currently looking for a freelancer for a small project. That project is a small game and is not very complex, but it would require some skill in ActionScript 2 (intermediary level). The freelancer would have to be free the next two weeks (we need this project fast) and would have to communicate with our office every day to report on progress. If you think you have what it takes for the project send your portfolio or some of your work to mario [at] twistimage.com.

MXNA is back!

Tuesday, May 6th, 2008

MXNA is back and it is now called feeds.adobe.com. It also runs way faster. I was wondering when they would change the url that contained Macromedia to something containing Adobe instead and it looks like that time is now. I am really happy it is back up because I felt all alone not knowing what the Flash community was doing. I’ll read you tomorrow feeds.adobe.com!

Interactive scene with Papervision3D (Great White)

Tuesday, December 11th, 2007

I updated my previous experimentations with papervision3D to version 2.0 (Great White). I can say that it wasn't too hard thanks to this John Grden article.  But is article doesn't explain everything. A lot of things have moved since the phunky branch; as an example, Planes are now in the org.papervision3d.objects.primitives package. Once you adjusted all the package you previously used so that they can now compile, you can start playing with the new toys. I didn't try anything fancy; I just wanted to make my materials interactive. It actually was easier than with the previous version even if I had less documentation. I didn't quite get how to use the Interactive Scene Manager in the previous version.

So if you want to make your 3D objects interactive, you first have to advise the viewport3d object. You do it in this way:

Actionscript:
  1. viewport = new Viewport3D(0, 0, true, true);

The fourth parameter of the Viewport3D constructor is the one you want to set to true. Once that is done you have to make your individual materials interactive also.

Actionscript:
  1. var mam:MovieMaterial = new MovieMaterial(myMovie);
  2. mam.interactive = true;
  3.  
  4. var p:Plane = new Plane(mam, 100, 100);
  5. p.addEventListener(InteractiveScene3DEvent.OBJECT_OVER, handleMouseOver);
  6. p.addEventListener(InteractiveScene3DEvent.OBJECT_CLICK, handleMouseClick);

You can see that you have to set the interactive property of the material to true in order to interact with it. In the previous, I also created a plane and used the MovieMaterial on it. I then added the listeners on the plane itself. I don't know if it is better to add the listeners on the plane or on the material but it worked fine this way, if you have more insight on this feel free to make a comment about it.

You have to import the org.papervision3d.events.InteractiveScene3DEvent package in order to use the 3d events. The events you can use are these ones: OBJECT_CLICK, OBJECT_OVER, OBJECT_OUT, OBJECT_PRESS, OBJECT_RELEASE, OBJECT_RELEASE_OUTSIDE , OBJECT_MOVE, OBJECT_ADDED. They are all self explanatory so I won't explain them.

You now have everything you need to make an interactive flash movie using papervision3D, I hope I shed some light on that.

Using Flex with Flash problems

Sunday, November 18th, 2007

I am really trying to integrate Flex into my work but I keep bumping into problems. I am working on a game that uses movieClips for my Sprites (Monsters). The thing is the when you embed a movieClip from Flash it loses all its ActionScript. I know that you can use a method that addsScriptAtFrame but it seems to be complicated for nothing. Also what happens if I have a movieClip with a movieClip inside it? I really want to use Flex, I think it's a great tool, the profiler is really something I wanted and it works great, but why is it so complicated to make it work (Flex)...


Close
E-mail It