Skip to content

FlashItem

Defined in: core/items/flash.ts:46

The FlashItem class represents a flash item, which is any SWF file loaded to XSplit Broadcaster.

Inherits from: #core/Item Core/Item

Implements: #core/IItemChroma Core/IItemChroma, #core/IItemColor Core/IItemColor, #core/IItemLayout Core/IItemLayout, #core/IItemTransition Core/IItemTransition, #core/IAudio Core/IAudio, #core/IItemEffect Core/IItemEffect

All methods marked as Chainable resolve with the original FlashItem instance. Also, any audio setting, i.e. volume, mute, stream only may not be properly reflected in the item unless native flash audio support is enabled. (Tools menu > General Settings > Advanced tab)

  • IItemLayout
  • IItemColor
  • IItemChroma
  • IItemTransition
  • IAudio
  • IItemEffect
  • ISourceFlash

new FlashItem(props?): FlashItem

Defined in: core/items/item.ts:88

FlashItem

Item.constructor

bringForward: () => Promise<FlashItem>

Defined in: core/items/flash.ts:78

See: #core/IItemLayout#bringForward bringForward

Promise<FlashItem>

IItemLayout.bringForward

Item.bringForward


bringToFront: () => Promise<FlashItem>

Defined in: core/items/flash.ts:83

See: #core/IItemLayout#bringToFront bringToFront

Promise<FlashItem>

IItemLayout.bringToFront

Item.bringToFront


getAllowRightClick: () => Promise<boolean>

Defined in: core/items/flash.ts:66

See: #core/FlashSource#getAllowRightClick getAllowRightClick

Promise<boolean>

ISourceFlash.getAllowRightClick


getBorderColor: () => Promise<Color>

Defined in: core/items/flash.ts:231

See: #core/IItemColor#getBorderColor getBorderColor

Promise<Color>

IItemColor.getBorderColor


getBorderEffectColor: () => Promise<Color>

Defined in: core/items/flash.ts:510

See: #core/IItemEffect#getBorderEffectColor getBorderEffectColor

Promise<Color>

IItemEffect.getBorderEffectColor


getBorderEffectOpacity: () => Promise<number>

Defined in: core/items/flash.ts:504

See: #core/IItemEffect#getBorderEffectOpacity getBorderEffectOpacity

Promise<number>

IItemEffect.getBorderEffectOpacity


getBorderEffectRadius: () => Promise<number>

Defined in: core/items/flash.ts:492

See: #core/IItemEffect#getBorderEffectRadius getBorderEffectRadius

Promise<number>

IItemEffect.getBorderEffectRadius


getBorderEffectThickness: () => Promise<number>

Defined in: core/items/flash.ts:498

See: #core/IItemEffect#getBorderEffectThickness getBorderEffectThickness

Promise<number>

IItemEffect.getBorderEffectThickness


getBrightness: () => Promise<number>

Defined in: core/items/flash.ts:211

See: #core/IItemColor#getBrightness getBrightness

Promise<number>

IItemColor.getBrightness


getCanvasRotate: () => Promise<number>

Defined in: core/items/flash.ts:103

See: #core/IItemLayout#getCanvasRotate getCanvasRotate

Promise<number>

IItemLayout.getCanvasRotate

Item.getCanvasRotate


getChromaAntiAliasLevel: () => Promise<ChromaAntiAliasLevel>

Defined in: core/items/flash.ts:300

See: #core/IItemChroma#getChromaAntiAliasLevel getChromaAntiAliasLevel

Promise<ChromaAntiAliasLevel>

IItemChroma.getChromaAntiAliasLevel


getChromaColorKeyColor: () => Promise<Color>

Defined in: core/items/flash.ts:416

See: #core/IItemChroma#getChromaColorKeyColor getChromaColorKeyColor

Promise<Color>

IItemChroma.getChromaColorKeyColor


getChromaColorKeyExposure: () => Promise<number>

Defined in: core/items/flash.ts:406

See: #core/IItemChroma#getChromaColorKeyExposure getChromaColorKeyExposure

Promise<number>

IItemChroma.getChromaColorKeyExposure


getChromaColorKeyThreshold: () => Promise<number>

Defined in: core/items/flash.ts:396

See: #core/IItemChroma#getChromaColorKeyThreshold getChromaColorKeyThreshold

Promise<number>

IItemChroma.getChromaColorKeyThreshold


getChromaLegacyAlphaSmoothing: () => Promise<number>

Defined in: core/items/flash.ts:352

See: #core/IItemChroma#getChromaLegacyAlphaSmoothing getChromaLegacyAlphaSmoothing

Promise<number>

IItemChroma.getChromaLegacyAlphaSmoothing


getChromaLegacyBrightness: () => Promise<number>

Defined in: core/items/flash.ts:312

See: #core/IItemChroma#getChromaLegacyBrightness getChromaLegacyBrightness

Promise<number>

IItemChroma.getChromaLegacyBrightness


getChromaLegacyHue: () => Promise<number>

Defined in: core/items/flash.ts:332

See: #core/IItemChroma#getChromaLegacyHue getChromaLegacyHue

Promise<number>

IItemChroma.getChromaLegacyHue


getChromaLegacySaturation: () => Promise<number>

Defined in: core/items/flash.ts:322

See: #core/IItemChroma#getChromaLegacySaturation getChromaLegacySaturation

Promise<number>

IItemChroma.getChromaLegacySaturation


getChromaLegacyThreshold: () => Promise<number>

Defined in: core/items/flash.ts:342

See: #core/IItemChroma#getChromaLegacyThreshold getChromaLegacyThreshold

Promise<number>

IItemChroma.getChromaLegacyThreshold


getChromaRGBKeyExposure: () => Promise<number>

Defined in: core/items/flash.ts:384

See: #core/IItemChroma#getChromaRGBKeyExposure getChromaRGBKeyExposure

Promise<number>

IItemChroma.getChromaRGBKeyExposure


getChromaRGBKeyPrimaryColor: () => Promise<ChromaPrimaryColors>

Defined in: core/items/flash.ts:364

See: #core/IItemChroma#getChromaRGBKeyPrimaryColor getChromaRGBKeyPrimaryColor

Promise<ChromaPrimaryColors>

IItemChroma.getChromaRGBKeyPrimaryColor


getChromaRGBKeyThreshold: () => Promise<number>

Defined in: core/items/flash.ts:374

See: #core/IItemChroma#getChromaRGBKeyThreshold getChromaRGBKeyThreshold

Promise<number>

IItemChroma.getChromaRGBKeyThreshold


getContrast: () => Promise<number>

Defined in: core/items/flash.ts:216

See: #core/IItemColor#getContrast getContrast

Promise<number>

IItemColor.getContrast


getCropping: () => Promise<Object>

Defined in: core/items/flash.ts:108

See: #core/IItemLayout#getCropping getCropping

Promise<Object>

IItemLayout.getCropping

Item.getCropping


getCustomName: () => Promise<string>

Defined in: core/items/item.ts:758

See: #core/Source#getCustomName getCustomName

Promise<string>

Item.getCustomName


getCustomResolution: () => Promise<Rectangle>

Defined in: core/items/flash.ts:60

See: #core/FlashSource#getCustomResolution getCustomResolution

Promise<Rectangle>

ISourceFlash.getCustomResolution


getEnhancedRotate: () => Promise<number>

Defined in: core/items/flash.ts:113

See: #core/IItemLayout#getEnhancedRotate getEnhancedRotate

Promise<number>

IItemLayout.getEnhancedRotate

Item.getEnhancedRotate


getFileMask: () => Promise<string>

Defined in: core/items/flash.ts:552

See: #core/IItemEffect#getFileMask getFileMask

Promise<string>

IItemEffect.getFileMask


getFilter: () => Promise<Filter>

Defined in: core/items/flash.ts:564

See: #core/IItemEffect#getFilter getFilter

Promise<Filter>

IItemEffect.getFilter


getFilterConfig: () => Promise<Object>

Defined in: core/items/flash.ts:579

See: #core/IItemEffect#getFilterConfig getFilterConfig

Promise<Object>

IItemEffect.getFilterConfig


getHue: () => Promise<number>

Defined in: core/items/flash.ts:221

See: #core/IItemColor#getHue getHue

Promise<number>

IItemColor.getHue


getId: () => Promise<string>

Defined in: core/items/item.ts:267

return: Promise

Get the ID of the Item

item.getId().then(function(id) {
// The rest of your code here
});

Promise<string>

