Dekel - 2008-04-22

Logged In: YES
user_id=1423767
Originator: NO

Sure we can. Here is a diff file: (for some reason i can't attach files)
---------------------------------
Index: Background.as
===================================================================
--- Background.as (revision 118)
+++ Background.as (working copy)
@@ -1,5 +1,6 @@
class Background
{
+ private var orig_bg:String;
private var colour:Number=0;
private var mc:MovieClip;
private var img_mc:MovieClip;
@@ -57,10 +58,12 @@

function Background( lv:LoadVars )
{
- if( lv.bg_colour != undefined )
+ if( lv.bg_colour != undefined ) {
+ this.orig_bg = lv.bg_colour;
this.colour = _root.get_colour( lv.bg_colour );
- else
+ } else {
this.colour = 0xf8f8d8; // <-- default to Ivory
+ }

this.mc = _root.createEmptyMovieClip( "background", _root.getNextHighestDepth(), 0, 0, Stage.width, Stage.height );

@@ -104,14 +107,15 @@
// it does re-size:
function move()
{
- this.mc.clear();
- this.mc.beginFill( this.colour, 100 );
- this.mc.moveTo( 0, 0 );
- this.mc.lineTo( Stage.width, 0 );
- this.mc.lineTo( Stage.width, Stage.height );
- this.mc.lineTo( 0, Stage.height );
- this.mc.endFill();
-
+ if (this.orig_bg != 'trans') {
+ this.mc.clear();
+ this.mc.beginFill( this.colour, 100 );
+ this.mc.moveTo( 0, 0 );
+ this.mc.lineTo( Stage.width, 0 );
+ this.mc.lineTo( Stage.width, Stage.height );
+ this.mc.lineTo( 0, Stage.height );
+ this.mc.endFill();
+ }
// do we have an image, and did it load:
if(( this.img_mc != undefined ) and (this.img_mc._width != undefined))
{
---------------------------------
To make this work you should:
1. Add the wmode=transparent, both to the embed and the object (as a new param) html tags.
2. Add a "bg_colour=trans" line to the data file.