In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

forked from: What is hapening with .w ??

Get Adobe Flash player
by makc3d 15 May 2012
  • Forked from makc3d's What is hapening with .w ??
  • Diff: 5
  • Related works: 1
  • Talk

    bradsedito at 16 May 2012 22:03
    Woah, what did you stumble upon to, the Quantum AS3 realm? Quite a mind fuck... I even took this off wonderfl to my ide and tried to figure it out with no luck. i'll be watching this thread because its bugging me, this makes no sense. lmao *hair falls out*
    bradsedito at 16 May 2012 22:04
    Hm, quantum... Perhaps try not observing it, and see if you get different results? =P
    makc3d at 17 May 2012 01:55
    I logged a bug, let's see what adobe guys will reply. If anything.
    bradsedito at 17 May 2012 03:56
    I'm was on the Flash CS6 / Molehill PreRelease team, if you want to give me a copy of the bug report I could try it on my end as well. Don't really know why but this one fascinates me. Haha. bradsedito [at] gmail [dot] com
    makc3d at 18 May 2012 00:21
    well they blocked my access to this bug (or the bug was deleted), see http://prerelease.adobe.com/r/?5518306ed8d34378b160b508512f243d for my bug id, but it will hardly help you.
    Embed
// forked from makc3d's What is hapening with .w ??
package {
    import com.actionscriptbible.Example;
    import flash.geom.*;
    public class WhatTheFuck extends Example {
        public function WhatTheFuck() {
            // not so identity matrix
            var m:Matrix3D = new Matrix3D;
            var r:Vector.<Number> = m.rawData;
            r[3]=1;
            m.rawData = r;
            // vector with w != 1
            var v:Vector3D = new Vector3D (1, 2, 3, 4);
            v = m.transformVector (v);
            // WTF ???
            trace (v, v.w);
            
        }
    }
}