Item.getId


getItemList: () => Promise<Item[]>

Defined in: core/items/item.ts:513

See: #core/Source#getItemList getItemList

Promise<Item[]>

Item.getItemList


getKeepLoaded: () => Promise<boolean>

Defined in: core/items/item.ts:773

See: #core/Source#getKeepLoaded getKeepLoaded

Promise<boolean>

Item.getKeepLoaded


getKeyingType: () => Promise<KeyingType>

Defined in: core/items/flash.ts:288

See: #core/IItemChroma#getKeyingType getKeyingType

Promise<KeyingType>

IItemChroma.getKeyingType


getMaskEffect: () => Promise<MaskEffect>

Defined in: core/items/flash.ts:486

See: #core/IItemEffect#getMaskEffect getMaskEffect

Promise<MaskEffect>

IItemEffect.getMaskEffect


getName: () => Promise<string>

Defined in: core/items/item.ts:748

See: #core/Source#getName getName

Promise<string>

Item.getName


getPosition: () => Promise<Rectangle>

Defined in: core/items/flash.ts:118

See: #core/IItemLayout#getPosition getPosition

Promise<Rectangle>

IItemLayout.getPosition

Item.getPosition


getRotateX: () => Promise<number>

Defined in: core/items/flash.ts:128

See: #core/IItemLayout#getRotateX getRotateX

Promise<number>

IItemLayout.getRotateX

Item.getRotateX


getRotateY: () => Promise<number>

Defined in: core/items/flash.ts:123

See: #core/IItemLayout#getRotateY getRotateY

Promise<number>

IItemLayout.getRotateY

Item.getRotateY


getRotateZ: () => Promise<number>

Defined in: core/items/flash.ts:133

See: #core/IItemLayout#getRotateZ getRotateZ

Promise<number>

IItemLayout.getRotateZ

Item.getRotateZ


getSaturation: () => Promise<number>

Defined in: core/items/flash.ts:226

See: #core/IItemColor#getSaturation getSaturation

Promise<number>

IItemColor.getSaturation


getShadowEffectBlur: () => Promise<number>

Defined in: core/items/flash.ts:528

See: #core/IItemEffect#getShadowEffectBlur getShadowEffectBlur

Promise<number>

IItemEffect.getShadowEffectBlur


getShadowEffectColor: () => Promise<Color>

Defined in: core/items/flash.ts:516

See: #core/IItemEffect#getShadowEffectColor getShadowEffectColor

Promise<Color>


getShadowEffectOffsetX: () => Promise<number>

Defined in: core/items/flash.ts:540

See: #core/IItemEffect#getShadowEffectOffsetX getShadowEffectOffsetX

Promise<number>

IItemEffect.getShadowEffectOffsetX


getShadowEffectOffsetY: () => Promise<number>

Defined in: core/items/flash.ts:546

See: #core/IItemEffect#getShadowEffectOffsetY getShadowEffectOffsetY

Promise<number>

IItemEffect.getShadowEffectOffsetY


getShadowEffectOpacity: () => Promise<number>

Defined in: core/items/flash.ts:534

See: #core/IItemEffect#getShadowEffectOpacity getShadowEffectOpacity

Promise<number>

IItemEffect.getShadowEffectOpacity


getShadowEffectThickness: () => Promise<number>

Defined in: core/items/flash.ts:522

See: #core/IItemEffect#getShadowEffectThickness getShadowEffectThickness

Promise<number>

IItemEffect.getShadowEffectThickness


getTransition: () => Promise<Transition>

Defined in: core/items/flash.ts:438

See: #core/IItemTransition#getTransition getTransition

Promise<Transition>

IItemTransition.getTransition


getTransitionTime: () => Promise<number>

Defined in: core/items/flash.ts:448

See: #core/IItemTransition#getTransitionTime getTransitionTime

Promise<number>

IItemTransition.getTransitionTime


getTransparency: () => Promise<number>

Defined in: core/items/flash.ts:206

See: #core/IItemColor#getTransparency getTransparency

Promise<number>

IItemColor.getTransparency


getType: () => Promise<ItemTypes>

Defined in: core/items/item.ts:786

See: #core/Source#getType getType

Promise<ItemTypes>

Item.getType


getValue: () => Promise<string | XML>

Defined in: core/items/item.ts:763

