here ya go
http://www.codeproject.com/useritems/FlashGui.asp

best

b

----- Original Message ----
From: Chris Douglass <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, October 11, 2006 7:34:31 AM
Subject: [Flashcoders] C++ flash host supporting transparency

Hey, I'm building a C++ app to run on Windows (then maybe on Mac and X) that
will host SWFs.  On Windows I'm using the Flash activeX control to host my
Flash app.  I'd like to render the Flash viewport/window onto my
application's surface with transparency such that only the content on the
stage is drawn to my window.  

Does anyone know how you would implement this within a custom host/container
like mine?  How do the browsers implement this (well the ones that support
it)?  Does Flash tell the host the key color being used for transparency?
I've seen a few articles here and there that Flash sends its output to an
off-screen buffer that the browsers use to render Flash content with
non-rectangular transparency.  But, I'm not sure how as a host container the
Flash frame buffers and transparency key color are accessible to me.

Does the stage color become the RGB key color value that Flash communicates
to the browser to assist with this process?  What if that same color is used
in the content of your movie/content within your SWF?  Do the browsers
render those pixels transparently as well?  

Anyway, I'm going to start some tests but thought maybe someone could shed
some light for me.  Also, does anyone have experience building their own SWF
host application that runs on Windows and Mac?  I need to port my app (and
am not interested in using the commercial swf/exe hosts out there, at least
not yet ;]) to the Mac, so whatever transparency technique I use on Win32
would hopefully not require a full-rewrite on the Mac (yeah right).

Is there an SDK for people wanting to build their own hosts for Flash apps?
Is there a lower-level interface/API I can tap into that exposes the Flash
content/internals so that developers can write their own unique hosts?  What
wrapper/API is exposed to the Mac platform developers for creating
containers on OSX?

Thanks for ANY input :)  I'll start fiddling with WMODE and see what happens
for starters...  Where is the definitive internals book on the Flash runtime
engine?  Does one exist?

Chris Douglass
Innovative Code & Design
Atlanta, GA
www.innovativecode.com 

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to