I'm having some trouble with the new FX API functions trying to spawn custom FX. I've created a custom FX named "mist" and then set up a section of code like this: var x = source.get('left');
var y = source.get('top');
var pageid = source.get('_pageid');
spawnFx(x, y, 'mist', pageid); but it produces the default burn-fire effect instead. The definition for the mist FX is {
"maxParticles": 100,
"emissionRate": 1,
"size": 100,
"sizeRandom": 50,
"lifeSpan": 30,
"lifeSpanRandom": 3,
"speed": 3,
"speedRandom": 1.5,
"gravity": {"x":0.01, "y":0.1},
"angle": 0,
"angleRandom": 180,
"duration": -1,
"startColour": [255, 255, 255, 0.1],
"startColourRandom": [0, 0, 0, 0],
"endColour": [32, 0, 255, 0],
"endColourRandom": [0, 0, 60, 0]
} Any idea what I might be doing wrong here?