A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: mtClip errors

  1. #1
    Junior Member
    Join Date
    Jan 2005
    Posts
    26

    mtClip errors

    These are some errors I am getting:

    **Error** Scene=Scene 1, layer=Audio Load, frame=2:Line 1: Statement must appear within on/onClipEvent handler
    _root.audiomtClip.loadMovie("discotraxx.swf");

    **Error** Scene=Scene 1, layer=Main Images, frame=2:Line 1: Statement must appear within on/onClipEvent handler
    _root.mtClip.loadMovie("main.swf");

    What am I doing wrong?

  2. #2
    Senior Member vevmesteren's Avatar
    Join Date
    Sep 2001
    Location
    Montréal, Québec
    Posts
    566
    wellyou have applied your code to an object on your stage. You want to put your loadmovie script on the timeline. Or, do as the error tells you to do. Encapsulate your loadmovie statemant in an onClipEvent statement, like so:

    onClipEvent(load){
    _root.audiomtClip.loadMovie("discotraxx.swf");
    }
    it is your mind that decides - it is with your mind that you fly


    vevmedia

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