See: #core/Source#getValue getValue

Promise<string | XML>

ISourceFlash.getValue

Item.getValue


getVolume: () => Promise<number>

Defined in: core/items/flash.ts:458

See: #core/IAudio#getVolume getVolume

Promise<number>

IAudio.getVolume


isAudioAvailable: () => Promise<boolean>

Defined in: core/items/flash.ts:481

See: #core/IAudio#isAudioAvailable isAudioAvailable

Promise<boolean>

IAudio.isAudioAvailable


isAutoMute: () => Promise<boolean>

Defined in: core/items/flash.ts:464

See: #core/IAudio#isAutoMute isAutoMute

Promise<boolean>

IAudio.isAutoMute


isChromaEnabled: () => Promise<boolean>

Defined in: core/items/flash.ts:278

See: #core/IItemChroma#isChromaEnabled isChromaEnabled

Promise<boolean>

IItemChroma.isChromaEnabled


isEnhancedResizeEnabled: () => Promise<boolean>

Defined in: core/items/flash.ts:98

See: #core/IItemLayout#isEnhancedResizeEnabled isEnhancedResizeEnabled

Promise<boolean>

IItemLayout.isEnhancedResizeEnabled

Item.isEnhancedResizeEnabled


isFileMaskingGuideVisible: () => Promise<boolean>

Defined in: core/items/flash.ts:558

See: #core/IItemEffect#isFileMaskingGuideVisible isFileMaskingGuideVisible

Promise<boolean>

IItemEffect.isFileMaskingGuideVisible


isFullDynamicColorRange: () => Promise<boolean>

Defined in: core/items/flash.ts:236

See: #core/IItemColor#isFullDynamicColorRange isFullDynamicColorRange

Promise<boolean>

IItemColor.isFullDynamicColorRange


isKeepAspectRatio: () => Promise<boolean>

Defined in: core/items/flash.ts:88

See: #core/IItemLayout#isKeepAspectRatio isKeepAspectRatio

Promise<boolean>

IItemLayout.isKeepAspectRatio

Item.isKeepAspectRatio


isMute: () => Promise<boolean>

Defined in: core/items/flash.ts:461

See: #core/IAudio#isMute isMute

Promise<boolean>

IAudio.isMute


isPositionLocked: () => Promise<boolean>

Defined in: core/items/flash.ts:93

See: #core/IItemLayout#isPositionLocked isPositionLocked

Promise<boolean>

IItemLayout.isPositionLocked

Item.isPositionLocked


isSourceAvailable: () => Promise<boolean>

Defined in: core/items/flash.ts:72

See: #core/FlashSource#isSourceAvailable isSourceAvailable

Promise<boolean>

ISourceFlash.isSourceAvailable


isStreamOnlyAudio: () => Promise<boolean>

Defined in: core/items/flash.ts:475

See: #core/IAudio#isStreamOnlyAudio isStreamOnlyAudio

Promise<boolean>

IAudio.isStreamOnlyAudio


isVisible: () => Promise<boolean>

Defined in: core/items/flash.ts:428

See: #core/IItemTransition#isVisible isVisible

Promise<boolean>

IItemTransition.isVisible


refresh: () => Promise<Source>

Defined in: core/items/item.ts:783

See: #core/Source#refresh refresh

Promise<Source>

Item.refresh


removeFilter: () => Promise<FlashItem>

Defined in: core/items/flash.ts:576

See: #core/IItemEffect#removeFilter removeFilter

Promise<FlashItem>

IItemEffect.removeFilter


sendBackward: () => Promise<FlashItem>

Defined in: core/items/flash.ts:138

See: #core/IItemLayout#sendBackward sendBackward

Promise<FlashItem>

IItemLayout.sendBackward

Item.sendBackward


sendToBack: () => Promise<FlashItem>

Defined in: core/items/flash.ts:143

See: #core/IItemLayout#sendToBack sendToBack

Promise<FlashItem>

IItemLayout.sendToBack

Item.sendToBack


setAllowRightClick: (value) => Promise<ISourceFlash>

Defined in: core/items/flash.ts:69

See: #core/FlashSource#setAllowRightClick setAllowRightClick

boolean

Promise<ISourceFlash>

ISourceFlash.setAllowRightClick


setAutoMute: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:473

