A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Preloading external images

  1. #1
    Senior Member Bobby Hill's Avatar
    Join Date
    Feb 2004
    Posts
    243

    Preloading external images

    I have successfully done a tutorial at Kirupa about preloaders and transitions.
    http://www.kirupa.com/developer/mx/p...transition.htm

    My problem is that I have a swf file that loads external jpegs and I cannot get the tutorial to work correctly with this swf. It only preloads the the swf and not the external content that this swf is calling.

    Here is the code that I have on the main timeline of the home.swf

    PHP Code:
    var imgList:Array = new Array(); 
    imgList[0] = "images/image00.jpg"
    imgList[1] = "images/image01.jpg"
    imgList[2] = "images/image02.jpg"
    imgList[3] = "images/image03.jpg"
    imgList[4] = "images/image04.jpg"
    function 
    chooseTheString() { 
        
    randomPic random(imgList.length-0); 
        
    pics.loadMovie(imgList[randomPic]); 

    chooseTheString(); 
    _quality "best"
    stop(); 
    The rest of my swf files preload correctly but I just can't get it to preload this one correctly at all. I would appreciate any help that you can give.
    "My boss sits and watches TV in a hot dog suit and I think he might be a moron."

  2. #2
    Senior Member Bobby Hill's Avatar
    Join Date
    Feb 2004
    Posts
    243
    Forgot to mention that I am using Flash 8.
    "My boss sits and watches TV in a hot dog suit and I think he might be a moron."

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center