A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: setInterval to delay movie from loading on first frame

  1. #1
    Junior Member
    Join Date
    Mar 2006
    Posts
    21

    setInterval to delay movie from loading on first frame

    I'm pulling in a external .swf but I don't want it to load on the first frame... I'd like to delay it using setInterval... this is what I have so far

    var ad_container_mc = outer_container_mc.createEmptyMovieClip("ad", outer_container_mc.getNextHighestDepth());
    ad_container_mc._x = 600;
    ad_container_mc._y = 30;
    ad_container_mc.loadMovie("ad.swf",ad_container_mc );

    any thoughts?

  2. #2
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    umm... wrap the loadMovie() action in a function and usesetInterval()?


    maybe something like this:

    PHP Code:
    var pauseTimer setInterval(pauseLoad2000);

    function 
    pauseLoad(){
            var 
    ad_container_mc outer_container_mc.createEmptyMovieClip("ad"outer_container_mc.getNextHighestDepth());
            
    ad_container_mc._x 600;
            
    ad_container_mc._y 30;
        
    ad_container_mc.loadMovie("ad.swf");
        
    clearInterval(pauseTimer);


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