I'm seeking actionscript for self contained slideshow (swf file). This is not going on a web site so external images/xml call will not work. Thanks.

Dani AI

Generated

For : two straightforward ways to make a self-contained SWF slideshow (no external images/XML). As suggested, studying ready-made FLA sources is a great shortcut — open a downloaded FLA and inspect the library, timeline and any document-class code to learn the pattern.

Quick options and practical tips:

  • Timeline/library approach: Import images into the FLA library, convert them to symbols (MovieClips or bitmaps) and place them on frames or use frame labels. Use simple stop() and gotoAndStop() or attach next/prev buttons. This is fastest for small slide sets.
  • Code-driven (AS3) approach: embed images into the compiled SWF (either via library "Export for ActionScript" linkage or with AS3 [Embed] metadata) and instantiate Bitmaps at runtime. Embedding keeps everything in one file but watch initial load size.

Example AS3 embed pattern (expand to an array for multiple slides):

[Embed(source="slide1.jpg")]
private var Slide1:Class;

var bmp:Bitmap = new Slide1() as Bitmap;
addChild(bmp);

Troubleshooting & delivery notes:

  • Optimize images (resize, JPEG quality, strip metadata) to keep the SWF small.
  • If you use library linkage, disable "Export in first frame" or place a preloader on frame 1 to avoid long stalls.
  • Flash Player reached end-of-life on 2020-12-31; browsers no longer support it. For long-term distribution consider packaging with AIR or exporting to HTML5/Canvas (Animate CC) or using an emulator — support for complex AS3 features may vary.

Fabulous. Thank you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.