HUD/SetFlashPos

From Blue Mars Developer Guidebook

Jump to: navigation, search
There are security restrictions on this article

This is a HUD function

Contents

Overview

Function

SetFlashPos(movie, x, y)
specify the movie position when DockFlash is called with eFD_Pos
movie - string name of the movie to position
x - integer x coordinate of location to place movie, ranging from 0-1, default is 0.5
y - integer y coordinate of location to place movie, ranging from 0-1, default is 0.5

Usage

Notes

  • This only takes effect when DockFlash is called with eFD_Pos
  • The coordinate system ranges from 0.0-1.0 where (0,0) is the upper-left corner of the screen

Examples

Here's a Flash movie in various positions.

Starting with the default in the center (0.5, 0.5):

HUD.DockFlash("test",eFD_Pos);

Image:Dockpos.JPG

Move it toward the upper-left corner:

HUD.SetFlashPos("test",0.25,0.25);

Image:Dockposscale.JPG

Move it toward the lower-left corner:

HUD.SetFlashPos("test",0.25,0.8);

Image:Dockposscalelowerleft.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