Public Member Functions | Properties

space_movie Class Reference

3D空间中的Flash影片 More...

Inheritance diagram for space_movie:
obj3d

List of all members.

Public Member Functions

def __init__
 初始化。类似flashui.movie,但能在3D场景中显示
def destroy
 把该对象从场景中销毁.

Properties

 billboard_type = property(_get_billboard_type, _set_billboard_type)
 公告板类型.
 anchor = property(_get_anchor, _set_anchor)
 锚点。即以flash坐标中的哪一点作为其局部坐标系原点.
 movie = property(_get_movie, None)
 该space_movie承载的flash movie对象.
 pixel_unit = property(_get_pixel_unit, _set_pixel_unit)
 flash每像素相当于世界坐标多少单位.

Detailed Description

3D空间中的Flash影片


Constructor & Destructor Documentation

def __init__ (   self,
  filename,
  active = True,
  transparent = True,
  pixel_unit = 0.1,
  layer_id = None 
)

初始化。类似flashui.movie,但能在3D场景中显示

Parameters:
filename: str 所制定的flash影片路径(swf)
active: bool 是否立即激活影片
transparent: bool 是否透明背景
pixel_unit: float flash每像素相当于世界坐标空间的多少单位
layer_id: int 所在的layer层,None代表用默认的层;如果是全3D场景,则请使用NO_2D_LAYER。

Member Function Documentation

def destroy (   self )

把该对象从场景中销毁.


Property Documentation

billboard_type = property(_get_billboard_type, _set_billboard_type) [static]

公告板类型.

bool 读写.

anchor = property(_get_anchor, _set_anchor) [static]

锚点。即以flash坐标中的哪一点作为其局部坐标系原点.

(float, float) 读写.

movie = property(_get_movie, None) [static]

该space_movie承载的flash movie对象.

flashui.movie 只读.

pixel_unit = property(_get_pixel_unit, _set_pixel_unit) [static]

flash每像素相当于世界坐标多少单位.

float 读写.

 All Classes Namespaces Functions Variables Properties