Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Advanced Lingo for Games
sprite movement according to mouseV
Space Invaders
Linear Path Tracker
Composite Images with Alpha
V12-L
Set PlayBackMode Property of a Animated Gif Cast Member
Sprite Stick To Mouse Cursor
Timeline re-direction and navigation
CD Door Close, Open - MCI
MediaMacros Xtras Mall
 

 

 

Behavior Scale the screen

Added on 11/3/1999

 

Compatibilities:
D7 D8 Mac PC Script

This item has not yet been rated

Author: MediaMacros (website)

This is a simple script that will stretch the stage to attempt to fill the scree. This is a very basic example and will not scale text or field members.

--Copyright 1999 Chuck Neal
--chuck@mediamacros.com
--If you find this code helpful, send me an e-mail and let me know. :-)

global oldSettings

on goFullScreen me
  if float(the DesktopRectList[1][3]) / the deskTopRectList[1][4] <> (640.0/480) then
    oldSettings = [(the stage).rect, (the stage).drawRect]
    (the stage).rect = the deskTopRectList[1]
    (the stage).drawRect = the deskTopRectList[1]
  end if
end

on returnScreen me
  if listP(oldSettings) then
    (the stage).rect = oldSettings[1]
    (the stage).drawRect = oldSettings[2]
  end if
end

on getBehaviorDescription me
  describe = "This script allows you to enlarge the stage to full screen and stretches the cast members with it. Note that Text and Field members do not scale and this could slow performance."
  return describe
end

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail