  | |  | Window Component: Why transparent?? | Window Component: Why transparent?? 2004-02-26 - By Maarten Huybrighs
Back A" is a very simple SWF file that just loads SWF "B" into an empty movie clip (this is done because of a preloader).
In "B", there's a button that opens a Window-component in which a printer-friendly version of the normal content in "B" is shown.
When I run "B" standalone, there's no problem: the window is displayed with a white background. However, when I open "B" by first starting "A", this window opens with a TRANSPARENT background, and NOT on top of the original SWF but below it.
Here's my code that opens the window:
var window = mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, false); window.contentPath = "PrintVersion"; //THIS IS A SELF-MADE COMPONENT window.setSize(790,570); window.background = true; window.backgroundColor = "0xFFFFFF"; window._alpha = "100"; window._x = 0; window._y = 0; window.title = "Printer Friendly Version"; window.closeButton = true; window.click = function(evt_obj:Object) { window.deletePopUp(); } window.addEventListener("click",window);
As you can see I tried setting a bg-color, alpha, etc, none of it works.
Who can help me?
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:105301 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |