Prev | Current Page 181 | Next

Chris Jackson

"Flash + After Effects"


The ?¬?le contains two layers: preloader and actions. The SWF ?¬?le was imported
into a movie clip symbol with an instance name of text_mc. The text animation
appeared as a series of keyframes in the Timeline. A graphic symbol for each
letter appeared in the Library. The animation was set up to loop back and forth
by copying and pasting the keyframes and then reversing the frames. Click on
the keyframe in Frame 1 of the actions layer. Open the Actions panel to see the
ActionScript. The Loader class is used to import an external JPEG image.
Using Text Animators 135
To simulate the ?¬?le download, select Control > Test Movie. In the new SWF
window that opens, select View > Download Settings. Make a selection
from the different bandwidth pro?¬?les in the popup menu. Select View >
Simulate Download to preview how fast the image will load under the chosen
bandwidth. The text animation loops until the image is completely loaded.
Figure 5.34: In Flash you can simulate ?¬?le download for different bandwidths.
// import Flash package
import flash.display.LoaderInfo;
import flash.net.URLRequest;
// define new loader object and URL request
var myLoader:Loader = new Loader();
var myFile:URLRequest = new URLRequest(???JPEG/image1.


Pages:
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193
teksty bilety autokarowe Biżuteria deca usługi budowlane Wrocław