See: #core/IAudio#setAutoMute setAutoMute

boolean

Promise<FlashItem>

IAudio.setAutoMute


setBorderColor: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:266

See: #core/IItemColor#setBorderColor setBorderColor

Color

Promise<FlashItem>

IItemColor.setBorderColor


setBorderEffectColor: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:513

See: #core/IItemEffect#setBorderEffectColor setBorderEffectColor

Color

Promise<FlashItem>

IItemEffect.setBorderEffectColor


setBorderEffectOpacity: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:507

See: #core/IItemEffect#setBorderEffectOpacity setBorderEffectOpacity

number

Promise<FlashItem>

IItemEffect.setBorderEffectOpacity


setBorderEffectRadius: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:495

See: #core/IItemEffect#setBorderEffectRadius setBorderEffectRadius

number

Promise<FlashItem>

IItemEffect.setBorderEffectRadius


setBorderEffectThickness: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:501

See: #core/IItemEffect#setBorderEffectThickness setBorderEffectThickness

number

Promise<FlashItem>

IItemEffect.setBorderEffectThickness


setBrightness: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:246

See: #core/IItemColor#setBrightness setBrightness

number

Promise<FlashItem>

IItemColor.setBrightness


setCanvasRotate: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:148

See: #core/IItemLayout#setCanvasRotate setCanvasRotate

number

Promise<FlashItem>

IItemLayout.setCanvasRotate

Item.setCanvasRotate


setChromaAntiAliasLevel: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:305

See: #core/IItemChroma#setChromaAntiAliasLevel setChromaAntiAliasLevel

ChromaAntiAliasLevel

Promise<FlashItem>

IItemChroma.setChromaAntiAliasLevel


setChromaColorKeyColor: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:421

See: #core/IItemChroma#setChromaColorKeyColor setChromaColorKeyColor

Color

Promise<FlashItem>

IItemChroma.setChromaColorKeyColor


setChromaColorKeyExposure: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:411

See: #core/IItemChroma#setChromaColorKeyExposure setChromaColorKeyExposure

number

Promise<FlashItem>

IItemChroma.setChromaColorKeyExposure


setChromaColorKeyThreshold: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:401

See: #core/IItemChroma#setChromaColorKeyThreshold setChromaColorKeyThreshold

number

Promise<FlashItem>

IItemChroma.setChromaColorKeyThreshold


setChromaEnabled: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:283

See: #core/IItemChroma#setChromaEnabled setChromaEnabled

boolean

Promise<FlashItem>

IItemChroma.setChromaEnabled


setChromaLegacyAlphaSmoothing: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:357

See: #core/IItemChroma#setChromaLegacyAlphaSmoothing setChromaLegacyAlphaSmoothing

number

Promise<FlashItem>

IItemChroma.setChromaLegacyAlphaSmoothing


setChromaLegacyBrightness: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:317

See: #core/IItemChroma#setChromaLegacyBrightness setChromaLegacyBrightness

number

Promise<FlashItem>

IItemChroma.setChromaLegacyBrightness


setChromaLegacyHue: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:337

See: #core/IItemChroma#setChromaLegacyHue setChromaLegacyHue

number

Promise<FlashItem>

IItemChroma.setChromaLegacyHue


setChromaLegacySaturation: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:327

See: #core/IItemChroma#setChromaLegacySaturation setChromaLegacySaturation

number

Promise<FlashItem>

IItemChroma.setChromaLegacySaturation


setChromaLegacyThreshold: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:347

See: #core/IItemChroma#setChromaLegacyThreshold setChromaLegacyThreshold

number

Promise<FlashItem>

IItemChroma.setChromaLegacyThreshold


setChromaRGBKeyExposure: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:389

See: #core/IItemChroma#setChromaRGBKeyExposure setChromaRGBKeyExposure

number

Promise<FlashItem>

IItemChroma.setChromaRGBKeyExposure


setChromaRGBKeyPrimaryColor: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:369

See: #core/IItemChroma#setChromaRGBKeyPrimaryColor setChromaRGBKeyPrimaryColor

ChromaPrimaryColors

Promise<FlashItem>

IItemChroma.setChromaRGBKeyPrimaryColor


setChromaRGBKeyThreshold: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:379

See: #core/IItemChroma#setChromaRGBKeyThreshold setChromaRGBKeyThreshold

