creating transparent windows with screenweaver

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

creating transparent windows with screenweaver

Michel Oster
Malte wrote :

 > Are these kinds of objects possible with screenweaver? I have seen, that

> there is a "transparent" attribute, but the documentation says it is not
> implemented yet.


Hallo ,
the following Neko-code is an example of transparency usage in
'flash9/swhx/Neko'.
note : it's only possible to SET 'transparency' at design-time, not at
runtime.

class App {
    var flash : swhx.Flash;
    var window: swhx.Window;

    static function main() { new App(); }

    public function new() {
        swhx.Application.init( 9 );

        window = new swhx.Window( "window title", 143, 22,
swhx.Window.WF_TRANSPARENT );
        window.left = 479;
        window.top = 619;

        var ctx = new haxe.remoting.Context();
        ctx.addObject( "App", App );

        flash = new swhx.Flash( window, ctx );
        flash.setAttribute("src", "./YourFlash.swf");
        flash.start();

        window.maximized = true;  //<- necessary with FlashPlayer 10
        window.maximized = false;  //<- idem
        window.visible = true;
        swhx.Application.loop();
        swhx.Application.cleanup();
    }
}

Michel


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: creating transparent windows with screenweaver

Malte Dreschert-3
Hello Michel,

Thank you very much for your help. I will try it out.

Von meinem iPhone gesendet

Am 08.11.2008 um 10:17 schrieb Michel Oster <[hidden email]>:

> Malte wrote :
>
> > Are these kinds of objects possible with screenweaver? I have  
> seen, that
>
>> there is a "transparent" attribute, but the documentation says it  
>> is not
>> implemented yet.
>
>
> Hallo ,
> the following Neko-code is an example of transparency usage in  
> 'flash9/swhx/Neko'.
> note : it's only possible to SET 'transparency' at design-time, not  
> at runtime.
>
> class App {
>   var flash : swhx.Flash;
>   var window: swhx.Window;
>
>   static function main() { new App(); }
>
>   public function new() {
>       swhx.Application.init( 9 );
>
>       window = new swhx.Window( "window title", 143, 22,  
> swhx.Window.WF_TRANSPARENT );
>       window.left = 479;
>       window.top = 619;
>
>       var ctx = new haxe.remoting.Context();
>       ctx.addObject( "App", App );
>
>       flash = new swhx.Flash( window, ctx );
>       flash.setAttribute("src", "./YourFlash.swf");
>       flash.start();
>
>       window.maximized = true;  //<- necessary with FlashPlayer 10
>       window.maximized = false;  //<- idem
>       window.visible = true;
>       swhx.Application.loop();
>       swhx.Application.cleanup();
>   }
> }
>
> Michel
>
>
> --
> haXe - an open source web programming language
> http://haxe.org

--
haXe - an open source web programming language
http://haxe.org