About focus

Unity3D Developer, Asset Store publisher: http://j.mp/focus_uas Flash Developer in the past. Love bytecode.

XFLTool

Hi again, friends! I’m glad to share with you some cool news:
– I started Russian blog version (http://blog.codestage.ru/ru/)
– and I’m present to you first public alpha version of my pet project XFLTool!
Read more about XFLTool here: http://blog.codestage.ru/ru/xfltool/

Found a typo? Please, highlight it and press Shift + Enter or click here to inform me!

Share Button

Some Flash News

Flash Player 10.3 released

General changes:

  • Media measurement (video analytics)
  • Acoustic echo cancellation
  • Enhanced privacy protection
  • Security enhancements

More: blogs.adobe.comFlash Player 10.3 release notes

Incubator updated

General changes:

  • Native JSON Support (yeah!)
  • G.711 audio compression for telephony
  • H.264/AVC SW Encode for camera encoding
  • GC Advice (“AS3 code can advise the GC on when to schedule the disruptive end-of-GC pause”) – use System.pauseForGCIfCollectionImminent
  • Socket Progress Events
  • Pause/sleep/resume Events
  • Secure random number generator
  • Large Bitmap Support — “No limitations in BitmapData sizes! Yes, really cool” (c) Thibault Imbert

More: labs.adobe.com, labs.adobe.combytearray.org

Found a typo? Please, highlight it and press Shift + Enter or click here to inform me!

Share Button

Alternativa3D 7 mouse intersection without mouse movement tip

Hi! If you’re foced to avoid mouse movement, but still have to find mouse intersection with a some object (e.g. if moves only object), here is a quick tip:

//place this code to the EnterFrame or Timer event handler
var origin:Vector3D = new Vector3D();
var direction:Vector3D = new Vector3D();
var concatenatedMatrix:Matrix3D;
var rayData:RayIntersectionData;

_camera.calculateRay(origin, direction, mouseX, mouseY);

// _containerSurface - object to intersect
concatenatedMatrix = _containerSurface.concatenatedMatrix;
concatenatedMatrix.invert();
origin = concatenatedMatrix.transformVector(origin);
direction = concatenatedMatrix.deltaTransformVector(direction);

rayData = _containerSurface.intersectRay(origin, direction);
if (rayData)
{
  // just highlighting intersected face
  rayData.face.material = new FillMaterial(0xFF0000);
}

Found a typo? Please, highlight it and press Shift + Enter or click here to inform me!

Share Button

FlashDevelop as3 syntax coloring scheme

Hi, this is a syntax coloring scheme I use in my daily work in the FlashDevelop IDE:

It greatly saves my eyes all day, hope you’ll like it too.
Its based on one another coloring scheme, but I don’t remember it’s author unfortunately 🙁
Download

Found a typo? Please, highlight it and press Shift + Enter or click here to inform me!

Share Button

Inverting animation in the Alternativa3D

Hi! If you wish to reverse (play from the end to the beginning) some of your animations in the Alternativa3D engine, you could try to set the AnimationClip‘s property speed to the negative value, but it could be harmful in most cases and don’t officially supported.

Unfortunately, there is no any information or suggests about inverting animations like so on the public yet and nothing about it in the official documentation. I think, current engine build (7.7) have no lightweight native implementation of this functionality. It could be nice to see something like boolean reverse property at the AnimationClip class, isn’t it? Bot there is nothing similar yet =(

So, with great tip from the Vladimir Babushkin (about rebuilding animation by keyframes with reversed time), I came to this piece of code:
Continue reading

Found a typo? Please, highlight it and press Shift + Enter or click here to inform me!

Share Button