number

Promise<FlashItem>

IItemChroma.setChromaRGBKeyThreshold


setContrast: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:251

See: #core/IItemColor#setContrast setContrast

number

Promise<FlashItem>

IItemColor.setContrast


setCropping: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:153

See: #core/IItemLayout#setCropping setCropping

Object

Promise<FlashItem>

IItemLayout.setCropping

Item.setCropping


setCroppingEnhanced: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:158

See: #core/IItemLayout#setCroppingEnhanced setCroppingEnhanced

Object

Promise<FlashItem>

IItemLayout.setCroppingEnhanced

Item.setCroppingEnhanced


setCustomName: () => Promise<Item>

Defined in: core/items/item.ts:753

See: #core/Source#setCustomName setCustomName

Promise<Item>

Item.setCustomName


setCustomResolution: (value) => Promise<ISourceFlash>

Defined in: core/items/flash.ts:63

See: #core/FlashSource#setCustomResolution setCustomResolution

Rectangle

Promise<ISourceFlash>

ISourceFlash.setCustomResolution


setEnhancedResizeEnabled: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:179

See: #core/IItemLayout#setEnhancedResizeEnabled setEnhancedResizeEnabled

boolean

Promise<FlashItem>

IItemLayout.setEnhancedResizeEnabled

Item.setEnhancedResizeEnabled


setEnhancedRotate: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:164

See: #core/IItemLayout#setEnhancedRotate setEnhancedRotate

number

Promise<FlashItem>

IItemLayout.setEnhancedRotate

Item.setEnhancedRotate


setFileMask: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:555

See: #core/IItemEffect#setFileMask setFileMask

string

Promise<FlashItem>

IItemEffect.setFileMask


setFilter: (value, config?) => Promise<FlashItem>

Defined in: core/items/flash.ts:567

See: #core/IItemEffect#setFilter setFilter

any

number

string

Promise<FlashItem>

IItemEffect.setFilter


setFullDynamicColorRange: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:271

See: #core/IItemColor#setFullDynamicColorRange setFullDynamicColorRange

boolean

Promise<FlashItem>

IItemColor.setFullDynamicColorRange


setHue: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:256

See: #core/IItemColor#setHue setHue

number

Promise<FlashItem>

IItemColor.setHue


setKeepAspectRatio: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:169

See: #core/IItemLayout#setKeepAspectRatio setKeepAspectRatio

boolean

Promise<FlashItem>

IItemLayout.setKeepAspectRatio

Item.setKeepAspectRatio


setKeepLoaded: (value) => Promise<Item>

Defined in: core/items/item.ts:778

See: #core/Source#setKeepLoaded setKeepLoaded

boolean

Promise<Item>

Item.setKeepLoaded


setKeyingType: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:293

See: #core/IItemChroma#setKeyingType setKeyingType

KeyingType

Promise<FlashItem>

IItemChroma.setKeyingType


setMaskEffect: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:489

See: #core/IItemEffect#setMaskEffect setMaskEffect

MaskEffect

Promise<FlashItem>

IItemEffect.setMaskEffect


setMute: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:470

See: #core/IAudio#setMute setMute

boolean

Promise<FlashItem>

IAudio.setMute


setName: (value) => Promise<Item>

Defined in: core/items/item.ts:743

See: #core/Source#setName setName

string

Promise<Item>

Item.setName


setPosition: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:184

See: #core/IItemLayout#setPosition setPosition

Rectangle

Promise<FlashItem>

IItemLayout.setPosition

Item.setPosition


setPositionLocked: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:174

See: #core/IItemLayout#setPositionLocked setPositionLocked

boolean

Promise<FlashItem>

IItemLayout.setPositionLocked

Item.setPositionLocked


setRotateX: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:194

See: #core/IItemLayout#setRotateX setRotateX

number

Promise<FlashItem>

IItemLayout.setRotateX

Item.setRotateX


setRotateY: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:189

See: #core/IItemLayout#setRotateY setRotateY

number

Promise<FlashItem>

IItemLayout.setRotateY

Item.setRotateY


setRotateZ: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:199

See: #core/IItemLayout#setRotateZ setRotateZ

number

Promise<FlashItem>

IItemLayout.setRotateZ

Item.setRotateZ


setSaturation: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:261

