You load an external SWF file at runtime using Loader.load() method. You extract the file via
Loader.content, cast it to MovieClip, and store in a MovieClip variable.
You add a listener to mouse clicks to your loaded MovieClip only to discover
that it does not respond to clicks. Isn't Loader.content in the case of loading an SWF file
a MovieClip? We discuss the issue and give examples. Flash and AS3 source files included.
New to Flash Player 10 method graphics.drawPath() speeds up runtime drawing
when multiple calls to lineTo() and moveTo() are required. Its behavior
when drawing semi-transparent lines is not ideal, though. Intersections
of transparent lines appear flattened, without the effect of transparent objects
overlapping. With moveTo and lineTo there is a way of preventing such behavior and
obtaining correct intersections.
Check out our new 3D particle effect: the spectacular Kepler's
Supernova. We animate 17,000 pixel particles put
- 3D computer graphics
- America
- animation
- Astronomy
- Barbara Kaskosz
- barbara@flashandmath.com
- Dan Gries
- dan@flashandmath.com
- Doug Ensley
- doug@flashandmath.com
- Johannes Kepler
- Mathematical Association of America
- National Science Foundation
- Nature
- Particle system
- Physics
- Stellar evolution
- Supernova
- Supernovae
- Technology
In this tutorial we show how to use two important methods of the BitmapData class,
perlinNoise and ColorMatrixFilter. By combining the two, we obtain a realistic
dynamic cloud effect. The color schemes of the sky and the clouds can easily be changed.
- Alpha
- America
- animation
- Barbara Kaskosz
- barbara@flashandmath.com
- complicated algorithm
- Computer science
- Dan Gries
- dan@flashandmath.com
- Digital photography
- Doug Ensley
- doug@flashandmath.com
- Fractals
- Image noise
- Ken Perlin
- Mathematical Association of America
- Mathematics
- mobile devices
- National Science Foundation
- Noise
- Perlin
- Perlin noise
- Sound
Enjoy a spectacular particle storm! In this experiment
we use a bitmap filled with Perlin noise to create
an acceleration field. The field controls the motion of thousands
of particles creating a turbulent, dramatic effect.
We use filters and color transforms to obtain the effect
of fading trails behind the churning particles.
Complete source code available for download.
Flash retro TV effect, Flash CRT television effect for video and other display objects, ActionScript 3 CRT TV effect, Flash AS3 old TV effect for any display object, Real time old TV in Flash, Flash CS4 tutorial, Old TV code in AS3 Flash, Old TV effect in Flash ActionScript 3, Bitmap effects in Flash, Flash AS3 Video effects, Flash CS4 Tutorials, ActionScript 3 Tutorials
- ActionScript
- ActionScript
- America
- Barbara Kaskosz
- barbara@flashandmath.com
- Cathode ray tube
- Computer monitor
- Computer science
- Computing
- Dan Gries
- dan@flashandmath.com
- Digital geometry
- Display technology
- Doug Ensley
- doug@flashandmath.com
- Graphics file formats
- Input/Output
- Lighting
- Mathematical Association of America
- National Science Foundation
- Pixel
- Sprite
- Technology
- Television technology