Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Senior Member jbagley's Avatar
    Join Date
    Sep 2004
    Location
    Cape Town
    Posts
    845
    Member #
    7422
    Code:
    this.createEmptyMovieClip("prize_mc", this.getNextHighestDepth());
    prize_mc.loadMovie("JPGFILES/plasma.jpg");
    The question I have is, when plasma.jpg doesnt exist, I get an error saying image specified doesnt exist.

    All I want to happen is, if plasma.jpg doesnt exist, it musn't load the movie. Is there a method that can check if the image exists, or if I used an "if" statement, what would I check for?

  2.  

  3. #2
    Member themayanlion's Avatar
    Join Date
    Mar 2005
    Posts
    40
    Member #
    9225
    try this, right under the loadMovie function:

    Code:
    prize_mc.onLoad = function(success) {
    	if (!success) {
    		prize_mc.stop();
    	}
    }


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:54 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com