Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1040301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:12:24+00:00 2026-05-16T15:12:24+00:00

I have some older AS2-style Haxe code which uses flash.Lib.Current.CreateEmptyMovieClip() to create a slideshow

  • 0

I have some older AS2-style Haxe code which uses flash.Lib.Current.CreateEmptyMovieClip() to create a slideshow of disk-based images. It creates a new clip for holding each image and simply fades each image in and out with alpha levels.

Compiling it with -swf -swf-version 8 creates an SWF file fine and this works in the browser.

However, I’m in the process to converting this over to -swf9 and I find that the MovieClip no longer has that method.

How do you load up a series of images with Haxe (AS3-style)?

The code, for what it’s worth, is along these lines:

static function main() {
  mc = flash.Lib.current;
  var clip : MovieClip;

  clip = mc.createEmptyMovieClip ("clip_000", mc.getNextHighestDepth());
  clip.loadMovie ("demo_img000.jpg");

  : : :
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T15:12:25+00:00Added an answer on May 16, 2026 at 3:12 pm

    You can just create a new display object w/o linking it to a clip in the library like this:

    var sprite:Sprite = new Sprite() // -- creates a sprite
    var clip:MovieClip = new MovieClip() // -- creates a movie clip
    

    You can then add it to another display object by using the addChild() method:

    myOtherClip.addChild( sprite )
    

    The above line will add the new clip to the top of the display list, just like using getNextHighestDepth().

    If you want to add a clip a depth between two other clips you can use:

    myOtherClip.addChildAt( movieClip, 2 ); // -- adds a clip at 2 levels up from 0
    

    As for loading an image, loadMovie does not exist in AS3. You need to use the Loader and URLRequest objects like this:

    var loader:Loader = new Loader();
    var request:URLRequest = new URLRequest( 'path_to_my_image.jpg' );
    loader.addEventListener( Event.COMPLETE, onLoadComplete );
    loader.load( request );
    
    function onLoadComplete( event:Event ):void
    {
         if( loader.content ){
             clip.addChild( loader.content )
         }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some older (broken) code that has a join using a *= table1.ID
I have some older code that doesn't appear to work on 64bit Windows 7.
I have some amount of older game code that I am porting over to
I have some Java code that needs to compile with current generics aware compilers
I'm trying to update some older software which uses the now-declared-obsolete System.Web.Mail classes. Unfortunately,
I have some older code that doesn't use a SecurityManager but does use RMI.
I'm tidying up some older code that uses 'magic numbers' all over the place
I have a connection leak in some older Java web applications which do not
I have some types with a sequence inside, which does restrict the order of
I'm trying to save a file in which I have some credentials. In order

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.