Archive for the 'Flash' Category

Flex File Manager - Source Files

This is in response to this post: http://www.castlesblog.com/2006/09/18/flexfm/

Flex file manager was something that I wrote with a demo version of Flex 2 and never really finished it. To my surprise I have had quite a few requests for the source code so I’ve finally gone and found all the files and packaged them up so you can download them from my website.

It uses a very old version of amfphp and only uses amf0 (I couldn’t quite work out how to do amf3 at the time). I think amfphp supports amf3 now so if someone is interested, they might want to modify it.

As for copyright stuff.. There are no restrictions on what you use as long as I (Marc Castles - www.castlesblog.com) get a mention in the credits if you use my source code.

The file manager was never really finished and I don’t even know how secure it is. I’m sure there are heaps of bugs so I wouldn’t suggest using it in a production environment.

Best of luck with it!

Download Flex File Manager

Chunky flash game

Today is the release day for a flash game I’ve been working on for the last few weeks at work. Its a flash game for Campbells Chunky Fuel up for footy competition. If your interested in haveing a play or checking it out have a look here: http://www.campbellschunky.com.au/ (click games)

Kickball

When I was playing around with the Fuse Kit (see previous post) and I came up with an idea to make a little flash game with it. While I didn’t use the Fuse Kit for the whole thing it did prove to be very helpful when creating this…

have fun!!

I think I might update this in the future so that:

  • ball blurs (using fuse kit)
  • more balls to click and they bounce off each other

Let me know what you think and any other suggestions.

DIGG THIS

Fuse

Last night I stumbled across the Fuse Kit. The Fuse Kit is a package of Actionscript 2.0 animation and filter management tools. What that means is you can do heaps of cool animation easily all written with code. I have used the Tween and Transition classes that were available in flash since mx but these ones seem to be allot more polished and heaps more powerful. anyway.. I was playing around with the classes and this is what I came up with to test the Penner easing class...

pretty cool eh!

If you would like to see how simple it was check out my code:

Actionscript:
  1. import com.mosesSupposes.fuse.*;
  2. ZigoEngine.register(Fuse,PennerEasing,FuseFMP);//Shortcuts
  3.  
  4. var numBalls:Number = 5;
  5. for(var i:Number=0;i
  6. this.attachMovie("ball","ball"+i,i);
  7. this["ball"+i].gotoAndStop(randRange(1,3));
  8. FuseFMP.writeFilter(this["ball"+i],"Blur",{blurY:0,blurX:0,quality:1});
  9. animate(this["ball"+i]);
  10. }
  11.  
  12. var easing:Array = new Array("linear", "easeInQuad","easeOutQuad","easeInOutQuad","easeInExpo","easeOutExpo","easeInOutExpo",
  13. "easeOutInExpo","easeInElastic","easeOutElastic","easeInOutElastic","easeOutInElastic","easeInBack",
  14. "easeOutBack","easeInOutBack","easeOutInBack","easeOutBounce","easeInBounce","easeInOutBounce",
  15. "easeOutInBounce","easeInCubic","easeOutCubic","easeInOutCubic","easeOutInCubic","easeInQuart",
  16. "easeOutQuart","easeInOutQuart","easeOutInQuart","easeInQuint","easeOutQuint","easeInOutQuint",
  17. "easeOutInQuint","easeInSine","easeOutSine","easeInOutSine","easeOutInSine","easeInCirc",
  18. "easeOutCirc","easeInOutCirc","easeOutInCirc"
  19. );
  20.  
  21. function randRange(min:Number, max:Number):Number {
  22. var randomNum:Number = Math.floor(Math.random() * (max - min + 1)) + min;
  23. return randomNum;
  24. }
  25.  
  26. function animate(mc:MovieClip):Void {
  27. var f:Fuse = new Fuse();
  28. var randomx:Number = randRange(20,480);
  29. var randomy:Number = randRange(20,380);
  30. var randomspeed:Number = randRange(1,6);
  31. var randomscale:Number = randRange(50,150);
  32. var randomrotation:Number = randRange(0,360);
  33. var randomEase:String = easing[randRange(0,39)];
  34. var blur:Number = (50-(randomscale-50))/4;
  35. mc.swapDepths(randomscale);
  36. f.push({target:mc,_xscale:randomscale,Blur_blurX:blur, Blur_blurY:blur, _rotation:randomrotation, _yscale:randomscale, _x:randomx, _y:randomy, seconds:randomspeed, ease:randomEase, func:animate, scope:mc, args:mc, delay:0});
  37. f.start();
  38. }

Flash Experiment 1

I have heaps of random flash experiments sitting here that I have kept for no particular reason. This one is really basic and serves no purpose at all. I just enjoy watching it. I call it "Ball in tunnel" and well.. its a ball in a tunnel. I was going to make a game out of it but I lost interest after about 10 minutes.