-
Background color
Hello everyone.
I have this situation:
I have a standallone application that is presented in fullscreen.
fscommand("fullscreen",true);
fscommand("allowscale", false);
My problem is that the background used to fill the screen is the background color that you assign on flash for that swf.
The problem is that the client wants whenever you change area that the background also changes.
So can anyone help how to change the background color by actionscript?
Thanks a lot
-
Banned By GMF Wannabe
Download a copy of Flash Studio PRO and you can do this with the flashstudio.setbgcolor command. I hope this helps!
-
how about including a layer (behind everything else) that contains a movieclip of a borderless colored rectangle sized to fill the screen. then you can change its color on the fly with actionscript.
-
The problem with that is that there are very screen resolutions (from 800x600 to 1280x1024 etc.) so you can see is hard to put an mc on the bottom of the layers.
-
Banned By GMF Wannabe
If you do try Flash Studio PRO here's the code you can use:
Code:
bgcolor = "cc99cc";
fscommand ("flashstudio.setbgcolor","bgcolor");
I hope this helps.
Last edited by Gambini; 02-03-2004 at 07:06 AM.
-
Lifetime Friend of Site Staff
You could put a solid colored movie clip on a "bottom" layer and resize it match the stage size in the stage onResize event. That way it would work for any screen resolution the user might have.
-
Originally posted by Northcode
You could put a solid colored movie clip on a "bottom" layer and resize it match the stage size in the stage onResize event. That way it would work for any screen resolution the user might have.
that's what I meant! but you said it much better!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|