See: #core/IItemColor#setSaturation setSaturation

number

Promise<FlashItem>

IItemColor.setSaturation


setShadowEffectBlur: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:531

See: #core/IItemEffect#setShadowEffectBlur setShadowEffectBlur

number

Promise<FlashItem>

IItemEffect.setShadowEffectBlur


setShadowEffectColor: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:519

See: #core/IItemEffect#setShadowEffectColor setShadowEffectColor

Color

Promise<FlashItem>


setShadowEffectOffsetX: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:543

See: #core/IItemEffect#setShadowEffectOffsetX setShadowEffectOffsetX

number

Promise<FlashItem>

IItemEffect.setShadowEffectOffsetX


setShadowEffectOffsetY: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:549

See: #core/IItemEffect#setShadowEffectOffsetY setShadowEffectOffsetY

number

Promise<FlashItem>

IItemEffect.setShadowEffectOffsetY


setShadowEffectOpacity: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:537

See: #core/IItemEffect#setShadowEffectOpacity setShadowEffectOpacity

number

Promise<FlashItem>

IItemEffect.setShadowEffectOpacity


setShadowEffectThickness: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:525

See: #core/IItemEffect#setShadowEffectThickness setShadowEffectThickness

number

Promise<FlashItem>

IItemEffect.setShadowEffectThickness


setStreamOnlyAudio: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:478

See: #core/IAudio#setStreamOnlyAudio setStreamOnlyAudio

boolean

Promise<FlashItem>

IAudio.setStreamOnlyAudio


setTransition: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:443

See: #core/IItemTransition#setTransition setTransition

Transition

Promise<FlashItem>

IItemTransition.setTransition


setTransitionTime: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:453

See: #core/IItemTransition#setTransitionTime setTransitionTime

number

Promise<FlashItem>

IItemTransition.setTransitionTime


setTransparency: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:241

See: #core/IItemColor#setTransparency setTransparency

number

Promise<FlashItem>

IItemColor.setTransparency


setValue: (value) => Promise<Item>

Defined in: core/items/item.ts:768

See: #core/Source#setValue setValue

string | XML

Promise<Item>

ISourceFlash.setValue

Item.setValue


setVisible: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:433

See: #core/IItemTransition#setVisible setVisible

boolean

Promise<FlashItem>

IItemTransition.setVisible


setVolume: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:467

See: #core/IAudio#setVolume setVolume

number

Promise<FlashItem>

IAudio.setVolume


showFileMaskingGuide: (value) => Promise<FlashItem>

Defined in: core/items/flash.ts:561

See: #core/IItemEffect#showFileMaskingGuide showFileMaskingGuide

boolean

Promise<FlashItem>

IItemEffect.showFileMaskingGuide


static _emitter: EventEmitter

Defined in: core/items/item.ts:85

Item._emitter


static _subscriptions: any[] = []

Defined in: core/items/item.ts:86

Item._subscriptions

duplicate(options?): Promise<Item>

Defined in: core/items/item.ts:416

param: (options: {linked?:, scene?: })

return: Promise<Item>

Duplicate an item into the current scene or to a specified scene as Linked or Unlinked.

Linked items would generally have a single source, and any changes in the property of an item would be applied to all linked items.

Chainable

// item pertains to an actual Item instance
// Sample 1
item.duplicate() // duplicate selected item to the current scene as unlinked

Duplicate the selected item to a specific scene and set it to be linked to a single source with the original item.

// Sample 2
var toScene = xjs.Scene.getById(2)
item.duplicate({linked:true, scene:toScene})

boolean

number | Scene

Promise<Item>

Item.duplicate


getFPS(): Promise<number>

Defined in: core/items/item.ts:282

return: Promise

Get the frames rendered per second of an item

item.getFPS().then(function(fps) {
// The rest of your code here
});

Promise<number>

Item.getFPS


getParentItem(): Promise<Item>

Defined in: core/items/item.ts:587

return: Promise

Get the GroupItem that contains this item. This rejects if item is not a child item or non-existent

item.getParentItem()
.then(function(parentItem) {
console.log(parentItem);
});

Promise<Item>

Item.getParentItem


getSceneId(): Promise<string | number>

Defined in: core/items/item.ts:351

return: Promise<number|string>

Get (1-indexed) Scene ID where the source is loaded

