Frame.shapetweenblend, Frame.soundeffect – Adobe Extending Flash Professional CS5 User Manual
Page 320
298
EXTENDING FLASH PROFESSIONAL
Frame object
Last updated 5/2/2011
endAtCurrentLocation
A boolean value that determines whether the tween starts or ends at the current position.
Description
Method; applies the specified motion XML to the selected motion object.
Example
This example specifies that the motion XML identified as
myMotionXML
be applied to the selected motion object.
var doc = fl.getDocumentDOM();
var my_tl = doc.getTimeline();
this.getCurrentFrame = function(){
var layer = my_tl.layers[my_tl.currentLayer];
var frame = layer.frames[my_tl.currentFrame];
return frame;
}
var theFrame = getCurrentFrame();
theFrame.setMotionObjectXML(myMotionXML.toString(), false);
frame.shapeTweenBlend
Availability
Flash MX 2004.
Usage
frame.shapeTweenBlend
Description
Property; a string that specifies how a shape tween is blended between the shape in the keyframe at the start of the
tween and the shape in the following keyframe. Acceptable values are
"distributive"
and
"angular"
.
frame.soundEffect
Availability
Flash MX 2004.
Usage
frame.soundEffect
Description
Property; a string that specifies effects for a sound that is attached directly to a frame (
).
Acceptable values are
"none"
,
"left channel"
,
"right channel"
,
"fade left to right"
,
"fade right to
left"
,
"fade in"
,
"fade out"
, and
"custom"
.
Example
The following example specifies that the sound attached to the first frame should fade in:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].soundEffect = "fade in";