A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: controllers/item.php

Line Number: 25

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: controllers/item.php

Line Number: 1114

EffectHub.com: your best source for gaming
Recommendation
More Effects...
ActionScript
1
// forked from http://wonderfl.net/c/kAfX/
2
package {
3
    import flash.display.*;
4
    import flash.events.*;
5
 
6
    [SWF(width="465", height="465", backgroundColor="0", frameRate="30")]
7
    public class PointLightDemo extends Sprite {
8
        private var fx:VolumetricPointLight;
9
        private var grid:Grid = new Grid;
10
        private var sun:SunIcon = new SunIcon;
11
 
12
        public function PointLightDemo():void {
13
            addEventListener(Event.ADDED_TO_STAGE, init);
14
            if(null != stage) init();
15
        }
16
 
17
        private function init(e:Event = null):void {
18
            removeEventListener(Event.ADDED_TO_STAGE, init);
19
            stage.quality = "medium";
20
            stage.align = "TL";
21
            stage.scaleMode = "noScale";
22
 
23
            // Create a VolumetricPointLight object, use the grid as the occlusion object.
24
            fx = new VolumetricPointLight(800, 600, grid, [0xc08040, 0x4080c0, 0], [1, 1, 1], [0, 20, 30]);
25
            // You can also specify a single color instead of gradient params, for example:
26
            //   fx = new VolumetricPointLight(800, 600, grid, 0xc08040);
27
            // is equivalent to:
28
            //   fx = new VolumetricPointLight(800, 600, grid, [0xc08040, 0], [1, 1], [0, 255]);
29
 
30
            addChild(fx);
31
            // Render on every frame.
32
            fx.startRendering();
33
 
34
            onResize(null);
35
            stage.addEventListener(Event.RESIZE, onResize);
36
 
37
            // Sun icon used to control light source position
38
            addChild(sun);
39
            sun.buttonMode = true;
40
            sun.addEventListener(MouseEvent.MOUSE_DOWN, function(e:Event):void { sun.startDrag(); });
41
            sun.addEventListener(MouseEvent.MOUSE_UP, function(e:Event):void { sun.stopDrag(); });
42
            addEventListener(Event.ENTER_FRAME, function(..._):void { fx.srcX = sun.x; fx.srcY = sun.y; });
 

Join Effecthub.com

Working with Global Gaming Artists and Developers!


Or Sign Up with Your Email Address:
This field must contain a valid email
Password should be at least 1 character