HUD/SetFlashScale

From Blue Mars Developer Guidebook

Jump to: navigation, search

This is a HUD function

Contents

Overview

Function

SetFlashScale(movie, scalex, scaley)
movie - string name of the movie to scale
scalex - number scale factor for sizing movie - default is 1.0
scaley - float optional vertical scaling factor. If supplied, then scalex is just for horizontal scaling

Usage

Use this only if DockFlash is called with eFD_Pos

Examples

Here's a Flash movie at original size:

Image:Dockposscalelowerleft.JPG

Now scaled with different x and y scale factors:

HUD.DockFlash("test",eFD_Pos);
HUD.ScaleFlash("test",2.0,0.25);

Image:Dockaspect.JPG

Problems with this wiki page? Contact us either by: Support Email or Support Ticket System

Blue Mars Guidebook Privacy Policy
Blue Mars Guidebook Community Guidelines

Personal tools