source.getSceneId().then(function(id) {
// The rest of your code here
});

Promise<string | number>

Item.getSceneId


getSource(): Promise<Source>

Defined in: core/items/item.ts:530

return: Promise

Gets the Source of an item, linked items would only have 1 source.

Chainable

item.getSource().then(function(source) {
//Manipulate source here
source.setName('New Name')
})

Promise<Source>

Item.getSource


getView(): Promise<ViewTypes>

Defined in: core/items/item.ts:320

return: Promise

Get the view type of the item

item.getView().then(function(view) {
// view values:
// 0 = main view
// 1 = preview editor
// 2 = thumbnail preview
})

Promise<ViewTypes>

Item.getView


isChildItem(): Promise<boolean>

Defined in: core/items/item.ts:558

return: Promise

Checks if item is part of a group

item.isChildItem()
.then(function(isChild) {
console.log(isChild);
});

Promise<boolean>

Item.isChildItem


off(event, handler): void

Defined in: core/items/item.ts:224

param: (event: string, handler: Function)

Removes specificied event handler bound by on. Note that this can only be done for named function handlers.

let itemChange = function(...args) {
console.log('Item has changed');
}
let current;
let items;
xjs.Scene.getActiveScene()
.then( scene => {
current = scene;
return current.getItems();
}).then( list => {
items = list;
items[0].on('item-changed', itemChange);
setTimeout( ()=> {
items[0].off('item-changed', itemChange);
}, 10000);
});

string

Function

void

Item.off


on(event, handler): void

Defined in: core/items/item.ts:126

param: (event: string, handler: Function)

Allows listening to events per instance. Currently there are only two: item-changed and item-destroyed.

Item change is triggered thru any property change:

  • via js(source plugin/extension),
  • via visibility-toggling through the sources list,
  • or via the source properties dialog
let itemChange = function(...args) {
console.log('Item has changed');
}
let current;
let items;
xjs.Scene.getActiveScene()
.then( scene => {
current = scene;
return current.getItems();
}).then( list => {
items = list;
items[0].on('item-changed', itemChange);
});

Duplicate handlers are allowed.

string

Function

void

Item.on


remove(): Promise<boolean>

Defined in: core/items/item.ts:504

return: Promise

Removes selected item

item.remove()

Promise<boolean>

Item.remove


toXML(): XML

Defined in: core/items/item.ts:373

return: XML

Convert the Item object to an XML object. Use toString() to get the string version of the returned object.

var xml = item.toXML();

XML

Item.toXML


unlink(): Promise<Item>

Defined in: core/items/item.ts:486

return: Promise

Unlinks selected item.

Unlinks an item to the source of other linked items and renders its own source.

item.unlink()

Note: Once you unlink an Item, there’s still no method to reverse the process.

Promise<Item>

Item.unlink


static getAllSources(): Promise<Source[]>

Defined in: core/source/source.ts:220

return: Promise<Source[]>

Get all unique Source from every scene. Total number of Sources returned may be less than total number of items on all the scenes due to Linked items only having a single Source.

xjs.Source.getAllSources().then(function(sources) {
for(var i = 0 ; i < sources.length ; i++) {
if(sources[i] instanceof xjs.HtmlSource) {
// Manipulate HTML Source here
}
}
})

Promise<Source[]>

Item.getAllSources


static getCurrentSource(): Promise<Source>

Defined in: core/source/source.ts:108

return: Promise

Get the current source (when function is called by sources), or the source that was right-clicked to open the source properties window (when function is called from the source properties window)

xjs.Source.getCurrentSource().then(function(source) {
// This will fetch the current source (the plugin)
}).catch(function(err) {
// Handle the error here. Errors would only occur
// if we try to execute this method on Extension plugins
});

Promise<Source>

Item.getCurrentSource


static getItemList(): Promise<Item[]>

Defined in: core/items/item.ts:248

return: Promise<Item[]>

Gets the list of linked items of the current Item. Linked items are items linked to a single source.

xjs.Item.getItemList().then(function(items) {
for (var i = 0 ; i < items.length ; i++) {
// Manipulate each item here
items[i].setKeepAspectRatio(true);
}
})

This is simply a shortcut to: xjs.Item.getCurrentSource() -> source.getItemList()

Promise<Item[]>

Item.getItemList