A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: changing background color for stage

  1. #1
    Senior Member mzhang's Avatar
    Join Date
    Aug 2000
    Posts
    407
    Hi there,

    there is two stages in my flash file.

    Now I am going to use the AS to set the background for them splite.

    set stage_1 for red color
    set stage_2 for black color

    is there a way to do this via Action Script?

    Cheers

  2. #2
    Senior Member
    Join Date
    Jun 2002
    Posts
    102
    i'm also looking for it but i think it's impossible

  3. #3
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    If you want to change the background color like that, You'll need to draw a rectangle the size of your stage and place it at 0-x and 0-y. Then re-color your rectangle

  4. #4
    Senior Member
    Join Date
    Jun 2002
    Posts
    102
    and what if you want to play your movie fullscreen and not scaled?

  5. #5
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    It'll rescale unless you use:

    fscommand("allowscale", "false");






  6. #6
    Senior Member mzhang's Avatar
    Join Date
    Aug 2000
    Posts
    407

    w

    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center