Preloading Video/Correct Path
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Preloading Video/Correct Path

  1. #1
    Junior Member
    Join Date
    Dec 2001
    Posts
    6
    I'm having a little trouble getting some video to preload in a targeted MC.The pathe to the target clip is:

    _root.target.workTarget

    In the first frame of the movie I have this AS:

    if (_root._framesloaded == 1250) {
    gotoAndPlay(3);
    }

    The second keyframe:

    gotoAndPlay(1);

    I also have a looping preloader animation. The problem is the animation just loops, it never loads thevideo. Could someone please help me with this. I believe it's my path, but I've tried everything. Any help would be greatly appreciated.

  2. #2
    Flash Video Moderator Wheels's Avatar
    Join Date
    Dec 2000
    Location
    Minneapolis
    Posts
    1,590
    Well, why aren't you targeting the movie clip that you are loding into? Your preloader targets the _root., there is nothing loading into the _root level. You are loading into a MC so:

    Code:
    if (_root.target.workTarget ._framesloaded == 1250) { 
    whatMC.gotoAndPlay(3); 
    } 
    
    The second keyframe: 
    whatMC.gotoAndPlay(1);
    5G


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

Poll by Flashkit.com