Results 1 to 2 of 2

Thread: loadClip error...

  1. #1
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default loadClip error...

    Hi all,

    When I run this on my timeline it works fine

    Code:
    mcl.loadClip(Math.floor(Math.random() * 6) + ".jpg", this);
    I changed the code so that it will load a specific image but when I run this it gives me an error! Any ideas?
    Code:
    mcl.loadClip(Math.floor("1.jpg", this);
    This is the fucntion at the beginning of my movie, but don't need to change that just need to edit the above line...

    Code:
    var mcl:MovieClipLoader = new MovieClipLoader();
    
    function onLoadInit(targ:MovieClip):Void
       {
          // Fade to 100 in 3 seconds using the easeoutquad tween
          targ.alphaTo(100, 3, "easeoutquad");
       }
    
    // Start the MCL working
    mcl.addListener(this);

  2. #2
    Join Date
    Mar 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    here, paste this one in - you need to get rid of the math floor bit
    (this is for flash 8 - if your using something else you should be able to figure out the subtle equivelent)

    Code:
    mc1.loadMovie("1.jpg");

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •